Skip to content

Commit 9c6ed2e

Browse files
committed
Update System.CommandLine to 2.0.1
1 parent 4614ef4 commit 9c6ed2e

File tree

5 files changed

+196
-294
lines changed

5 files changed

+196
-294
lines changed

src/UnityWebBrowser.Engine.Cef/SubProcess/Program.cs

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,7 @@ public static int Main(string[] args)
2424
CefRuntime.Load();
2525

2626
LaunchArgumentsParser argumentsParser = new();
27-
int subProcessExitCode = 0;
28-
argumentsParser.Run(args, launchArguments =>
27+
int processExitCode = argumentsParser.Run(args, launchArguments =>
2928
{
3029
// ReSharper disable once RedundantAssignment
3130
string[] argv = args;
@@ -41,13 +40,13 @@ public static int Main(string[] args)
4140
UwbCefApp cefApp = new UwbCefApp(launchArguments);
4241

4342
//Run our sub-processes
44-
subProcessExitCode = CefRuntime.ExecuteProcess(cefMainArgs, cefApp, IntPtr.Zero);
43+
return CefRuntime.ExecuteProcess(cefMainArgs, cefApp, IntPtr.Zero);
4544
});
4645

4746
#if MACOS
4847
CefSandbox.cef_sandbox_destroy(sandboxContext);
4948
#endif
5049

51-
return subProcessExitCode;
50+
return processExitCode;
5251
}
5352
}

src/VoltstroStudios.UnityWebBrowser.Engine.Shared/Core/EngineEntryPoint.cs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -95,12 +95,15 @@ public int Main(string[] args)
9595
EarlyInit(parsedArgs, args);
9696

9797
EntryPoint(parsedArgs, args);
98+
return 0;
9899
}
99100
catch (Exception ex)
100101
{
101102
engineLogger.LogCritical(ex, "Uncaught exception occured in the entry point!");
102103
ShutdownAndExitWithError();
103104
}
105+
106+
return 1;
104107
});
105108
}
106109

src/VoltstroStudios.UnityWebBrowser.Engine.Shared/Core/LaunchArgumentsBinder.cs

Lines changed: 0 additions & 162 deletions
This file was deleted.

0 commit comments

Comments
 (0)