Mesh working, lua broken
This commit is contained in:
@@ -41,10 +41,49 @@ errorret_t engineInit(const int32_t argc, const char_t **argv) {
|
||||
backpackInit();
|
||||
|
||||
// Run the initial script.
|
||||
// scriptcontext_t ctx;
|
||||
// errorChain(scriptContextInit(&ctx));
|
||||
scriptcontext_t ctx;
|
||||
errorChain(scriptContextInit(&ctx));
|
||||
// errorChain(scriptContextExecFile(&ctx, "init.dsf"));
|
||||
// scriptContextDispose(&ctx);
|
||||
|
||||
errorChain(scriptContextExec(&ctx,
|
||||
"printf('Lua still working')"
|
||||
// "module('platform')\n"
|
||||
// "module('input')\n"
|
||||
// "module('scene')\n"
|
||||
// "module('locale')\n"
|
||||
// "if PLATFORM == \"psp\" then\n"
|
||||
// " inputBind(\"up\", INPUT_ACTION_UP)\n"
|
||||
// " inputBind(\"down\", INPUT_ACTION_DOWN)\n"
|
||||
// " inputBind(\"left\", INPUT_ACTION_LEFT)\n"
|
||||
// " inputBind(\"right\", INPUT_ACTION_RIGHT)\n"
|
||||
// " inputBind(\"circle\", INPUT_ACTION_CANCEL)\n"
|
||||
// " inputBind(\"cross\", INPUT_ACTION_ACCEPT)\n"
|
||||
// " inputBind(\"select\", INPUT_ACTION_RAGEQUIT)\n"
|
||||
// " inputBind(\"lstick_up\", INPUT_ACTION_UP)\n"
|
||||
// " inputBind(\"lstick_down\", INPUT_ACTION_DOWN)\n"
|
||||
// " inputBind(\"lstick_left\", INPUT_ACTION_LEFT)\n"
|
||||
// " inputBind(\"lstick_right\", INPUT_ACTION_RIGHT)\n"
|
||||
// "else\n"
|
||||
// " if INPUT_KEYBOARD then\n"
|
||||
// " inputBind(\"w\", INPUT_ACTION_UP)\n"
|
||||
// " inputBind(\"s\", INPUT_ACTION_DOWN)\n"
|
||||
// " inputBind(\"a\", INPUT_ACTION_LEFT)\n"
|
||||
// " inputBind(\"d\", INPUT_ACTION_RIGHT)\n"
|
||||
// " inputBind(\"left\", INPUT_ACTION_LEFT)\n"
|
||||
// " inputBind(\"right\", INPUT_ACTION_RIGHT)\n"
|
||||
// " inputBind(\"up\", INPUT_ACTION_UP)\n"
|
||||
// " inputBind(\"down\", INPUT_ACTION_DOWN)\n"
|
||||
// " inputBind(\"enter\", INPUT_ACTION_ACCEPT)\n"
|
||||
// " inputBind(\"e\", INPUT_ACTION_ACCEPT)\n"
|
||||
// " inputBind(\"q\", INPUT_ACTION_CANCEL)\n"
|
||||
// " inputBind(\"escape\", INPUT_ACTION_RAGEQUIT)\n"
|
||||
// " end \n"
|
||||
// "end\n"
|
||||
// "localeSet(DUSK_LOCALE_EN_US)\n"
|
||||
// "print('Good here')"
|
||||
));
|
||||
|
||||
scriptContextDispose(&ctx);
|
||||
|
||||
errorOk();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user