Skip to content

Commit 63cb762

Browse files
committed
update for new matjson
1 parent 3edd503 commit 63cb762

1 file changed

Lines changed: 3 additions & 5 deletions

File tree

src/pages/Memory.cpp

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -333,11 +333,9 @@ void DevTools::drawMemory() {
333333
} else if (auto maybeStr = findStdString(ptr); maybeStr) {
334334
auto str = maybeStr->substr(0, 30);
335335
// escapes new lines and stuff for me :3
336-
if(auto fmted = matjson::Value(std::string(str)).dump(0)) {
337-
auto fmtedStr = fmted.unwrap();
338-
texts.push_back(fmt::format("[{:04x}] maybe std::string {}, {}", offset, maybeStr->size(), fmtedStr));
339-
textSaving.push_back(fmt::format("{:x}: s {}", offset, fmtedStr));
340-
}
336+
auto fmted = matjson::Value(std::string(str)).dump(0);
337+
texts.push_back(fmt::format("[{:04x}] maybe std::string {}, {}", offset, maybeStr->size(), fmted));
338+
textSaving.push_back(fmt::format("{:x}: s {}", offset, fmted));
341339
} else if (auto valueOpt = ptr.read_opt<uintptr_t>()) {
342340
auto value = *valueOpt;
343341
auto data = std::span(reinterpret_cast<uint8_t*>(&value), sizeof(void*));

0 commit comments

Comments
 (0)