mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-23 06:09:50 -06:00
Linux compile fix.
git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@2559 8ced0084-cf51-0410-be5f-012b33b47a6e
This commit is contained in:
@ -35,7 +35,7 @@ CARCFile::CARCFile(const std::string& _rFilename)
|
||||
if (pReader != NULL)
|
||||
{
|
||||
u64 FileSize = pReader->GetDataSize();
|
||||
m_pBuffer = new u8[unsigned int(FileSize)];
|
||||
m_pBuffer = new u8[(u32)FileSize];
|
||||
pReader->Read(0, FileSize, m_pBuffer);
|
||||
delete pReader;
|
||||
|
||||
|
@ -106,8 +106,8 @@ bool CNANDContentLoader::CreateFromDirectory(const std::string& _rPath)
|
||||
return false;
|
||||
}
|
||||
u64 Size = File::GetSize(TMDFileName.c_str());
|
||||
u8* pTMD = new u8[unsigned int(Size)];
|
||||
fread(pTMD, size_t(Size), 1, pTMDFile);
|
||||
u8* pTMD = new u8[(u32)Size];
|
||||
fread(pTMD, (size_t)Size, 1, pTMDFile);
|
||||
fclose(pTMDFile);
|
||||
|
||||
//////
|
||||
@ -135,11 +135,11 @@ bool CNANDContentLoader::CreateFromDirectory(const std::string& _rPath)
|
||||
if (pFile != NULL)
|
||||
{
|
||||
u64 Size = File::GetSize(szFilename);
|
||||
rContent.m_pData = new u8[unsigned int(Size)];
|
||||
rContent.m_pData = new u8[(u32)Size];
|
||||
|
||||
_dbg_assert_msg_(BOOT, rContent.m_Size==Size, "TMDLoader: Filesize doesnt fit (%s %i)", szFilename, i);
|
||||
|
||||
fread(rContent.m_pData, size_t(Size), 1, pFile);
|
||||
fread(rContent.m_pData, (size_t)Size, 1, pFile);
|
||||
fclose(pFile);
|
||||
} else {
|
||||
ERROR_LOG(DISCIO, "CreateFromDirectory: error opening %s",
|
||||
|
Reference in New Issue
Block a user