1
0
mirror of https://github.com/soarqin/DSP_Mods.git synced 2025-12-09 04:13:32 +08:00

fix profile support

This commit is contained in:
2025-03-26 02:15:44 +08:00
parent adcce8e298
commit 092795cbac
4 changed files with 84 additions and 22 deletions

View File

@@ -221,7 +221,8 @@ public static class WindowFunctions
var args = Environment.GetCommandLineArgs();
for (var i = 0; i < args.Length - 1; i++)
{
if (args[i] != "--doorstop-target") continue;
// Doorstop 3.x and 4.x use different arguments to pass the target assembly path
if (args[i] != "--doorstop-target" && args[i] != "--doorstop-target-assembly") continue;
var arg = args[i + 1];
const string doorstopPathSuffix = @"\BepInEx\core\BepInEx.Preloader.dll";
if (!arg.EndsWith(doorstopPathSuffix, StringComparison.OrdinalIgnoreCase))