Remove WinAPI ints from network and save helpers

This commit is contained in:
notmatthewbeshay
2026-03-14 06:52:03 +11:00
parent 9abfbb0c67
commit a2ddb7c2f0
9 changed files with 17 additions and 15 deletions
@@ -775,7 +775,7 @@ void ConsoleSaveFileOriginal::Flush(bool autosave, bool updateThumbnail )
int iTextMetadataBytes = app.CreateImageTextData(bTextMetadata, seed, hasSeed, app.GetGameHostOption(eGameHostOption_All), Minecraft::GetInstance()->getCurrentTexturePackId());
INT saveOrCheckpointId = 0;
int saveOrCheckpointId = 0;
bool validSave = StorageManager.GetSaveUniqueNumber(&saveOrCheckpointId);
TelemetryManager->RecordLevelSaveOrCheckpoint(ProfileManager.GetPrimaryPad(), saveOrCheckpointId, compLength+8);
@@ -1455,7 +1455,7 @@ void ConsoleSaveFileSplit::Flush(bool autosave, bool updateThumbnail)
}
INT saveOrCheckpointId = 0;
int saveOrCheckpointId = 0;
bool validSave = StorageManager.GetSaveUniqueNumber(&saveOrCheckpointId);
TelemetryManager->RecordLevelSaveOrCheckpoint(ProfileManager.GetPrimaryPad(), saveOrCheckpointId, compLength+8);
@@ -81,7 +81,7 @@ void AddPlayerPacket::read(DataInputStream *dis) //throws IOException
m_playerIndex = dis->readByte();
m_skinId = static_cast<std::uint32_t>(dis->readInt());
m_capeId = static_cast<std::uint32_t>(dis->readInt());
INT privileges = dis->readInt();
int privileges = dis->readInt();
m_uiGamePrivileges = static_cast<unsigned int>(privileges);
MemSect(1);
unpack = SynchedEntityData::unpack(dis);