Be consistent about how we read and update the UI state variable

This commit is contained in:
Henrik Rydgard committed 2014-06-22 09:57:01 +02:00
1 parent b5435260b0
commit 6ec74ef99e
10 files changed
+30 -24

No files matched your search

+5 -1
View File
@@ -72,7 +72,7 @@ enum CPUThreadState {
MetaFileSystem pspFileSystem;
ParamSFOData g_paramSFO;
GlobalUIState globalUIState;
static GlobalUIState globalUIState;
static CoreParameter coreParameter;
static PSPMixer *mixer;
static std::thread *cpuThread = NULL;
@@ -96,6 +96,10 @@ void UpdateUIState(GlobalUIState newState) {
}
}
GlobalUIState GetUIState() {
return globalUIState;
}
bool IsAudioInitialised() {
return mixer != NULL;
}