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
|
@ -43,8 +43,8 @@ Variable_t* genericGet(Variable_t* var, CallArgs_t* ref) {
|
|||
for (u32 i = 0; i < ARRAY_SIZE(memberGetters); i++) {
|
||||
if (var->variableType == memberGetters[i].classType) {
|
||||
Variable_t member = memberGetters[i].func(var, ref->extra);
|
||||
if (member.variableType == None)
|
||||
return NULL;
|
||||
if (member.variableType == None)
|
||||
break;
|
||||
|
||||
if (member.variableType == ReferenceType) {
|
||||
return member.referenceType;
|
||||
|
|
|
@ -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);
|
||||
hidWait();
|
||||
#ifndef WIN32
|
||||
hidWait();
|
||||
#endif
|
||||
}
|
|
@ -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 };
|
||||
|
|
Loading…
Reference in a new issue