mirror of
https://github.com/hrydgard/ppsspp.git
synced 2024-11-23 13:30:02 +00:00
53 lines
1.3 KiB
C++
53 lines
1.3 KiB
C++
#pragma once
|
|
|
|
#include "Core/Host.h"
|
|
|
|
#include <list>
|
|
#include <memory>
|
|
|
|
#include "Windows/InputDevice.h"
|
|
|
|
class UWPHost : public Host {
|
|
public:
|
|
UWPHost();
|
|
~UWPHost();
|
|
|
|
void UpdateMemView() override;
|
|
void UpdateDisassembly() override;
|
|
void UpdateUI() override;
|
|
void SetDebugMode(bool mode) override;
|
|
|
|
// If returns false, will return a null context
|
|
bool InitGraphics(std::string *error_message, GraphicsContext **ctx) override;
|
|
void PollControllers() override;
|
|
void ShutdownGraphics() override;
|
|
|
|
void InitSound() override;
|
|
void UpdateSound() override;
|
|
void ShutdownSound() override;
|
|
|
|
bool IsDebuggingEnabled() override;
|
|
void BootDone() override;
|
|
bool AttemptLoadSymbolMap() override;
|
|
void SaveSymbolMap() override;
|
|
void NotifySymbolMapUpdated() override;
|
|
void SetWindowTitle(const char *message) override;
|
|
|
|
void ToggleDebugConsoleVisibility() override;
|
|
|
|
bool CanCreateShortcut() override;
|
|
bool CreateDesktopShortcut(std::string argumentPath, std::string title) override;
|
|
|
|
void NotifyUserMessage(const std::string &message, float duration = 1.0f, u32 color = 0x00FFFFFF, const char *id = nullptr) override;
|
|
|
|
void NotifySwitchUMDUpdated() override {}
|
|
|
|
GraphicsContext *GetGraphicsContext() { return nullptr; }
|
|
|
|
private:
|
|
void SetConsolePosition();
|
|
void UpdateConsolePosition();
|
|
|
|
std::list<std::unique_ptr<InputDevice>> input;
|
|
};
|