This commit is contained in:
Henrik Rydgård 2024-06-05 16:17:19 +02:00
parent feeddbabe3
commit c538ce8bf0
2 changed files with 9 additions and 2 deletions

View File

@ -69,7 +69,7 @@ void JitCompareScreen::UpdateDisasm() {
}
char temp[256];
snprintf(temp, sizeof(temp), "%i/%i", currentBlock_, blockCacheDebug->GetNumBlocks());
snprintf(temp, sizeof(temp), "%d/%d", currentBlock_, blockCacheDebug->GetNumBlocks());
blockName_->SetText(temp);
if (currentBlock_ < 0 || !blockCacheDebug || currentBlock_ >= blockCacheDebug->GetNumBlocks()) {

View File

@ -23,7 +23,14 @@ private:
UI::EventReturn OnAddressChange(UI::EventParams &e);
UI::EventReturn OnShowStats(UI::EventParams &e);
int currentBlock_ = -1;
// To switch, change the below things and call RecreateViews();
enum ViewMode {
BLOCK_LIST,
DISASM,
};
ViewMode viewMode_ = DISASM;
int currentBlock_ = -1; // For DISASM mode
std::vector<int> blockList_; // for BLOCK_LIST mode
UI::TextView *blockName_;
UI::TextEdit *blockAddr_;