khaxinit.cpp
arm-none-eabi-g++ -MMD -MP -MF /home/user/Transferências/3DSSystemTools-master/3DSInstallTickets/build/khaxinit.d -g -Wall -O3 -mword-relocations -fomit-frame-pointer -ffast-math -march=armv6k -mtune=mpcore -mfloat-abi=hard -I/home/user/Transferências/3DSSystemTools-master/3DSInstallTickets/include -I/opt/devkitpro/libctru/include -I/home/user/Transferências/3DSSystemTools-master/3DSInstallTickets/build -DARM11 -D_3DS -DARM_ARCH -w -fno-rtti -fno-exceptions -std=gnu++11 -w -c /home/user/Transferências/3DSSystemTools-master/3DSInstallTickets/./khaxinit.cpp -o khaxinit.o
/home/user/Transferências/3DSSystemTools-master/3DSInstallTickets/./khaxinit.cpp: In member function 'void* KHAX::VersionData::ConvertLinearUserVAToKernelVA(void*) const':
/home/user/Transferências/3DSSystemTools-master/3DSInstallTickets/./khaxinit.cpp:268:41: error: invalid conversion from 'u32 {aka long unsigned int}' to 'const void*' [-fpermissive]
u32 physical = osConvertVirtToPhys(addr);
^
In file included from /opt/devkitpro/libctru/include/3ds.h:17:0,
from /home/user/Transferências/3DSSystemTools-master/3DSInstallTickets/./khaxinit.cpp:1:
/opt/devkitpro/libctru/include/3ds/os.h:46:5: note: initializing argument 1 of 'u32 osConvertVirtToPhys(const void*)'
u32 osConvertVirtToPhys(const void* vaddr);
^
/home/user/Transferências/3DSSystemTools-master/3DSInstallTickets/./khaxinit.cpp: In function 'Result KHAX::IsNew3DS(bool*, u32)':
/home/user/Transferências/3DSSystemTools-master/3DSInstallTickets/./khaxinit.cpp:980:56: error: too many arguments to function 'Result APT_CheckNew3DS(u8*)'
if (Result error = APT_CheckNew3DS(nullptr, &isNew3DS))
^
In file included from /opt/devkitpro/libctru/include/3ds.h:31:0,
from /home/user/Transferências/3DSSystemTools-master/3DSInstallTickets/./khaxinit.cpp:1:
/opt/devkitpro/libctru/include/3ds/services/apt.h:388:8: note: declared here
Result APT_CheckNew3DS(u8 *out);
^
/home/user/Transferências/3DSSystemTools-master/3DSInstallTickets/./khaxinit.cpp: In function 'Result KHAX::GSPwn(void*, const void*, std::size_t, bool)':
/home/user/Transferências/3DSSystemTools-master/3DSInstallTickets/./khaxinit.cpp:1002:81: error: invalid conversion from 'u8* {aka unsigned char*}' to 'u32 {aka long unsigned int}' [-fpermissive]
GPU_FlushDataCache(nullptr, static_cast<u8 *>(const_cast<void *>(src)), size);
^
/home/user/Transferências/3DSSystemTools-master/3DSInstallTickets/./khaxinit.cpp:1002:81: error: too many arguments to function 'Result GSPGPU_FlushDataCache(const void*, u32)'
In file included from /opt/devkitpro/libctru/include/3ds/gfx.h:11:0,
from /opt/devkitpro/libctru/include/3ds.h:20,
from /home/user/Transferências/3DSSystemTools-master/3DSInstallTickets/./khaxinit.cpp:1:
/opt/devkitpro/libctru/include/3ds/services/gspgpu.h:171:8: note: declared here
Result GSPGPU_FlushDataCache(const void* adr, u32 size);
^
/home/user/Transferências/3DSSystemTools-master/3DSInstallTickets/./khaxinit.cpp:1006:67: error: invalid conversion from 'u8* {aka unsigned char*}' to 'u32 {aka long unsigned int}' [-fpermissive]
GSPGPU_InvalidateDataCache(nullptr, static_cast<u8 *>(dest), size);
^
/home/user/Transferências/3DSSystemTools-master/3DSInstallTickets/./khaxinit.cpp:1006:67: error: too many arguments to function 'Result GSPGPU_InvalidateDataCache(const void*, u32)'
In file included from /opt/devkitpro/libctru/include/3ds/gfx.h:11:0,
from /opt/devkitpro/libctru/include/3ds.h:20,
from /home/user/Transferências/3DSSystemTools-master/3DSInstallTickets/./khaxinit.cpp:1:
/opt/devkitpro/libctru/include/3ds/services/gspgpu.h:178:8: note: declared here
Result GSPGPU_InvalidateDataCache(const void* adr, u32 size);
^
/home/user/Transferências/3DSSystemTools-master/3DSInstallTickets/./khaxinit.cpp:1010:39: error: 'GX_SetTextureCopy' was not declared in this scope
static_cast<u32 *>(dest), 0, size, 8))
^
/opt/devkitpro/devkitARM/base_rules:79: recipe for target 'khaxinit.o' failed
make[1]: *** [khaxinit.o] Error 1
Makefile:125: recipe for target 'build' failed
make: *** [build] Error 2