mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-07-11 01:25:07 +02:00
RemoteISO screens: Make them dialogs so ESC works to exit them on PC.
Also fix the background on the main one, and in savedata manager. See #16605
This commit is contained in:
@@ -25,9 +25,9 @@
|
||||
#include "UI/MiscScreens.h"
|
||||
#include "UI/MainScreen.h"
|
||||
|
||||
class RemoteISOScreen : public UIScreenWithBackground {
|
||||
class RemoteISOScreen : public UIDialogScreenWithGameBackground {
|
||||
public:
|
||||
RemoteISOScreen();
|
||||
RemoteISOScreen(const Path &filename);
|
||||
|
||||
const char *tag() const override { return "RemoteISO"; }
|
||||
|
||||
@@ -54,7 +54,7 @@ enum class ScanStatus {
|
||||
LOADED,
|
||||
};
|
||||
|
||||
class RemoteISOConnectScreen : public UIScreenWithBackground {
|
||||
class RemoteISOConnectScreen : public UIDialogScreenWithBackground {
|
||||
public:
|
||||
RemoteISOConnectScreen();
|
||||
~RemoteISOConnectScreen();
|
||||
@@ -70,7 +70,7 @@ protected:
|
||||
void ExecuteLoad();
|
||||
bool FindServer(std::string &resultHost, int &resultPort);
|
||||
|
||||
UI::TextView *statusView_;
|
||||
UI::TextView *statusView_ = nullptr;
|
||||
|
||||
ScanStatus status_ = ScanStatus::SCANNING;
|
||||
std::string statusMessage_;
|
||||
@@ -78,7 +78,7 @@ protected:
|
||||
std::thread *scanThread_;
|
||||
std::mutex statusLock_;
|
||||
std::string host_;
|
||||
int port_;
|
||||
int port_ = -1;
|
||||
std::string url_;
|
||||
std::vector<Path> games_;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user