34 string osname = cvar_string(
"sys_platform");
79 searchhandle fileSearch;
83 fileCount = search_getsize(fileSearch);
85 NSLog(
"Looking for %S in %S", fileName, gameDir);
91 for (
int i = 0; i < fileCount; i++) {
93 string fullPath = search_getpackagename(fileSearch, i);
94 fileDir = substring(fullPath, 0, strlen(gameDir));
96 if (fileDir == gameDir) {
97 NSLog(
"Found %S in %S", fileName, gameDir);
102 NSError(
"Did not find %S in %S", fileName, gameDir);
111 string gameDir = cvar_string(
"game");
#define NSError(...)
Logs an error message, with timestamp.
Definition: global.h:85
#define NSLog(...)
Logs an message, with timestamp.
Definition: global.h:79
@ SEARCH_FULLPACKAGE
Definition: defs.h:190