mirror of
https://github.com/beefytech/Beef.git
synced 2025-06-08 03:28:20 +02:00
Apple fixes
This commit is contained in:
parent
43b69023f6
commit
9f3fded709
23 changed files with 847 additions and 425 deletions
|
@ -867,6 +867,7 @@ uint8* Beefy::LoadBinaryData(const StringImpl& path, int* size)
|
|||
|
||||
uint8* data = new uint8[aSize];
|
||||
int readSize = (int)fread(data, 1, aSize, fP);
|
||||
(void)readSize;
|
||||
fclose(fP);
|
||||
if (size)
|
||||
*size = aSize;
|
||||
|
@ -897,6 +898,7 @@ char* Beefy::LoadTextData(const StringImpl& path, int* size)
|
|||
data[dataLen] = 0;
|
||||
data[dataLen + 1] = 0;
|
||||
int readSize = (int)fread(data + 1, 1, dataLen - 1, fP);
|
||||
(void)readSize;
|
||||
fclose(fP);
|
||||
|
||||
// UTF16
|
||||
|
@ -921,6 +923,7 @@ char* Beefy::LoadTextData(const StringImpl& path, int* size)
|
|||
if (size != NULL)
|
||||
*size = strLen;
|
||||
int readSize = (int)fread(data, 1, strLen, fP);
|
||||
(void)readSize;
|
||||
fclose(fP);
|
||||
return data;
|
||||
}
|
||||
|
@ -934,6 +937,7 @@ char* Beefy::LoadTextData(const StringImpl& path, int* size)
|
|||
if (strLen > 3)
|
||||
{
|
||||
int readSize = (int)fread(data + 3, 1, strLen - 3, fP);
|
||||
(void)readSize;
|
||||
}
|
||||
fclose(fP);
|
||||
return data;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue