[UI] Loop thread to main thread WindowedAppContext
This commit is contained in:
36
src/xenia/base/console_app_main_win.cc
Normal file
36
src/xenia/base/console_app_main_win.cc
Normal file
@@ -0,0 +1,36 @@
|
||||
/**
|
||||
******************************************************************************
|
||||
* Xenia : Xbox 360 Emulator Research Project *
|
||||
******************************************************************************
|
||||
* Copyright 2021 Ben Vanik. All rights reserved. *
|
||||
* Released under the BSD license - see LICENSE in the root for more details. *
|
||||
******************************************************************************
|
||||
*/
|
||||
|
||||
#include <cstdlib>
|
||||
#include <vector>
|
||||
|
||||
#include "xenia/base/console_app_main.h"
|
||||
#include "xenia/base/main_win.h"
|
||||
|
||||
int main(int argc_ignored, char** argv_ignored) {
|
||||
xe::ConsoleAppEntryInfo entry_info = xe::GetConsoleAppEntryInfo();
|
||||
|
||||
std::vector<std::string> args;
|
||||
if (!xe::ParseWin32LaunchArguments(entry_info.transparent_options,
|
||||
entry_info.positional_usage,
|
||||
entry_info.positional_options, &args)) {
|
||||
return EXIT_FAILURE;
|
||||
}
|
||||
|
||||
int result = xe::InitializeWin32App(entry_info.name);
|
||||
if (result) {
|
||||
return result;
|
||||
}
|
||||
|
||||
result = entry_info.entry_point(args);
|
||||
|
||||
xe::ShutdownWin32App();
|
||||
|
||||
return result;
|
||||
}
|
||||
Reference in New Issue
Block a user