MCPcopy Create free account
hub / github.com/TASEmulators/fceux / rom_getfilename

Function rom_getfilename

src/lua-engine.cpp:1488–1492  ·  view source on GitHub ↗

rom.getfilename() Base filename of the currently loaded ROM, or nil if none is loaded

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 2

lua_pushstringFunction · 0.85
lua_pushnilFunction · 0.85

Tested by

no test coverage detected