32 lines
756 B
C++
32 lines
756 B
C++
// SPDX-FileCopyrightText: Copyright 2024 shadPS4 Emulator Project
|
|
// SPDX-License-Identifier: GPL-2.0-or-later
|
|
|
|
#pragma once
|
|
|
|
#include <filesystem>
|
|
#include <thread>
|
|
|
|
#include <common/singleton.h>
|
|
#include "common/discord.h"
|
|
#include "core/linker.h"
|
|
#include "input/controller.h"
|
|
#include "sdl_window.h"
|
|
|
|
namespace Core {
|
|
|
|
class Emulator {
|
|
public:
|
|
Emulator();
|
|
~Emulator();
|
|
|
|
void Run(const std::filesystem::path& file);
|
|
|
|
private:
|
|
void LoadSystemModules(const std::filesystem::path& file);
|
|
Discord::RPC discord_rpc;
|
|
Input::GameController* controller = Common::Singleton<Input::GameController>::Instance();
|
|
Core::Linker* linker = Common::Singleton<Core::Linker>::Instance();
|
|
Frontend::WindowSDL window;
|
|
};
|
|
|
|
} // namespace Core
|