1
0
Fork 0
mirror of https://github.com/suchmememanyskill/TegraExplorer.git synced 2024-11-22 11:56:42 +00:00

regain vs compatibility

This commit is contained in:
suchmememanyskill 2021-07-28 00:46:39 +02:00
parent 74b6106f26
commit 87fb740602
3 changed files with 23 additions and 33 deletions

View file

@ -44,7 +44,7 @@ Variable_t* genericGet(Variable_t* var, CallArgs_t* ref) {
if (var->variableType == memberGetters[i].classType) {
Variable_t member = memberGetters[i].func(var, ref->extra);
if (member.variableType == None)
return NULL;
break;
if (member.variableType == ReferenceType) {
return member.referenceType;

View file

@ -14,5 +14,7 @@ void printScriptError(u8 errLevel, char* message, ...) {
if (errLevel < SCRIPT_WARN)
gfx_printf("\nError occured on or near line %d\n", (u32)scriptCurrentLine);
va_end(args);
#ifndef WIN32
hidWait();
#endif
}

View file

@ -464,36 +464,14 @@ ClassFunction(stdPower){
#else
#define STUBBED(name) ClassFunction(name) { return newIntVariablePtr(0); }
ClassFunction(stdMountSysmmc){
return newIntVariablePtr(0);
}
ClassFunction(stdMountSave){
return newIntVariablePtr(0);
}
ClassFunction(stdSetPixel) {
return newIntVariablePtr(0);
}
ClassFunction(stdReadDir){
return newIntVariablePtr(0);
}
ClassFunction(stdFileCopy){
return newIntVariablePtr(0);
}
ClassFunction(stdMkdir){
return newIntVariablePtr(0);
}
ClassFunction(stdGetMemUsage) {
return newIntVariablePtr(0);
}
ClassFunction(stdGetNcaType) {
return newIntVariablePtr(0);
}
STUBBED(stdMountSysmmc)
STUBBED(stdMountSave)
STUBBED(stdSetPixel)
STUBBED(stdReadDir)
STUBBED(stdFileCopy)
STUBBED(stdMkdir)
STUBBED(stdGetMemUsage)
STUBBED(stdGetNcaType)
STUBBED(stdPause)
STUBBED(stdPauseMask)
STUBBED(stdColor)
@ -510,6 +488,16 @@ STUBBED(stdFileMove)
STUBBED(stdLaunchPayload)
STUBBED(stdFileWrite)
STUBBED(stdFileRead)
STUBBED(stdCombinePaths)
STUBBED(stdEmmcFileWrite)
STUBBED(stdEmmcFileRead)
STUBBED(stdEmummcFileRead)
STUBBED(stdEmummcFileWrite)
STUBBED(stdEscPaths)
STUBBED(stdGetCwd)
STUBBED(stdPower)
STUBBED(stdSetPrintPos)
STUBBED(stdSetPixels)
#endif
u8 oneIntoneFunction[] = { IntClass, FunctionClass };