mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-11-27 08:13:34 +01:00
Track the running GPU backend separate from config.
This way we can change the config directly when we want to save a new setting, rather than having hacks to use a temp var.
This commit is contained in:
1 parent
8b27bc51f5
commit
aa0055cea7
12 files changed
+49
-43
No files matched your search
@@ -90,6 +90,8 @@ volatile CoreState coreState = CORE_STEPPING;
|
||||
volatile bool coreStatePending = false;
|
||||
static volatile CPUThreadState cpuThreadState = CPU_THREAD_NOT_RUNNING;
|
||||
|
||||
static GPUBackend gpuBackend;
|
||||
|
||||
void UpdateUIState(GlobalUIState newState) {
|
||||
// Never leave the EXIT state.
|
||||
if (globalUIState != newState && globalUIState != UISTATE_EXIT) {
|
||||
@@ -102,6 +104,14 @@ GlobalUIState GetUIState() {
|
||||
return globalUIState;
|
||||
}
|
||||
|
||||
void SetGPUBackend(GPUBackend type) {
|
||||
gpuBackend = type;
|
||||
}
|
||||
|
||||
GPUBackend GetGPUBackend() {
|
||||
return gpuBackend;
|
||||
}
|
||||
|
||||
bool IsAudioInitialised() {
|
||||
return audioInitialized;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user