[UI] Loop thread to main thread WindowedAppContext

This commit is contained in:
Triang3l
2021-08-28 19:38:24 +03:00
parent f540c188bf
commit 6ce5330f5f
95 changed files with 2343 additions and 1235 deletions

View File

@@ -7,11 +7,12 @@
******************************************************************************
*/
#include <cstddef>
#include <cstdint>
#include <memory>
#include <vector>
#include "xenia/base/main.h"
#include "xenia/base/math.h"
#include "xenia/base/string.h"
#include "xenia/cpu/export_resolver.h"
#include "xenia/kernel/fs/filesystem.h"
#include "xenia/kernel/objects/xfile.h"

View File

@@ -7,17 +7,25 @@
******************************************************************************
*/
#include "api_scanner_loader.h"
#include <cstdio>
#include <string>
#include <vector>
#include "xenia/base/console_app_main.h"
#include "xenia/base/cvar.h"
#include "xenia/base/string.h"
#include "xenia/tools/api_scanner_loader.h"
namespace xe {
namespace tools {
DEFINE_string(target, "", "List of file to extract imports from");
DEFINE_transient_string(target, "", "List of file to extract imports from");
// TODO(Triang3l): Change to std::string (currently doesn't even compile).
int api_scanner_main(std::vector<std::wstring>& args) {
// XXX we need gflags to split multiple flags into arrays for us
if (args.size() == 2 || !FLAGS_target.empty()) {
if (args.size() == 2 || !cvars::target.empty()) {
apiscanner_loader loader_;
std::wstring target(cvars::target.empty() ? args[1]
: xe::to_wstring(cvars::target));
@@ -41,5 +49,5 @@ int api_scanner_main(std::vector<std::wstring>& args) {
} // namespace tools
} // namespace xe
DEFINE_ENTRY_POINT(L"api-scanner", L"api-scanner --target=<target file>",
xe::tools::api_scanner_main);
XE_DEFINE_CONSOLE_APP("api-scanner", xe::tools::api_scanner_main,
"[target file]", "target");