Use BYTE Win Typedef instead of byte typedef from Minecraft.World

"byte" wasnt working anymore for some reason
This commit is contained in:
GabsPuNs
2026-04-13 17:54:28 -04:00
parent e90e585ef0
commit 40d48948ff
233 changed files with 4751 additions and 930 deletions

View File

@@ -117,7 +117,7 @@ static wstring ReadLevelNameFromSaveFile(const wstring& filePath)
if (off >= 12 && off + len <= saveSize && len > 0 && len < 4 * 1024 * 1024)
{
byteArray ba;
ba.data = (byte*)(saveData + off);
ba.data = (BYTE*)(saveData + off);
ba.length = len;
CompoundTag *root = NbtIo::decompress(ba);
if (root != nullptr)
@@ -2992,7 +2992,7 @@ int UIScene_LoadCreateJoinMenu::DownloadSonyCrossSaveThreadProc( LPVOID lpParame
case eSaveTransfer_CreateDummyFile:
{
StorageManager.ResetSaveData();
byte *compData = (byte *)StorageManager.AllocateSaveData( app.getRemoteStorage()->getSaveFilesize() );
BYTE *compData = (BYTE *)StorageManager.AllocateSaveData( app.getRemoteStorage()->getSaveFilesize() );
// Make our next save default to the name of the level
const char* pNameUTF8 = app.getRemoteStorage()->getSaveNameUTF8();
mbstowcs(wSaveName, pNameUTF8, strlen(pNameUTF8)+1); // plus null