mirror of
https://github.com/suchmememanyskill/TegraExplorer.git
synced 2024-11-26 05:42:07 +00:00
regain vs compatibility
This commit is contained in:
parent
74b6106f26
commit
87fb740602
3 changed files with 23 additions and 33 deletions
|
@ -44,7 +44,7 @@ Variable_t* genericGet(Variable_t* var, CallArgs_t* ref) {
|
||||||
if (var->variableType == memberGetters[i].classType) {
|
if (var->variableType == memberGetters[i].classType) {
|
||||||
Variable_t member = memberGetters[i].func(var, ref->extra);
|
Variable_t member = memberGetters[i].func(var, ref->extra);
|
||||||
if (member.variableType == None)
|
if (member.variableType == None)
|
||||||
return NULL;
|
break;
|
||||||
|
|
||||||
if (member.variableType == ReferenceType) {
|
if (member.variableType == ReferenceType) {
|
||||||
return member.referenceType;
|
return member.referenceType;
|
||||||
|
|
|
@ -14,5 +14,7 @@ void printScriptError(u8 errLevel, char* message, ...) {
|
||||||
if (errLevel < SCRIPT_WARN)
|
if (errLevel < SCRIPT_WARN)
|
||||||
gfx_printf("\nError occured on or near line %d\n", (u32)scriptCurrentLine);
|
gfx_printf("\nError occured on or near line %d\n", (u32)scriptCurrentLine);
|
||||||
va_end(args);
|
va_end(args);
|
||||||
|
#ifndef WIN32
|
||||||
hidWait();
|
hidWait();
|
||||||
|
#endif
|
||||||
}
|
}
|
|
@ -464,36 +464,14 @@ ClassFunction(stdPower){
|
||||||
#else
|
#else
|
||||||
#define STUBBED(name) ClassFunction(name) { return newIntVariablePtr(0); }
|
#define STUBBED(name) ClassFunction(name) { return newIntVariablePtr(0); }
|
||||||
|
|
||||||
ClassFunction(stdMountSysmmc){
|
STUBBED(stdMountSysmmc)
|
||||||
return newIntVariablePtr(0);
|
STUBBED(stdMountSave)
|
||||||
}
|
STUBBED(stdSetPixel)
|
||||||
ClassFunction(stdMountSave){
|
STUBBED(stdReadDir)
|
||||||
return newIntVariablePtr(0);
|
STUBBED(stdFileCopy)
|
||||||
}
|
STUBBED(stdMkdir)
|
||||||
ClassFunction(stdSetPixel) {
|
STUBBED(stdGetMemUsage)
|
||||||
return newIntVariablePtr(0);
|
STUBBED(stdGetNcaType)
|
||||||
}
|
|
||||||
|
|
||||||
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(stdPause)
|
STUBBED(stdPause)
|
||||||
STUBBED(stdPauseMask)
|
STUBBED(stdPauseMask)
|
||||||
STUBBED(stdColor)
|
STUBBED(stdColor)
|
||||||
|
@ -510,6 +488,16 @@ STUBBED(stdFileMove)
|
||||||
STUBBED(stdLaunchPayload)
|
STUBBED(stdLaunchPayload)
|
||||||
STUBBED(stdFileWrite)
|
STUBBED(stdFileWrite)
|
||||||
STUBBED(stdFileRead)
|
STUBBED(stdFileRead)
|
||||||
|
STUBBED(stdCombinePaths)
|
||||||
|
STUBBED(stdEmmcFileWrite)
|
||||||
|
STUBBED(stdEmmcFileRead)
|
||||||
|
STUBBED(stdEmummcFileRead)
|
||||||
|
STUBBED(stdEmummcFileWrite)
|
||||||
|
STUBBED(stdEscPaths)
|
||||||
|
STUBBED(stdGetCwd)
|
||||||
|
STUBBED(stdPower)
|
||||||
|
STUBBED(stdSetPrintPos)
|
||||||
|
STUBBED(stdSetPixels)
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
u8 oneIntoneFunction[] = { IntClass, FunctionClass };
|
u8 oneIntoneFunction[] = { IntClass, FunctionClass };
|
||||||
|
|
Loading…
Reference in a new issue