mirror of
https://github.com/hrydgard/ppsspp.git
synced 2024-11-23 13:30:02 +00:00
..
This commit is contained in:
parent
feeddbabe3
commit
c538ce8bf0
@ -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()) {
|
||||
|
@ -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_;
|
||||
|
Loading…
Reference in New Issue
Block a user