added android makefiles
ensure data directory is created
This commit is contained in:
parent
34bd4d1bbd
commit
6bcf41c5d2
5 changed files with 53 additions and 4 deletions
|
|
@ -3017,6 +3017,18 @@ DLL_GIVEFNPTRSTODLL GiveFnptrsToDll (enginefuncs_t *functionTable, globalvars_t
|
|||
// register our cvars
|
||||
convars.PushRegisteredConVarsToEngine ();
|
||||
|
||||
// ensure data & learned directory are created (as we can download waypoints from the net)
|
||||
const char *path = GetWaypointDir ();
|
||||
|
||||
// ensure data path exists
|
||||
CreatePath (const_cast <char *> (path));
|
||||
|
||||
char learnedPath[256];
|
||||
snprintf (learnedPath, SIZEOF_CHAR (learnedPath), "%s/learned", path);
|
||||
|
||||
// ensure data/learned path exists
|
||||
CreatePath (learnedPath);
|
||||
|
||||
#ifdef PLATFORM_ANDROID
|
||||
g_gameVersion = CSV_OLD; // temporary, until opensource client dll get BotVoice message
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue