libkhax
libkhax copied to clipboard
problem compilation last version solved
I make a change in Khaxinit.cpp in line 984
` //Check whether this system is a New 3DS. Result KHAX::IsNew3DS(bool *answer, u32 kernelVersionAlreadyKnown) { // If the kernel version isn't already known by the caller, find out. u32 kernelVersion = kernelVersionAlreadyKnown; if (kernelVersion == 0) { kernelVersion = osGetKernelVersion(); }
// APT_CheckNew3DS doesn't work on < 8.0.0, but neither do such New 3DS's exist.
if (kernelVersion >= SYSTEM_VERSION(2, 44, 6))
{
// Check whether the system is a New 3DS. If this fails, abort, because being wrong would
// crash the system.
u8 isNew3DS = false;
if (Result error = APT_CheckNew3DS(&isNew3DS))
{
*answer = false;
return error;
}
// Use the result of APT_CheckNew3DS.
*answer = isNew3DS;
return 0;
}
// Kernel is older than 8.0.0, so we logically conclude that this cannot be a New 3DS.
*answer = false;
return 0;
}
//------------------------------------------------------------------------------------------------ // gspwn, meant for reading from or writing to freed buffers. Result KHAX::GSPwn(void *dest, const void *src, std::size_t size, bool wait) `
You probably need to update your ctrulib build to the latest source.
oh, ok, thank for the help.