mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-02-28 16:11:38 +00:00
SettingsHandler: Always decode the whole settings.txt file
This commit is contained in:
parent
9ac28054df
commit
cba4acc54b
@ -71,10 +71,8 @@ std::string SettingsHandler::GetValue(std::string_view key) const
|
|||||||
void SettingsHandler::Decrypt()
|
void SettingsHandler::Decrypt()
|
||||||
{
|
{
|
||||||
const u8* str = m_buffer.data();
|
const u8* str = m_buffer.data();
|
||||||
while (*str != 0)
|
while (m_position < m_buffer.size())
|
||||||
{
|
{
|
||||||
if (m_position >= m_buffer.size())
|
|
||||||
return;
|
|
||||||
decoded.push_back((u8)(m_buffer[m_position] ^ m_key));
|
decoded.push_back((u8)(m_buffer[m_position] ^ m_key));
|
||||||
m_position++;
|
m_position++;
|
||||||
str++;
|
str++;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user