From 5f457aaf2d3ce47097332c777fd3461ee281e337 Mon Sep 17 00:00:00 2001 From: jeefo Date: Fri, 1 Jan 2016 13:40:39 +0300 Subject: [PATCH] first blood. 2016. --- source/interface.cpp | 26 ++++++++++++++------------ 1 file changed, 14 insertions(+), 12 deletions(-) diff --git a/source/interface.cpp b/source/interface.cpp index f5867f8..f65df2d 100644 --- a/source/interface.cpp +++ b/source/interface.cpp @@ -3017,19 +3017,21 @@ 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 (path)); - - char learnedPath[256]; - snprintf (learnedPath, SIZEOF_CHAR (learnedPath), "%s/learned", path); - - // ensure data/learned path exists - CreatePath (learnedPath); - #ifdef PLATFORM_ANDROID + // ensure data & learned directory are created (as we can download waypoints from the net), do this + // only under the android platform, in case user forget to install bot extras into the mod directory + + const char *path = GetWaypointDir (); + + // ensure data path exists + CreatePath (const_cast (path)); + + char learnedPath[256]; + snprintf (learnedPath, SIZEOF_CHAR (learnedPath), "%s/learned", path); + + // ensure data/learned path exists + CreatePath (learnedPath); + g_gameVersion = CSV_OLD; // temporary, until opensource client dll get BotVoice message if (g_isMetamod)