Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
23 commits
Select commit Hold shift + click to select a range
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions Editor/LCProjectPatcherEditorWindow.cs
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,8 @@ private void CreateGUI() {
ModuleUtility.CreateDirectory(settings.GetAssetStorePath(fullPath: true));
ModuleUtility.CreateDirectory(settings.GetModsPath(fullPath: true));
ModuleUtility.CreateDirectory(settings.GetToolsPath(fullPath: true));
ModuleUtility.CreateDirectory(settings.GetResourcesPath(fullPath: true));
ModuleUtility.CreateDirectory(settings.GetStreamingAssetsPath(fullPath: true));

AssetDatabase.Refresh();

Expand Down
6 changes: 5 additions & 1 deletion Editor/LCProjectPatcherSteps.cs
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,8 @@ private static async UniTask RunStep() {
public static async UniTask RunPreProcessGroup(LCPatcherSettings settings) {
AssetDatabase.StartAssetEditing();

try {
try
{
InitialProjectModule.MoveNativeFiles(settings);

// asset ripper
Expand Down Expand Up @@ -180,6 +181,9 @@ public static async UniTask RunPostProcessGroup(LCPatcherSettings settings) {

InputActionsModule.FixAll(settings);

// shaders
AssetsToolsModule.GetShaders(settings);

BepInExModule.CopyTemplateFolder();
await BepInExModule.Install(settings);
BepInExModule.InstallMonoMod(settings);
Expand Down
8 changes: 8 additions & 0 deletions Editor/Libs/AssetsTools.NET.meta

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 8 additions & 0 deletions Editor/Libs/AssetsTools.NET/Editor.meta

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Binary file not shown.
33 changes: 33 additions & 0 deletions Editor/Libs/AssetsTools.NET/Editor/AssetsTools.NET.dll.meta

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Binary file not shown.
7 changes: 7 additions & 0 deletions Editor/Libs/AssetsTools.NET/Editor/AssetsTools.NET.pdb.meta

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1,852 changes: 1,852 additions & 0 deletions Editor/Libs/AssetsTools.NET/Editor/AssetsTools.NET.xml

Large diffs are not rendered by default.

7 changes: 7 additions & 0 deletions Editor/Libs/AssetsTools.NET/Editor/AssetsTools.NET.xml.meta

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Binary file added Editor/Libs/AssetsTools.NET/uncompressed.tpk
Binary file not shown.
7 changes: 7 additions & 0 deletions Editor/Libs/AssetsTools.NET/uncompressed.tpk.meta

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

22 changes: 22 additions & 0 deletions Editor/Modules/AssetBundleModule.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
using System.IO;
using UnityEditor;
using UnityEngine;

namespace Nomnom.LCProjectPatcher.Editor.Modules {
public static class AssetBundleModule {
public const string AssetBundleShaderPath = "Packages/com.nomnom.lc-project-patcher/Editor/Resources/Posterization/Dummy.shader";
public static void CreateShaderBundle(string shaderName) {
AssetBundleBuild assetBundleBuild = new();
assetBundleBuild.assetBundleName = shaderName;
assetBundleBuild.assetNames = new []{ AssetBundleShaderPath };

BuildAssetBundlesParameters buildParameters = new() {
outputPath = Application.temporaryCachePath,
options = BuildAssetBundleOptions.ForceRebuildAssetBundle,
bundleDefinitions = new []{ assetBundleBuild }
};

BuildPipeline.BuildAssetBundles(buildParameters);
}
}
}
3 changes: 3 additions & 0 deletions Editor/Modules/AssetBundleModule.cs.meta

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading