mirror of
https://github.com/shadps4-emu/shadPS4.git
synced 2025-05-21 02:45:00 +00:00
moved main code , to emulator,cpp , emulator.h class
This commit is contained in:
parent
dfc4f1c35b
commit
d89e4463e7
4 changed files with 171 additions and 113 deletions
30
src/emulator.h
Normal file
30
src/emulator.h
Normal file
|
@ -0,0 +1,30 @@
|
|||
// 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:
|
||||
Discord::RPC discord_rpc;
|
||||
Input::GameController* controller = Common::Singleton<Input::GameController>::Instance();
|
||||
Frontend::WindowSDL window;
|
||||
};
|
||||
|
||||
} // namespace Core
|
Loading…
Add table
Add a link
Reference in a new issue