mirror of
https://github.com/hrydgard/ppsspp.git
synced 2025-04-02 11:01:50 -04:00
Make ReportScreen a dialog. Minor improvement to GE debugger.
This commit is contained in:
parent
ce45edd4ce
commit
9fa13c7c9d
3 changed files with 8 additions and 4 deletions
|
@ -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) {
|
||||
|
|
|
@ -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);
|
||||
|
||||
|
|
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue