Removing wxWidgets and such.
This commit is contained in:
@@ -1,8 +1,6 @@
|
||||
# Copyright 2013 Ben Vanik. All Rights Reserved.
|
||||
{
|
||||
'includes': [
|
||||
'xenia-compare/xenia-compare.gypi',
|
||||
'xenia-debug/xenia-debug.gypi',
|
||||
'xenia-run/xenia-run.gypi',
|
||||
],
|
||||
}
|
||||
|
||||
@@ -1,41 +0,0 @@
|
||||
/**
|
||||
******************************************************************************
|
||||
* Xenia : Xbox 360 Emulator Research Project *
|
||||
******************************************************************************
|
||||
* Copyright 2014 Ben Vanik. All rights reserved. *
|
||||
* Released under the BSD license - see LICENSE in the root for more details. *
|
||||
******************************************************************************
|
||||
*/
|
||||
|
||||
#include <memory>
|
||||
|
||||
#include <gflags/gflags.h>
|
||||
#include <poly/main.h>
|
||||
#include <poly/poly.h>
|
||||
#include <xdb/postmortem_debug_target.h>
|
||||
#include <xdb/xdb.h>
|
||||
|
||||
DEFINE_string(trace_file_left, "", "Trace file to compare (original).");
|
||||
DEFINE_string(trace_file_right, "", "Trace file to compare (new).");
|
||||
|
||||
namespace xc {
|
||||
|
||||
using xdb::PostmortemDebugTarget;
|
||||
|
||||
int main(std::vector<std::wstring>& args) {
|
||||
auto left_target = std::make_unique<PostmortemDebugTarget>();
|
||||
if (!left_target->LoadTrace(poly::to_wstring(FLAGS_trace_file_left))) {
|
||||
PFATAL("Unable to load left trace file: %s", FLAGS_trace_file_left.c_str());
|
||||
}
|
||||
auto right_target = std::make_unique<PostmortemDebugTarget>();
|
||||
if (!right_target->LoadTrace(poly::to_wstring(FLAGS_trace_file_right))) {
|
||||
PFATAL("Unable to load right trace file: %s",
|
||||
FLAGS_trace_file_right.c_str());
|
||||
}
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
} // namespace xc
|
||||
|
||||
DEFINE_ENTRY_POINT(L"xenia-compare", L"xenia-compare", xc::main);
|
||||
@@ -1,28 +0,0 @@
|
||||
# Copyright 2014 Ben Vanik. All Rights Reserved.
|
||||
{
|
||||
'targets': [
|
||||
{
|
||||
'target_name': 'xenia-compare',
|
||||
'type': 'executable',
|
||||
|
||||
'msvs_settings': {
|
||||
'VCLinkerTool': {
|
||||
'SubSystem': '1'
|
||||
},
|
||||
},
|
||||
|
||||
'dependencies': [
|
||||
'xdb',
|
||||
'xenia',
|
||||
],
|
||||
|
||||
'include_dirs': [
|
||||
'.',
|
||||
],
|
||||
|
||||
'sources': [
|
||||
'xenia-compare.cc',
|
||||
],
|
||||
},
|
||||
],
|
||||
}
|
||||
@@ -1,63 +0,0 @@
|
||||
/**
|
||||
******************************************************************************
|
||||
* Xenia : Xbox 360 Emulator Research Project *
|
||||
******************************************************************************
|
||||
* Copyright 2014 Ben Vanik. All rights reserved. *
|
||||
* Released under the BSD license - see LICENSE in the root for more details. *
|
||||
******************************************************************************
|
||||
*/
|
||||
|
||||
#include <xdb/xdb.h>
|
||||
|
||||
#include <memory>
|
||||
|
||||
#include <gflags/gflags.h>
|
||||
#include <poly/main.h>
|
||||
#include <poly/poly.h>
|
||||
#include <third_party/wxWidgets/include/wx/wx.h>
|
||||
#include <xdb/ui/xdb_app.h>
|
||||
|
||||
DEFINE_string(trace_file, "", "Trace file to load on startup.");
|
||||
DEFINE_string(content_file, "",
|
||||
"ISO/STFS/XEX file the specified trace_file should reference.");
|
||||
|
||||
namespace xdb {
|
||||
|
||||
int main(std::vector<std::wstring>& args) {
|
||||
wxInitializer init;
|
||||
if (!init.IsOk()) {
|
||||
PFATAL("Failed to initialize wxWidgets");
|
||||
return 1;
|
||||
}
|
||||
|
||||
// App is auto-freed by wx.
|
||||
auto app = new ui::XdbApp();
|
||||
wxApp::SetInstance(app);
|
||||
if (!wxEntryStart(0, nullptr)) {
|
||||
PFATAL("Failed to enter wxWidgets app");
|
||||
return 1;
|
||||
}
|
||||
if (!app->OnInit()) {
|
||||
PFATAL("Failed to init app");
|
||||
return 1;
|
||||
}
|
||||
|
||||
if (!FLAGS_trace_file.empty()) {
|
||||
// Trace file specified on command line.
|
||||
if (!app->OpenTraceFile(FLAGS_trace_file, FLAGS_content_file)) {
|
||||
PFATAL("Failed to open trace file");
|
||||
return 1;
|
||||
}
|
||||
} else {
|
||||
app->OpenEmpty();
|
||||
}
|
||||
|
||||
app->OnRun();
|
||||
int result_code = app->OnExit();
|
||||
wxEntryCleanup();
|
||||
return result_code;
|
||||
}
|
||||
|
||||
} // namespace xdb
|
||||
|
||||
DEFINE_ENTRY_POINT(L"xenia-debug", L"xenia-debug", xdb::main);
|
||||
@@ -1,28 +0,0 @@
|
||||
# Copyright 2013 Ben Vanik. All Rights Reserved.
|
||||
{
|
||||
'targets': [
|
||||
{
|
||||
'target_name': 'xenia-debug',
|
||||
'type': 'executable',
|
||||
|
||||
'msvs_settings': {
|
||||
'VCLinkerTool': {
|
||||
'SubSystem': '2'
|
||||
},
|
||||
},
|
||||
|
||||
'dependencies': [
|
||||
'xdb',
|
||||
'xenia',
|
||||
],
|
||||
|
||||
'include_dirs': [
|
||||
'.',
|
||||
],
|
||||
|
||||
'sources': [
|
||||
'xenia-debug.cc',
|
||||
],
|
||||
},
|
||||
],
|
||||
}
|
||||
Reference in New Issue
Block a user