Misc sanity checks

This commit is contained in:
Henrik Rydgård committed 2025-06-14 08:45:02 +02:00
1 parent aea6df0ca4
commit 70f1edb28f
8 files changed
+37 -18

No files matched your search

+3
View File
@@ -9,6 +9,9 @@
#include "Core/MIPS/JitCommon/JitState.h"
JitCompareScreen::JitCompareScreen() : UIDialogScreenWithBackground() {
if (!MIPSComp::jit) {
return;
}
JitBlockCacheDebugInterface *blockCacheDebug = MIPSComp::jit->GetBlockCacheDebugInterface();
// The only defaults that make sense.
if (blockCacheDebug->SupportsProfiling()) {
+10 -10
View File
@@ -16,15 +16,15 @@ private:
// Uses the current ListType
void FillBlockList();
UI::LinearLayout *comparisonView_;
UI::LinearLayout *leftDisasm_;
UI::LinearLayout *rightDisasm_;
UI::LinearLayout *comparisonView_ = nullptr;
UI::LinearLayout *leftDisasm_ = nullptr;
UI::LinearLayout *rightDisasm_ = nullptr;
UI::LinearLayout *blockListView_;
UI::LinearLayout *blockListContainer_;
UI::LinearLayout *blockListView_ = nullptr;
UI::LinearLayout *blockListContainer_ = nullptr;
UI::LinearLayout *statsView_;
UI::LinearLayout *statsContainer_;
UI::LinearLayout *statsView_ = nullptr;
UI::LinearLayout *statsContainer_ = nullptr;
UI::EventReturn OnSelectBlock(UI::EventParams &e);
UI::EventReturn OnBlockAddress(UI::EventParams &e);
@@ -60,9 +60,9 @@ private:
int64_t sumExecutions_ = 0;
std::vector<int> blockList_; // for BLOCK_LIST mode
UI::TextView *blockName_;
UI::TextEdit *blockAddr_;
UI::TextView *blockStats_;
UI::TextView *blockName_ = nullptr;
UI::TextEdit *blockAddr_ = nullptr;
UI::TextView *blockStats_ = nullptr;
};
class AddressPromptScreen : public PopupScreen {
+3 -1
View File
@@ -1191,7 +1191,9 @@ void SettingInfoMessage::Show(std::string_view text, const UI::View *refView) {
}
}
}
text_->SetText(text);
if (text_) {
text_->SetText(text);
}
timeShown_ = time_now_d();
}
+4 -2
View File
@@ -116,8 +116,10 @@ void TabbedUIDialogScreenWithGameBackground::RecreateViews() {
}
void TabbedUIDialogScreenWithGameBackground::EnsureTabs() {
_assert_(tabHolder_);
tabHolder_->EnsureAllCreated();
_dbg_assert_(tabHolder_);
if (tabHolder_) {
tabHolder_->EnsureAllCreated();
}
}
void TabbedUIDialogScreenWithGameBackground::ApplySearchFilter() {