Make ReportScreen a dialog. Minor improvement to GE debugger.

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

No files matched your search

+2 -2
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) {
+1 -1
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);
+5 -1
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);
}
}