Skeleton for xdb.
This commit is contained in:
@@ -2,6 +2,7 @@
|
||||
{
|
||||
'includes': [
|
||||
'alloy-sandbox/alloy-sandbox.gypi',
|
||||
'xenia-debug/xenia-debug.gypi',
|
||||
'xenia-run/xenia-run.gypi',
|
||||
#'xenia-test/xenia-test.gypi',
|
||||
],
|
||||
|
||||
34
tools/xenia-debug/xenia-debug.cc
Normal file
34
tools/xenia-debug/xenia-debug.cc
Normal file
@@ -0,0 +1,34 @@
|
||||
/**
|
||||
******************************************************************************
|
||||
* 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 <gflags/gflags.h>
|
||||
|
||||
|
||||
//using namespace xdb;
|
||||
|
||||
|
||||
int xenia_debug(int argc, xechar_t** argv) {
|
||||
int result_code = 1;
|
||||
|
||||
// Create platform abstraction layer.
|
||||
xe_pal_options_t pal_options;
|
||||
xe_zero_struct(&pal_options, sizeof(pal_options));
|
||||
XEEXPECTZERO(xe_pal_init(pal_options));
|
||||
|
||||
|
||||
result_code = 0;
|
||||
XECLEANUP:
|
||||
if (result_code) {
|
||||
XEFATAL("Failed to launch debugger: %d", result_code);
|
||||
}
|
||||
return result_code;
|
||||
}
|
||||
XE_MAIN_WINDOW_THUNK(xenia_debug, XETEXT("xenia-debug"), "xenia-debug");
|
||||
28
tools/xenia-debug/xenia-debug.gypi
Normal file
28
tools/xenia-debug/xenia-debug.gypi
Normal file
@@ -0,0 +1,28 @@
|
||||
# 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',
|
||||
],
|
||||
},
|
||||
],
|
||||
}
|
||||
@@ -7,7 +7,7 @@
|
||||
|
||||
'msvs_settings': {
|
||||
'VCLinkerTool': {
|
||||
#'SubSystem': '2'
|
||||
'SubSystem': '2'
|
||||
}
|
||||
},
|
||||
|
||||
|
||||
Reference in New Issue
Block a user