mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-29 20:28:56 +00:00
SettingsHandler: Don't output null bytes
https://bugs.dolphin-emu.org/issues/12019, take two.
This commit is contained in:
parent
5b10f4b71e
commit
5d6f23e424
2 changed files with 29 additions and 18 deletions
|
@ -28,7 +28,7 @@ public:
|
|||
SettingsHandler();
|
||||
explicit SettingsHandler(Buffer&& buffer);
|
||||
|
||||
void AddSetting(std::string_view key, std::string_view value);
|
||||
void AddSetting(const std::string& key, const std::string& value);
|
||||
|
||||
const Buffer& GetBytes() const;
|
||||
void SetBytes(Buffer&& buffer);
|
||||
|
@ -39,6 +39,7 @@ public:
|
|||
static std::string GenerateSerialNumber();
|
||||
|
||||
private:
|
||||
void WriteLine(const std::string& str);
|
||||
void WriteByte(u8 b);
|
||||
|
||||
std::array<u8, SETTINGS_SIZE> m_buffer;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue