Merge commit 'c7330d4543606fc9ea74d8922c0c126f857d9d18' into luafixes2
Revert bad fix for not terminating script on initial error
This commit is contained in:
commit
821827fbde
|
@ -371,9 +371,6 @@ static void FCEU_LuaOnStop()
|
||||||
#ifdef __WIN_DRIVER__
|
#ifdef __WIN_DRIVER__
|
||||||
TaseditorDisableManualFunctionIfNeeded();
|
TaseditorDisableManualFunctionIfNeeded();
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
if (info_onstop)
|
|
||||||
info_onstop(info_uid);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@ -1509,7 +1506,7 @@ static int rom_gethash(lua_State *L) {
|
||||||
{
|
{
|
||||||
MD5DATA md5hash = GameInfo->MD5;
|
MD5DATA md5hash = GameInfo->MD5;
|
||||||
|
|
||||||
if (!type) lua_pushstring(L, "");
|
if (!type) lua_pushstring(L, "");
|
||||||
else if (!stricmp(type, "md5")) lua_pushstring(L, md5_asciistr(md5hash));
|
else if (!stricmp(type, "md5")) lua_pushstring(L, md5_asciistr(md5hash));
|
||||||
else if (!stricmp(type, "base64")) lua_pushstring(L, BytesToString(md5hash.data, MD5DATA::size).c_str());
|
else if (!stricmp(type, "base64")) lua_pushstring(L, BytesToString(md5hash.data, MD5DATA::size).c_str());
|
||||||
else lua_pushstring(L, "");
|
else lua_pushstring(L, "");
|
||||||
|
@ -6673,6 +6670,9 @@ void FCEU_LuaStop() {
|
||||||
CoInitialize(0);
|
CoInitialize(0);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
if (info_onstop)
|
||||||
|
info_onstop(info_uid);
|
||||||
|
|
||||||
//lua_gc(L,LUA_GCCOLLECT,0);
|
//lua_gc(L,LUA_GCCOLLECT,0);
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue