mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-11-27 16:23:35 +01:00
Avoid directly calling osm from Core/GPU code.
This allows UI to handle the message however it wants to, and reduces cross linkage issues.
This commit is contained in:
1 parent
27d135d48a
commit
a1fbcc3d93
22 files changed
+55
-46
No files matched your search
@@ -34,10 +34,12 @@
|
||||
#include "input/keycodes.h"
|
||||
#include "util/text/utf8.h"
|
||||
|
||||
#include "Common/StringUtils.h"
|
||||
#include "Core/Core.h"
|
||||
#include "Core/Config.h"
|
||||
#include "Core/CoreParameter.h"
|
||||
#include "Core/System.h"
|
||||
#include "Core/Debugger/SymbolMap.h"
|
||||
#include "Windows/EmuThread.h"
|
||||
#include "Windows/DSoundStream.h"
|
||||
#include "Windows/WindowsHost.h"
|
||||
@@ -54,10 +56,8 @@
|
||||
#include "Windows/XinputDevice.h"
|
||||
#include "Windows/KeyboardDevice.h"
|
||||
|
||||
#include "Core/Debugger/SymbolMap.h"
|
||||
|
||||
#include "Common/StringUtils.h"
|
||||
#include "Windows/main.h"
|
||||
#include "UI/OnScreenDisplay.h"
|
||||
|
||||
static const int numCPUs = 1;
|
||||
|
||||
@@ -348,3 +348,7 @@ void WindowsHost::GoFullscreen(bool viewFullscreen) {
|
||||
void WindowsHost::ToggleDebugConsoleVisibility() {
|
||||
MainWindow::ToggleDebugConsoleVisibility();
|
||||
}
|
||||
|
||||
void WindowsHost::NotifyUserMessage(const std::string &message, float duration, u32 color, const char *id) {
|
||||
osm.Show(message, duration, color, -1, true, id);
|
||||
}
|
||||
Reference in new issue
Block a user