First texture rendering (if broken)
This commit is contained in:
@@ -31,7 +31,7 @@ errorret_t engineInit(const int32_t argc, const char_t **argv) {
|
||||
// Init systems. Order is important.
|
||||
timeInit();
|
||||
inputInit();
|
||||
// errorChain(assetInit());
|
||||
errorChain(assetInit());
|
||||
errorChain(localeManagerInit());
|
||||
errorChain(scriptManagerInit());
|
||||
errorChain(displayInit());
|
||||
@@ -43,47 +43,7 @@ errorret_t engineInit(const int32_t argc, const char_t **argv) {
|
||||
// Run the initial script.
|
||||
scriptcontext_t ctx;
|
||||
errorChain(scriptContextInit(&ctx));
|
||||
// errorChain(scriptContextExecFile(&ctx, "init.dsf"));
|
||||
|
||||
errorChain(scriptContextExec(&ctx,
|
||||
"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"
|
||||
// "elseif PLATFORM == \"gamecube\" then\n"
|
||||
// " inputBind(\"start\", INPUT_ACTION_RAGEQUIT)\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"
|
||||
// "sceneSet('scene/initial.dsf')\n"
|
||||
));
|
||||
|
||||
errorChain(scriptContextExecFile(&ctx, "init.dsf"));
|
||||
scriptContextDispose(&ctx);
|
||||
|
||||
errorOk();
|
||||
|
||||
Reference in New Issue
Block a user