MCPcopy Create free account
hub / github.com/GarageGames/Torque2D / isUserDataPath

Function isUserDataPath

engine/source/platformAndroid/AndroidFileio.cpp:78–106  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

76}
77
78bool isUserDataPath(const char* path)
79{
80 if (!path || !*path)
81 return false;
82
83 if (path[0] == '/')
84 {
85 if (strstr(path, Platform::getUserDataDirectory()) != NULL)
86 {
87 return true;
88 }
89 else
90 {
91 return false;
92 }
93 }
94 else
95 {
96 const char* tmp = Platform::getUserDataDirectory();
97 if (strstr(path, tmp+1) != NULL)
98 {
99 return true;
100 }
101 else
102 {
103 return false;
104 }
105 }
106}
107
108//-----------------------------------------------------------------------------
109bool Platform::fileDelete(const char * name)

Callers 7

openMethod · 0.85
isFileMethod · 0.85
isDirectoryMethod · 0.85
getFileSizeMethod · 0.85
hasSubDirectoryMethod · 0.85
dumpDirectoriesMethod · 0.85
dumpPathMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected