|
@@ -5,6 +5,13 @@
|
|
|
// license information: https://github.com/AtomicGameEngine/AtomicGameEngine
|
|
// license information: https://github.com/AtomicGameEngine/AtomicGameEngine
|
|
|
//
|
|
//
|
|
|
|
|
|
|
|
|
|
+#ifdef ATOMIC_PLATFORM_WINDOWS
|
|
|
|
|
+#ifdef ATOMIC_WEBVIEW
|
|
|
|
|
+#include <include/cef_app.h>
|
|
|
|
|
+#include <include/cef_client.h>
|
|
|
|
|
+#endif
|
|
|
|
|
+#endif
|
|
|
|
|
+
|
|
|
#if defined(WIN32) && !defined(ATOMIC_WIN32_CONSOLE)
|
|
#if defined(WIN32) && !defined(ATOMIC_WIN32_CONSOLE)
|
|
|
#include <Atomic/Core/MiniDump.h>
|
|
#include <Atomic/Core/MiniDump.h>
|
|
|
#include <windows.h>
|
|
#include <windows.h>
|
|
@@ -106,6 +113,26 @@ int WINAPI WinMain(HINSTANCE hInstance, HINSTANCE prevInstance, PSTR cmdLine, in
|
|
|
#else
|
|
#else
|
|
|
int main(int argc, char** argv)
|
|
int main(int argc, char** argv)
|
|
|
{
|
|
{
|
|
|
|
|
+
|
|
|
|
|
+#ifdef ATOMIC_PLATFORM_WINDOWS
|
|
|
|
|
+#ifdef ATOMIC_WEBVIEW
|
|
|
|
|
+
|
|
|
|
|
+ // Provide CEF with command-line arguments.
|
|
|
|
|
+ CefMainArgs main_args;
|
|
|
|
|
+
|
|
|
|
|
+ // CEF applications have multiple sub-processes (render, plugin, GPU, etc)
|
|
|
|
|
+ // that share the same executable. This function checks the command-line and,
|
|
|
|
|
+ // if this is a sub-process, executes the appropriate logic.
|
|
|
|
|
+ int exit_code = CefExecuteProcess(main_args, nullptr, nullptr);
|
|
|
|
|
+
|
|
|
|
|
+ if (exit_code >= 0) {
|
|
|
|
|
+ // The sub-process has completed so return here.
|
|
|
|
|
+ return exit_code;
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
|
|
+#endif
|
|
|
|
|
+#endif
|
|
|
|
|
+
|
|
|
Atomic::ParseArguments(argc, argv);
|
|
Atomic::ParseArguments(argc, argv);
|
|
|
|
|
|
|
|
const Vector<String>& arguments = GetArguments();
|
|
const Vector<String>& arguments = GetArguments();
|