Make ReportScreen a dialog. Minor improvement to GE debugger.

This commit is contained in:
Henrik Rydgard 2017-03-18 23:30:50 +01:00
parent ce45edd4ce
commit 9fa13c7c9d
3 changed files with 8 additions and 4 deletions

View file

@ -154,7 +154,7 @@ void CompatRatingChoice::SetupChoices() {
}
ReportScreen::ReportScreen(const std::string &gamePath)
: UIScreenWithGameBackground(gamePath), overall_(-1), graphics_(-1), speed_(-1), gameplay_(-1),
: UIDialogScreenWithGameBackground(gamePath), overall_(-1), graphics_(-1), speed_(-1), gameplay_(-1),
includeScreenshot_(true) {
enableReporting_ = Reporting::IsEnabled();
ratingEnabled_ = enableReporting_;
@ -168,7 +168,7 @@ void ReportScreen::update() {
screenshot_->SetVisibility(V_GONE);
}
}
UIScreenWithGameBackground::update();
UIDialogScreenWithGameBackground::update();
}
EventReturn ReportScreen::HandleChoice(EventParams &e) {

View file

@ -23,7 +23,7 @@
#include "ui/viewgroup.h"
#include "UI/MiscScreens.h"
class ReportScreen : public UIScreenWithGameBackground {
class ReportScreen : public UIDialogScreenWithGameBackground {
public:
ReportScreen(const std::string &gamePath);

View file

@ -375,7 +375,11 @@ void FormatStateRow(wchar_t *dest, const TabStateRow &info, u32 value, bool enab
};
if (value < (u32)ARRAY_SIZE(texformats)) {
swprintf(dest, L"%S", texformats[value]);
} else {
}
else if ((value & 0xF) < (u32)ARRAY_SIZE(texformats)) {
swprintf(dest, L"%S (extra bits %06x)", texformats[value & 0xF], value);
}
else {
swprintf(dest, L"%06x", value);
}
}