mirror of
https://git.huckle.dev/Huckles-Minecraft-Archive/GabsPuNs-MinecraftConsoles.git
synced 2026-06-08 05:54:06 +00:00
Use BYTE Win Typedef instead of byte typedef from Minecraft.World
"byte" wasnt working anymore for some reason
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user