diff --git a/source/lib/sysdep/win/wdbg.cpp b/source/lib/sysdep/win/wdbg.cpp index 18381e2328..83819718a0 100644 --- a/source/lib/sysdep/win/wdbg.cpp +++ b/source/lib/sysdep/win/wdbg.cpp @@ -653,6 +653,11 @@ static void get_exception_locus(const EXCEPTION_POINTERS* ep, // - this information would not be available for C++ exceptions. LONG WINAPI wdbg_exception_filter(EXCEPTION_POINTERS* ep) { + // OutputDebugString raises an exception, which OUGHT to be swallowed + // by WaitForDebugEvent but sometimes isn't. if we see it, ignore it. + if(ep->ExceptionRecord->ExceptionCode == 0x40010006) // DBG_PRINTEXCEPTION_C + return EXCEPTION_CONTINUE_EXECUTION; + // note: we risk infinite recursion if someone raises an SEH exception // from within this function. therefore, abort immediately if we have // already been called; the first error is the most important, anyway. diff --git a/source/simulation/EntityScriptInterface.cpp b/source/simulation/EntityScriptInterface.cpp index 34cda9fc66..4c6c15fccb 100644 --- a/source/simulation/EntityScriptInterface.cpp +++ b/source/simulation/EntityScriptInterface.cpp @@ -76,12 +76,12 @@ void CEntity::ScriptingInit() AddMethod( "registerDamage", 0 ); AddMethod( "registerOrderChange", 0 ); AddMethod( "getAttackDirections", 0 ); - AddMethod( "FindSector", 4); + AddMethod( "findSector", 4); AddMethod( "getHeight", 0 ); AddMethod( "hasRallyPoint", 0 ); AddMethod( "setRallyPoint", 0 ); AddMethod( "getRallyPoint", 0 ); - AddMethod( "OnDamaged", 1 ); + AddMethod( "onDamaged", 1 ); AddMethod( "getVisibleEntities", 0 ); AddMethod( "getDistance", 1 ); AddMethod( "flattenTerrain", 0 ); diff --git a/source/simulation/Technology.cpp b/source/simulation/Technology.cpp index d948cf2bb0..7e617fb104 100644 --- a/source/simulation/Technology.cpp +++ b/source/simulation/Technology.cpp @@ -421,7 +421,7 @@ void CTechnology::ScriptingInit() AddMethod( "applyEffects", 2 ); AddMethod( "isExcluded", 0 ); - AddMethod( "IsValid", 0 ); + AddMethod( "isValid", 0 ); AddMethod( "isResearched", 0 ); AddMethod( "getPlayerID", 0 ); diff --git a/source/sound/JSI_Sound.cpp b/source/sound/JSI_Sound.cpp index 0b09fee74c..73fbd3a8b5 100644 --- a/source/sound/JSI_Sound.cpp +++ b/source/sound/JSI_Sound.cpp @@ -160,7 +160,7 @@ void JSI_Sound::ScriptingInit() AddMethod("free", 0); AddMethod("setGain", 0); AddMethod("setPitch", 0); - AddMethod("SetPosition", 0); + AddMethod("setPosition", 0); AddMethod("fade", 0); CJSObject::ScriptingInit("Sound", &JSI_Sound::Construct, 1); diff --git a/source/tools/atlas/GameInterface/GameLoop.cpp b/source/tools/atlas/GameInterface/GameLoop.cpp index 3cf1992b88..a2310b7bd7 100644 --- a/source/tools/atlas/GameInterface/GameLoop.cpp +++ b/source/tools/atlas/GameInterface/GameLoop.cpp @@ -34,6 +34,7 @@ void (*Atlas_GLSetCurrent)(void* cavas); void (*Atlas_GLSwapBuffers)(void* canvas); void (*Atlas_NotifyEndOfFrame)(); void (*Atlas_DisplayError)(const wchar_t* text, unsigned int flags); +void (*Atlas_ReportError)(); namespace AtlasMessage { void* (*ShareableMallocFptr)(size_t); @@ -87,6 +88,7 @@ bool BeginAtlas(const CmdLineArgs& args, const DllLoader& dll) dll.LoadSymbol("Atlas_GLSwapBuffers", Atlas_GLSwapBuffers); dll.LoadSymbol("Atlas_NotifyEndOfFrame", Atlas_NotifyEndOfFrame); dll.LoadSymbol("Atlas_DisplayError", Atlas_DisplayError); + dll.LoadSymbol("Atlas_ReportError", Atlas_ReportError); dll.LoadSymbol("ShareableMalloc", ShareableMallocFptr); dll.LoadSymbol("ShareableFree", ShareableFreeFptr); } diff --git a/source/tools/atlas/GameInterface/Register.cpp b/source/tools/atlas/GameInterface/Register.cpp index 331fc66039..7941f1965c 100644 --- a/source/tools/atlas/GameInterface/Register.cpp +++ b/source/tools/atlas/GameInterface/Register.cpp @@ -4,7 +4,7 @@ // We want to include Messages.h again below, with some different definitions, // so cheat and undefine its include-guard -#undef MESSAGES_H__ +#undef INCLUDED_MESSAGES #include #include