1
0
Fork 0
mirror of https://github.com/ctruLua/ctruLua.git synced 2025-10-27 16:39:29 +00:00

Enhanced the error message for "luaL_dofile(L, BOOTFILE)"

This commit is contained in:
Firew0lf 2015-08-19 17:41:53 +02:00
parent b772a42d28
commit df4ce7ba14

View file

@ -12,7 +12,7 @@ int load_ctr_lib(lua_State *L);
void unload_font_lib();
// Display an error
void error(char *error) {
void error(const char *error) {
gfxInitDefault();
consoleInit(GFX_TOP, NULL);
@ -46,7 +46,7 @@ int main() {
load_ctr_lib(L);
// Do the actual thing
if (luaL_dofile(L, BOOT_FILE)) error("Can't open the boot file "BOOT_FILE);
if (luaL_dofile(L, BOOT_FILE)) error(luaL_checkstring(L, -1));
// Unload current font
unload_font_lib();