Skeleton for xdb.

This commit is contained in:
Ben Vanik
2014-08-09 10:32:16 -07:00
parent ff8361e5a9
commit cebf595958
11 changed files with 200 additions and 1 deletions

View File

@@ -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',
],

View 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");

View 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',
],
},
],
}

View File

@@ -7,7 +7,7 @@
'msvs_settings': {
'VCLinkerTool': {
#'SubSystem': '2'
'SubSystem': '2'
}
},