mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-08-09 17:49:01 +00:00
Run code through the advanced tool 'sed' to remove trailing whitespace.
This commit is contained in:
parent
965b32be9c
commit
c579637eaf
568 changed files with 8650 additions and 8654 deletions
|
@ -104,15 +104,15 @@ std::vector<std::string> CVolumeWAD::GetNames() const
|
|||
{
|
||||
return names;
|
||||
}
|
||||
|
||||
|
||||
footer_size = Common::swap32(footer_size);
|
||||
|
||||
|
||||
//Japanese, English, German, French, Spanish, Italian, Dutch, unknown, unknown, Korean
|
||||
for (int i = 0; i != 10; ++i)
|
||||
{
|
||||
static const u32 string_length = 42;
|
||||
static const u32 bytes_length = string_length * sizeof(u16);
|
||||
|
||||
|
||||
u16 temp[string_length];
|
||||
|
||||
if (footer_size < 0xF1 || !Read(0x9C + (i * bytes_length) + OpeningBnrOffset, bytes_length, (u8*)&temp))
|
||||
|
@ -125,7 +125,7 @@ std::vector<std::string> CVolumeWAD::GetNames() const
|
|||
out_temp.resize(string_length);
|
||||
std::transform(temp, temp + out_temp.size(), out_temp.begin(), (u16(&)(u16))Common::swap16);
|
||||
out_temp.erase(std::find(out_temp.begin(), out_temp.end(), 0x00), out_temp.end());
|
||||
|
||||
|
||||
names.push_back(UTF16ToUTF8(out_temp));
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue