From 7fd3d70bf8c997b4839472ee47ee3c49374fbe13 Mon Sep 17 00:00:00 2001 From: zeromus Date: Wed, 30 Jul 2008 15:02:10 +0000 Subject: [PATCH] fix linux compile bugs --- src/lua-engine.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/lua-engine.cpp b/src/lua-engine.cpp index 8b1f25f9..add9c443 100644 --- a/src/lua-engine.cpp +++ b/src/lua-engine.cpp @@ -62,7 +62,6 @@ static int skipRerecords = FALSE; static const char *frameAdvanceThread = "FCEU.FrameAdvance"; static const char *memoryWatchTable = "FCEU.Memory"; static const char *memoryValueTable = "FCEU.MemValues"; -static const char *onCloseCallback = "emu.OnClose"; static const char *guiCallbackTable = "FCEU.GUI"; // True if there's a thread waiting to run after a run of frame-advance. @@ -1617,7 +1616,11 @@ void FCEU_LuaStop() { } //sometimes iup uninitializes com + //MBG TODO - test whether this is really necessary. i dont think it is + #ifdef WIN32 CoInitialize(0); + #endif + //lua_gc(L,LUA_GCCOLLECT,0);