From 4047ea98691d46971cdf75e6c1abe42d9b50de9f Mon Sep 17 00:00:00 2001 From: aliaspider Date: Wed, 21 Oct 2015 16:37:13 +0100 Subject: (CTR/3DS) build fix for ctrulib/great-refactor --- 3ds/libkhax/khaxinit.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to '3ds') diff --git a/3ds/libkhax/khaxinit.cpp b/3ds/libkhax/khaxinit.cpp index 5c5ad81..795195a 100644 --- a/3ds/libkhax/khaxinit.cpp +++ b/3ds/libkhax/khaxinit.cpp @@ -977,7 +977,7 @@ Result KHAX::IsNew3DS(bool *answer, u32 kernelVersionAlreadyKnown) // Check whether the system is a New 3DS. If this fails, abort, because being wrong would // crash the system. u8 isNew3DS = 0; - if (Result error = APT_CheckNew3DS(nullptr, &isNew3DS)) + if (Result error = APT_CheckNew3DS(&isNew3DS)) { *answer = false; return error; @@ -999,14 +999,14 @@ Result KHAX::GSPwn(void *dest, const void *src, std::size_t size, bool wait) { // Attempt a flush of the source, but ignore the result, since we may have just been asked to // read unmapped memory or something similar. - GSPGPU_FlushDataCache(nullptr, static_cast(const_cast(src)), size); + GSPGPU_FlushDataCache(static_cast(const_cast(src)), size); // Invalidate the destination's cache, since we're about to overwrite it. Likewise, ignore // errors, since it may be the destination that is an unmapped address. - GSPGPU_InvalidateDataCache(nullptr, static_cast(dest), size); + GSPGPU_InvalidateDataCache(static_cast(dest), size); // Copy that floppy. - if (Result result = GX_SetTextureCopy(nullptr, static_cast(const_cast(src)), 0, + if (Result result = GX_TextureCopy(static_cast(const_cast(src)), 0, static_cast(dest), 0, size, 8)) { KHAX_printf("gspwn:copy fail:%08lx\n", result); -- cgit v1.2.3