mirror of
https://github.com/yuzu-emu/yuzu.git
synced 2025-06-16 16:07:58 -05:00
dma_pusher: Remove reliance on the global system instance
With this, the video core is now has no calls to the global system instance at all.
This commit is contained in:
@ -12,7 +12,7 @@
|
||||
|
||||
namespace Tegra {
|
||||
|
||||
DmaPusher::DmaPusher(GPU& gpu) : gpu(gpu) {}
|
||||
DmaPusher::DmaPusher(Core::System& system, GPU& gpu) : gpu{gpu}, system{system} {}
|
||||
|
||||
DmaPusher::~DmaPusher() = default;
|
||||
|
||||
@ -26,7 +26,7 @@ void DmaPusher::DispatchCalls() {
|
||||
|
||||
dma_pushbuffer_subindex = 0;
|
||||
|
||||
while (Core::System::GetInstance().IsPoweredOn()) {
|
||||
while (system.IsPoweredOn()) {
|
||||
if (!Step()) {
|
||||
break;
|
||||
}
|
||||
|
Reference in New Issue
Block a user