mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-22 05:40:01 -06:00
Run code through the advanced tool 'sed' to remove trailing whitespace.
This commit is contained in:
@ -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));
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user