mirror of
https://github.com/hrydgard/ppsspp.git
synced 2024-11-24 05:49:58 +00:00
1304d04161
It seems to be possible for a user to back out of a screen before receiving the "dialog completed" callback on Android, in which case things pointed to by the callback might be gone. In this case, it's better to simply not call the callback, rather than crashing. This is accomplished by assigning "Tokens" to screens that cause requests, and in ~Screen, invalidate any pending requests belonging to that token.
16 lines
468 B
C++
16 lines
468 B
C++
#pragma once
|
|
|
|
#include "Common/CommonWindows.h"
|
|
#include <Windowsx.h>
|
|
|
|
#include "Common/System/Request.h"
|
|
#include "Core/System.h"
|
|
|
|
namespace MainWindow {
|
|
void MainWindowMenu_Process(HWND hWnd, WPARAM wParam);
|
|
void TranslateMenus(HWND hWnd, HMENU menu);
|
|
void BrowseAndBoot(RequesterToken token, std::string defaultPath, bool browseDirectory = false);
|
|
void setTexScalingMultiplier(int level);
|
|
void SetIngameMenuItemStates(HMENU menu, const GlobalUIState state);
|
|
}
|