From 94ec354dde88a3e5e9f3f5b23f3506f83f0beb80 Mon Sep 17 00:00:00 2001 From: elijah-thomas774 Date: Sun, 12 May 2024 14:33:48 -0400 Subject: [PATCH] fix gxinit extern --- src/egg/core/eggGraphicsFifo.cpp | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/src/egg/core/eggGraphicsFifo.cpp b/src/egg/core/eggGraphicsFifo.cpp index bb937d13..1ea1455f 100644 --- a/src/egg/core/eggGraphicsFifo.cpp +++ b/src/egg/core/eggGraphicsFifo.cpp @@ -1,14 +1,11 @@ -#include #include #include +#include - -extern "C" void *GXInit(void *buf, u32 bufSize); extern "C" void GXGetGPStatus(GXBool *overhi, GXBool *underlow, GXBool *readIdle, GXBool *cmdIdle, GXBool *brkpt); namespace EGG { - GraphicsFifo *GraphicsFifo::sGraphicsFifo; u8 GraphicsFifo::sGpStatus[]; @@ -16,7 +13,7 @@ void GraphicsFifo::create(u32 size, Heap *heap) { if (heap == nullptr) { heap = Heap::sCurrentHeap; } - sGraphicsFifo = new(heap, 0x04) GraphicsFifo(size, heap); + sGraphicsFifo = new (heap, 0x04) GraphicsFifo(size, heap); } GraphicsFifo::~GraphicsFifo() {