34 string osname = cvar_string(
"sys_platform");
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 searchhandle
Definition: fteextensions.qc:268
const float TRUE
Definition: fteextensions.qc:862
get __int i
Definition: fteextensions.qc:3826
#define NSError(...)
Logs an error message, with timestamp.
Definition: global.h:75
#define NSLog(...)
Logs an message, with timestamp.
Definition: global.h:69
@ SEARCH_FULLPACKAGE
Definition: defs.h:176