diff --git a/storm/Core.cpp b/storm/Core.cpp index 05d6dd8..5e85d02 100644 --- a/storm/Core.cpp +++ b/storm/Core.cpp @@ -1,28 +1,30 @@ #include "Core.hpp" #include "Event.hpp" #include "Transparency.hpp" +#include "String.hpp" int32_t STORMAPI StormDestroy() { - // Combined list of all calls from every game + // Combined list of all destroy calls found in every game (as documentation) - // SErrSetBlizzardErrorFunction(nullptr); - // SDlgDestroy(); - // SGdiDestroy(); - // SVidDestroy(); - // SDrawDestroy(); - // SRgnDestroy(); - // SMsgDestroy(); - // SNetDestroy(); - SEvtDestroy(); - // SBltDestroy(); - // SCodeDestroy(); - // SCmdDestroy(); - // SFileDestroy(); - // SCompDestroy(); - // SStrDestroy(); - // SRegDestroy(); - // SErrDestroy(); - // SLogDestroy(); - STransDestroy(); + // SErrSetBlizzardErrorFunction(nullptr); // SC 1.17 + // SDlgDestroy(); // SC 1.17 + // SGdiDestroy(); // SC 1.17 + // SVidDestroy(); // SC 1.17 + // SDrawDestroy(); // SC 1.17 + // SRgnDestroy(); // WoW 3.3.5 (win), SC 1.17 + // SMsgDestroy(); // WoW 3.3.5 (win), SC 1.17 + // SNetDestroy(); // SC 1.17 + SEvtDestroy(); // WoW 3.3.5 (win) + // SBltDestroy(); // SC 1.17 + // SCodeDestroy(); // SC 1.17 + // SCmdDestroy(); // WoW 3.3.5 (win+mac), SC 1.17 + // SFileDestroy(); // WoW 3.3.5 (mac)?, SC 1.17 + // SFile::Destroy(); // WoW 0.5.3 (win)? + // SCompDestroy(); // WoW 3.3.5 (win)? + SStrDestroy(); // WoW 3.3.5 (mac), SC 1.17 + // SRegDestroy(); // WoW 3.3.5 (mac) + // SErrDestroy(); // WoW 3.3.5 (mac) + // SLogDestroy(); // WoW 3.3.5 (mac) + STransDestroy(); // SC 1.17 return 1; } diff --git a/storm/String.cpp b/storm/String.cpp index 4402451..03d1ab4 100644 --- a/storm/String.cpp +++ b/storm/String.cpp @@ -364,6 +364,10 @@ size_t STORMAPI SStrCopy(char* dest, const char* source, size_t destsize) { return static_cast(destbuf - dest); } +void STORMAPI SStrDestroy() { + // nothing to do +} + char* STORMAPI SStrDupA(const char* string, const char* filename, uint32_t linenumber) { STORM_VALIDATE_BEGIN; STORM_VALIDATE(string); diff --git a/storm/String.hpp b/storm/String.hpp index 9792afb..b0f4ba3 100644 --- a/storm/String.hpp +++ b/storm/String.hpp @@ -26,6 +26,8 @@ int32_t STORMAPI SStrCmpI(const char* string1, const char* string2, size_t maxch size_t STORMAPI SStrCopy(char* dest, const char* source, size_t destsize = STORM_MAX_STR); +void STORMAPI SStrDestroy(); + char* STORMAPI SStrDupA(const char* string, const char* filename, uint32_t linenumber); uint32_t STORMAPI SStrHash(const char* string, uint32_t flags = 0, uint32_t seed = 0);