mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-11-18 03:44:32 +01:00
Slight improvement to extra assert info (set special info on pause screen)
This commit is contained in:
1 parent
74f5be02a1
commit
902b73698f
4 files changed
+17
-5
No files matched your search
+9
-4
@@ -183,7 +183,7 @@ static Draw::DrawContext *g_draw;
|
||||
static Draw::Pipeline *colorPipeline;
|
||||
static Draw::Pipeline *texColorPipeline;
|
||||
static UIContext *uiContext;
|
||||
static bool g_restartGraphics;
|
||||
static int g_restartGraphics;
|
||||
|
||||
#ifdef _WIN32
|
||||
WindowsAudioBackend *winAudioBackend;
|
||||
@@ -1037,11 +1037,15 @@ void NativeFrame(GraphicsContext *graphicsContext) {
|
||||
PROFILE_END_FRAME();
|
||||
|
||||
// This can only be accessed from Windows currently, and causes linking errors with headless etc.
|
||||
if (g_restartGraphics) {
|
||||
if (g_restartGraphics == 1) {
|
||||
// Used for debugging only.
|
||||
NativeShutdownGraphics();
|
||||
g_restartGraphics++;
|
||||
return;
|
||||
}
|
||||
else if (g_restartGraphics == 2) {
|
||||
NativeInitGraphics(graphicsContext);
|
||||
g_restartGraphics = false;
|
||||
g_restartGraphics = 0;
|
||||
}
|
||||
|
||||
double startTime = time_now_d();
|
||||
@@ -1183,7 +1187,8 @@ void NativeFrame(GraphicsContext *graphicsContext) {
|
||||
|
||||
bool HandleGlobalMessage(UIMessage message, const std::string &value) {
|
||||
if (message == UIMessage::RESTART_GRAPHICS) {
|
||||
g_restartGraphics = true;
|
||||
g_restartGraphics = 1;
|
||||
return true;
|
||||
} else if (message == UIMessage::SAVESTATE_DISPLAY_SLOT) {
|
||||
auto sy = GetI18NCategory(I18NCat::SYSTEM);
|
||||
std::string msg = StringFromFormat("%s: %d", sy->T("Savestate Slot"), SaveState::GetCurrentSlot() + 1);
|
||||
|
||||
Reference in new issue
Block a user