Skip to content

Commit

Permalink
bookmark OK
Browse files Browse the repository at this point in the history
  • Loading branch information
tomvita committed Jul 21, 2020
1 parent 8aecba4 commit ed52cb6
Showing 1 changed file with 13 additions and 1 deletion.
14 changes: 13 additions & 1 deletion source/guis/gui_cheats.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -234,7 +234,19 @@ GuiCheats::GuiCheats() : Gui()

m_AttributeDumpBookmark->clear();
delete m_AttributeDumpBookmark;
m_AttributeDumpBookmark = new MemoryDump(filebuildIDStr.str().c_str(), DumpType::ADDR, true);

remove(filebuildIDStr.str().c_str());
while (access(filebuildIDStr.str().c_str(), F_OK) == 0)
{
printf("waiting for delete\n");
}
rename(EDIZON_DIR "/tempbookmark.dat", filebuildIDStr.str().c_str());
while (access(filebuildIDStr.str().c_str(), F_OK) != 0)
{
printf("waiting for rename\n");
}

m_AttributeDumpBookmark = new MemoryDump(filebuildIDStr.str().c_str(), DumpType::ADDR, false);
// m_AttributeDumpBookmark = new MemoryDump(filebuildIDStr.str().c_str(), DumpType::ADDR, true);

// if (tempdump->size() > 0) // create new bookmark list from past
Expand Down

0 comments on commit ed52cb6

Please sign in to comment.