mirror of
https://github.com/suchmememanyskill/TegraExplorer.git
synced 2024-11-09 13:41:45 +00:00
Add some fuse features
This commit is contained in:
parent
f5fa98c725
commit
c9bb7e7766
1 changed files with 11 additions and 0 deletions
|
@ -26,6 +26,7 @@
|
||||||
#include "../fs/fsutils.h"
|
#include "../fs/fsutils.h"
|
||||||
#include <storage/nx_sd.h>
|
#include <storage/nx_sd.h>
|
||||||
#include "../storage/emmcfile.h"
|
#include "../storage/emmcfile.h"
|
||||||
|
#include <soc/fuse.h>
|
||||||
#endif
|
#endif
|
||||||
// Takes [int, function]. Returns elseable.
|
// Takes [int, function]. Returns elseable.
|
||||||
ClassFunction(stdIf) {
|
ClassFunction(stdIf) {
|
||||||
|
@ -461,6 +462,14 @@ ClassFunction(stdPower){
|
||||||
return &emptyClass;
|
return &emptyClass;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
ClassFunction(stdIsPatched){
|
||||||
|
return newIntVariablePtr(fuse_check_patched_rcm());
|
||||||
|
}
|
||||||
|
|
||||||
|
ClassFunction(stdHwType){
|
||||||
|
return newIntVariablePtr(fuse_read_hw_type());
|
||||||
|
}
|
||||||
|
|
||||||
#else
|
#else
|
||||||
#define STUBBED(name) ClassFunction(name) { return newIntVariablePtr(0); }
|
#define STUBBED(name) ClassFunction(name) { return newIntVariablePtr(0); }
|
||||||
|
|
||||||
|
@ -543,6 +552,8 @@ ClassFunctionTableEntry_t standardFunctionDefenitions[] = {
|
||||||
{"emmcwrite", stdEmmcFileWrite, 2, twoStringArgStd},
|
{"emmcwrite", stdEmmcFileWrite, 2, twoStringArgStd},
|
||||||
{"emummcread", stdEmummcFileRead, 2, twoStringArgStd},
|
{"emummcread", stdEmummcFileRead, 2, twoStringArgStd},
|
||||||
{"emummcwrite", stdEmummcFileWrite, 2, twoStringArgStd},
|
{"emummcwrite", stdEmummcFileWrite, 2, twoStringArgStd},
|
||||||
|
{"fuse_patched", stdIsPatched, 0, 0},
|
||||||
|
{"fuse_hwtype", stdHwType, 0, 0},
|
||||||
|
|
||||||
// FileSystem
|
// FileSystem
|
||||||
// Dir
|
// Dir
|
||||||
|
|
Loading…
Reference in a new issue