mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-05-04 10:18:36 +00:00
Merge large parts of nakeee's "Soap" branch into trunk, after fixing a few crash bugs in FileUtil.cpp.
Not really anything interesting, just some better comments, some slightly more portable/cleaner code in places. git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@2459 8ced0084-cf51-0410-be5f-012b33b47a6e
This commit is contained in:
parent
2783f24cfe
commit
4bdb4aa0d1
77 changed files with 1610 additions and 1479 deletions
|
@ -80,10 +80,10 @@ u32 Ascii2Hex(std::string _Text)
|
|||
if (Length > 4)
|
||||
Length = 4;
|
||||
|
||||
for (int i = 0; i < Length; i++)
|
||||
for (int i = 0; i < (int)Length; i++)
|
||||
{
|
||||
// Add up the values, for example RSPE becomes, 0x52000000, then 0x52530000 and so on
|
||||
Result += _Text.c_str()[i] << (Length - 1 - i)*8;
|
||||
Result += _Text.c_str()[i] << ((Length - 1 - i) * 8);
|
||||
}
|
||||
// Return the value
|
||||
return Result;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue