shadPS4/src/emulator.h

17 lines
466 B
C
Raw Normal View History

2023-08-09 09:31:18 +02:00
#pragma once
2023-09-12 18:39:08 +02:00
#include <Core/PS4/HLE/Graphics/graphics_ctx.h>
#include <Lib/Threads.h>
#include <SDL.h>
2023-08-09 09:31:18 +02:00
namespace Emulator {
2023-09-12 18:39:08 +02:00
struct WindowCtx {
HLE::Libs::Graphics::GraphicCtx m_graphic_ctx;
Lib::Mutex m_mutex;
bool m_is_graphic_initialized = false;
Lib::ConditionVariable m_graphic_initialized_cond;
SDL_Window* m_window = nullptr;
bool is_window_hidden = true;
};
void emuInit(u32 width, u32 height);
2023-08-09 09:31:18 +02:00
void emuRun();
2023-09-12 18:39:08 +02:00
} // namespace Emulator