mirror of
https://git.huckle.dev/Huckles-Minecraft-Archive/4jcraft.git
synced 2026-05-26 17:55:30 +00:00
Standardise fixed-width integer usage in touched files
This commit is contained in:
@@ -85,12 +85,12 @@ int SonyRemoteStorage_PS3::initPreconditions()
|
||||
return 0;
|
||||
}
|
||||
|
||||
void SonyRemoteStorage_PS3::staticInternalCallback(const SceRemoteStorageEvent event, int32_t retCode, void * userData)
|
||||
void SonyRemoteStorage_PS3::staticInternalCallback(const SceRemoteStorageEvent event, std::int32_t retCode, void * userData)
|
||||
{
|
||||
((SonyRemoteStorage_PS3*)userData)->internalCallback(event, retCode);
|
||||
}
|
||||
|
||||
void SonyRemoteStorage_PS3::internalCallback(const SceRemoteStorageEvent event, int32_t retCode)
|
||||
void SonyRemoteStorage_PS3::internalCallback(const SceRemoteStorageEvent event, std::int32_t retCode)
|
||||
{
|
||||
m_lastErrorCode = retCode;
|
||||
|
||||
@@ -452,7 +452,7 @@ int SonyRemoteStorage_PS3::LoadCompressCallback(void *pParam,bool bIsCorrupt, bo
|
||||
// We add 4 bytes to the start so that we can signal compressed data
|
||||
// And another 4 bytes to store the decompressed data size
|
||||
unsigned int compLength = origFilesize+8;
|
||||
uint8_t *compData = (uint8_t *)malloc( compLength );
|
||||
std::uint8_t *compData = (std::uint8_t *)malloc( compLength );
|
||||
Compression::UseDefaultThreadStorage();
|
||||
Compression::getCompression()->Compress(compData+8,&compLength,pOrigSaveData,origFilesize);
|
||||
ZeroMemory(compData,8);
|
||||
|
||||
Reference in New Issue
Block a user