Fixing sandbox to work.

This commit is contained in:
Ben Vanik 2013-12-24 16:23:53 -08:00
parent 8a8ee5dadc
commit c45f573472
1 changed files with 6 additions and 3 deletions

View File

@ -24,8 +24,6 @@ using namespace xe::cpu;
int alloy_sandbox(int argc, xechar_t** argv) {
int result_code = 1;
XenonMemory* memory = new XenonMemory();
ExportResolver* export_resolver = new ExportResolver();
@ -47,14 +45,19 @@ int alloy_sandbox(int argc, xechar_t** argv) {
Function* fn;
runtime->ResolveFunction(0x82000000, &fn);
auto ctx = thread_state->context();
ctx->lr = 0xBEBEBEBE;
ctx->r[5] = 10;
ctx->r[25] = 25;
fn->Call(thread_state, 0xBEBEBEBE);
auto result = ctx->r[11];
delete thread_state;
delete runtime;
delete memory;
return result_code;
return 0;
}
// ehhh
#include <xenia/platform.cc>