memory_editor.h 711 B

123456789101112131415161718192021222324252627
  1. namespace ImGui
  2. {
  3. struct MemoryEditor
  4. {
  5. bool AllowEdits;
  6. bool HexII;
  7. int Rows;
  8. int DataEditingAddr;
  9. bool DataEditingTakeFocus;
  10. char DataInput[32];
  11. char AddrInput[32];
  12. MemoryEditor()
  13. {
  14. AllowEdits = true;
  15. HexII = true;
  16. Rows = 16;
  17. DataEditingAddr = -1;
  18. DataEditingTakeFocus = false;
  19. strcpy(DataInput, "");
  20. strcpy(AddrInput, "");
  21. }
  22. void Draw(void* mem_data, int mem_size, int base_display_addr = 0);
  23. void Draw(const void* mem_data, int mem_size, int base_display_addr = 0);
  24. };
  25. } // namespace ImGui