added android makefiles

ensure data directory is created
This commit is contained in:
jeefo 2015-12-30 09:16:01 +03:00
commit 6bcf41c5d2
5 changed files with 53 additions and 4 deletions

View file

@ -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