mirror of
https://github.com/thunderbrewhq/squall.git
synced 2026-05-06 07:13:51 +00:00
feat(string): add SStrDestroy
This commit is contained in:
parent
50872dfc14
commit
1e1f2f819f
3 changed files with 28 additions and 20 deletions
|
|
@ -1,28 +1,30 @@
|
||||||
#include "Core.hpp"
|
#include "Core.hpp"
|
||||||
#include "Event.hpp"
|
#include "Event.hpp"
|
||||||
#include "Transparency.hpp"
|
#include "Transparency.hpp"
|
||||||
|
#include "String.hpp"
|
||||||
|
|
||||||
int32_t STORMAPI StormDestroy() {
|
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);
|
// SErrSetBlizzardErrorFunction(nullptr); // SC 1.17
|
||||||
// SDlgDestroy();
|
// SDlgDestroy(); // SC 1.17
|
||||||
// SGdiDestroy();
|
// SGdiDestroy(); // SC 1.17
|
||||||
// SVidDestroy();
|
// SVidDestroy(); // SC 1.17
|
||||||
// SDrawDestroy();
|
// SDrawDestroy(); // SC 1.17
|
||||||
// SRgnDestroy();
|
// SRgnDestroy(); // WoW 3.3.5 (win), SC 1.17
|
||||||
// SMsgDestroy();
|
// SMsgDestroy(); // WoW 3.3.5 (win), SC 1.17
|
||||||
// SNetDestroy();
|
// SNetDestroy(); // SC 1.17
|
||||||
SEvtDestroy();
|
SEvtDestroy(); // WoW 3.3.5 (win)
|
||||||
// SBltDestroy();
|
// SBltDestroy(); // SC 1.17
|
||||||
// SCodeDestroy();
|
// SCodeDestroy(); // SC 1.17
|
||||||
// SCmdDestroy();
|
// SCmdDestroy(); // WoW 3.3.5 (win+mac), SC 1.17
|
||||||
// SFileDestroy();
|
// SFileDestroy(); // WoW 3.3.5 (mac)?, SC 1.17
|
||||||
// SCompDestroy();
|
// SFile::Destroy(); // WoW 0.5.3 (win)?
|
||||||
// SStrDestroy();
|
// SCompDestroy(); // WoW 3.3.5 (win)?
|
||||||
// SRegDestroy();
|
SStrDestroy(); // WoW 3.3.5 (mac), SC 1.17
|
||||||
// SErrDestroy();
|
// SRegDestroy(); // WoW 3.3.5 (mac)
|
||||||
// SLogDestroy();
|
// SErrDestroy(); // WoW 3.3.5 (mac)
|
||||||
STransDestroy();
|
// SLogDestroy(); // WoW 3.3.5 (mac)
|
||||||
|
STransDestroy(); // SC 1.17
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -364,6 +364,10 @@ size_t STORMAPI SStrCopy(char* dest, const char* source, size_t destsize) {
|
||||||
return static_cast<size_t>(destbuf - dest);
|
return static_cast<size_t>(destbuf - dest);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void STORMAPI SStrDestroy() {
|
||||||
|
// nothing to do
|
||||||
|
}
|
||||||
|
|
||||||
char* STORMAPI SStrDupA(const char* string, const char* filename, uint32_t linenumber) {
|
char* STORMAPI SStrDupA(const char* string, const char* filename, uint32_t linenumber) {
|
||||||
STORM_VALIDATE_BEGIN;
|
STORM_VALIDATE_BEGIN;
|
||||||
STORM_VALIDATE(string);
|
STORM_VALIDATE(string);
|
||||||
|
|
|
||||||
|
|
@ -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);
|
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);
|
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);
|
uint32_t STORMAPI SStrHash(const char* string, uint32_t flags = 0, uint32_t seed = 0);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue