debugger: don't write string if empty

This commit is contained in:
Swift
2026-06-07 22:33:33 -05:00
parent 369d786f0e
commit ee1abe73ad

View File

@@ -431,6 +431,9 @@ bool DumpCtrl::WriteString(uint32 address)
std::string text = dialog.GetValue().ToStdString();
if (text.empty())
return false;
for (size_t i = 0; i < text.size(); i++)
memory_writeU8(address + i, static_cast<uint8>(text[i]));