Fixed a few MSVC compiler warnings, and added some switches to the readme.
git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@2752 8ced0084-cf51-0410-be5f-012b33b47a6e
This commit is contained in:
parent
b91e3808ff
commit
fd3ca67895
|
@ -23,7 +23,9 @@ System Requirements:
|
||||||
[Windows Version]
|
[Windows Version]
|
||||||
DolphinWx.exe: The main program
|
DolphinWx.exe: The main program
|
||||||
Arguments:
|
Arguments:
|
||||||
-d Run Dolphin with the debugger tools
|
-d Run Dolphin with the debugger tools
|
||||||
|
-l Run Dolphin with the logmanager enabled
|
||||||
|
-e=<path> Open an elf file
|
||||||
|
|
||||||
cg.dll/cgGL.dll: Cg Shading API (http://developer.nvidia.com/object/cg_toolkit.html)
|
cg.dll/cgGL.dll: Cg Shading API (http://developer.nvidia.com/object/cg_toolkit.html)
|
||||||
wiiuse.dll: Wiimote Bluetooth API (http://www.wiiuse.net/)
|
wiiuse.dll: Wiimote Bluetooth API (http://www.wiiuse.net/)
|
||||||
|
|
|
@ -223,8 +223,8 @@ bool CNANDContentLoader::CreateFromDirectory(const std::string& _rPath)
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
u64 Size = File::GetSize(TMDFileName.c_str());
|
u64 Size = File::GetSize(TMDFileName.c_str());
|
||||||
u8* pTMD = new u8[Size];
|
u8* pTMD = new u8[(u32)Size];
|
||||||
fread(pTMD, Size, 1, pTMDFile);
|
fread(pTMD, (size_t)Size, 1, pTMDFile);
|
||||||
fclose(pTMDFile);
|
fclose(pTMDFile);
|
||||||
|
|
||||||
memcpy(m_TicketView, pTMD + 0x180, TICKET_VIEW_SIZE);
|
memcpy(m_TicketView, pTMD + 0x180, TICKET_VIEW_SIZE);
|
||||||
|
@ -266,11 +266,11 @@ bool CNANDContentLoader::CreateFromDirectory(const std::string& _rPath)
|
||||||
if (pFile != NULL)
|
if (pFile != NULL)
|
||||||
{
|
{
|
||||||
u64 Size = File::GetSize(szFilename);
|
u64 Size = File::GetSize(szFilename);
|
||||||
rContent.m_pData = new u8[Size];
|
rContent.m_pData = new u8[(u32)Size];
|
||||||
|
|
||||||
_dbg_assert_msg_(BOOT, rContent.m_Size==Size, "TMDLoader: Filesize doesnt fit (%s %i)... prolly you have a bad dump", szFilename, i);
|
_dbg_assert_msg_(BOOT, rContent.m_Size==Size, "TMDLoader: Filesize doesnt fit (%s %i)... prolly you have a bad dump", szFilename, i);
|
||||||
|
|
||||||
fread(rContent.m_pData, Size, 1, pFile);
|
fread(rContent.m_pData, (size_t)Size, 1, pFile);
|
||||||
fclose(pFile);
|
fclose(pFile);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
|
Loading…
Reference in New Issue