Huge refactor: Make Core a singleton

This commit is contained in:
irisz64
2025-07-29 11:08:05 +02:00
parent e0e887ce90
commit 3061334004
56 changed files with 426 additions and 594 deletions

View File

@@ -190,8 +190,9 @@ void ParallelRDP::UpdateScreen(Util::IntrusivePtr<Image> image) const {
wsi->end_frame();
}
void ParallelRDP::UpdateScreen(n64::Core &core, bool playing) const {
void ParallelRDP::UpdateScreen(bool playing) const {
if(playing) {
n64::Core& core = n64::Core::GetInstance();
n64::VI& vi = core.GetVI();
command_processor->set_vi_register(VIRegister::Control, vi.status.raw);
command_processor->set_vi_register(VIRegister::Origin, vi.origin);

View File

@@ -3,10 +3,6 @@
#include <wsi.hpp>
#include <common.hpp>
namespace n64 {
struct Core;
}
class ParallelRDP {
public:
class WindowInfo {
@@ -22,7 +18,7 @@ public:
void Init(const std::shared_ptr<Vulkan::WSIPlatform> &,
const std::shared_ptr<WindowInfo> &, const u8 *);
void UpdateScreen(n64::Core &, bool = true) const;
void UpdateScreen(bool = true) const;
void EnqueueCommand(int, const u32 *) const;
void OnFullSync() const;
bool IsFramerateUnlocked() const;