mirror of
https://github.com/thunderbrewhq/thunderbrew
synced 2025-12-15 04:22:28 +00:00
feat(ui): implement CSimpleFrame_CreateTexture method
This commit is contained in:
parent
6f5d3662b6
commit
3df4e5eeeb
2 changed files with 65 additions and 3 deletions
|
|
@ -418,7 +418,15 @@ int32_t FrameScript_ExecuteFile(const char* filePath, const char* a2, MD5_CTX* m
|
|||
MD5Update(md5, static_cast<unsigned char*>(fileBuffer), fileBytes);
|
||||
}
|
||||
|
||||
int32_t v10 = FrameScript_ExecuteBuffer(static_cast<char*>(fileBuffer), fileBytes, v11, status, a2);
|
||||
char* cleanBuffer = static_cast<char*>(fileBuffer);
|
||||
|
||||
// Skip UTF8 BOM
|
||||
if (fileBytes >= 3 && memcmp(fileBuffer, "\xEF\xBB\xBF", 3) == 0) {
|
||||
cleanBuffer += 3;
|
||||
fileBytes -= 3;
|
||||
}
|
||||
|
||||
int32_t v10 = FrameScript_ExecuteBuffer(cleanBuffer, fileBytes, v11, status, a2);
|
||||
|
||||
SFile::Unload(fileBuffer);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue