mirror of
https://github.com/thunderbrewhq/thunderbrew
synced 2025-12-13 03:32:28 +00:00
feat(gameui): add CGGameUI class
This commit is contained in:
parent
8a71e9fdea
commit
babeb2d864
7 changed files with 272 additions and 0 deletions
|
|
@ -589,3 +589,24 @@ void FrameXML_StoreHashNode(XMLNode* node, const char* name, const char* a3, CSt
|
|||
status->Add(STATUS_INFO, "-- Added virtual frame %s", name);
|
||||
}
|
||||
}
|
||||
|
||||
int32_t FrameXML_GuessNumFiles(const char* data) {
|
||||
int32_t result = 0;
|
||||
while (*data) {
|
||||
while (*data == '\r' || *data == '\n') {
|
||||
++data;
|
||||
}
|
||||
if (!*data) {
|
||||
break;
|
||||
}
|
||||
char v3 = *data;
|
||||
if (v3 != '#')
|
||||
++result;
|
||||
while (v3 != '\r' && v3 != '\n') {
|
||||
v3 = *++data;
|
||||
if (!v3)
|
||||
return result;
|
||||
}
|
||||
}
|
||||
return result;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -52,4 +52,6 @@ void FrameXML_ReleaseHashNode(const char* name);
|
|||
|
||||
void FrameXML_StoreHashNode(XMLNode* node, const char* name, const char* a3, CStatus* status);
|
||||
|
||||
int32_t FrameXML_GuessNumFiles(const char* data);
|
||||
|
||||
#endif
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue