rom.getfilename() Base filename of the currently loaded ROM, or nil if none is loaded
| 1486 | // |
| 1487 | // Base filename of the currently loaded ROM, or nil if none is loaded |
| 1488 | static int rom_getfilename(lua_State *L) { |
| 1489 | if (GameInfo) lua_pushstring(L, FileBase); |
| 1490 | else lua_pushnil(L); |
| 1491 | return 1; |
| 1492 | } |
| 1493 | |
| 1494 | static int rom_gethash(lua_State *L) { |
| 1495 | const char *type = luaL_checkstring(L, 1); |
nothing calls this directly
no test coverage detected