diff --git a/src/game/Doom2DF.lpr b/src/game/Doom2DF.lpr
index 8808d633f3181c3460a7b15b64ce27e2e613e13f..91fd3a6276cf4a7778f5322d5616a1107ea3124a 100644 (file)
--- a/src/game/Doom2DF.lpr
+++ b/src/game/Doom2DF.lpr
g_triggers in 'g_triggers.pas',
g_weapons in 'g_weapons.pas',
g_window in 'g_window.pas',
- g_holmes in 'g_holmes.pas',
SysUtils,
{$IFDEF USE_FMOD}
fmod in '../lib/FMOD/fmod.pas',
g_panel in 'g_panel.pas',
g_language in 'g_language.pas',
+{$IFDEF ENABLE_HOLMES}
+ g_holmes in 'g_holmes.pas',
+
sdlcarcass in '../flexui/sdlcarcass.pas',
//sdlstandalone in '../flexui/sdlstandalone.pas',
fui_style in '../flexui/fui_style.pas',
fui_flexlay in '../flexui/fui_flexlay.pas',
fui_ctls in '../flexui/fui_ctls.pas',
+{$ENDIF}
ImagingTypes,
Imaging,
{$IFDEF ANDROID}
{$I-}
e_SetSafeSlowLog(true);
- Chdir('/sdcard/D2DF');
+ Chdir(SDL_AndroidGetExternalStoragePath());
if IOresult <> 0 then
begin
- Mkdir('/sdcard/D2DF');
- Chdir('/sdcard/D2DF');
+ Chdir(SDL_AndroidGetInternalStoragePath());
if IOresult <> 0 then
begin
- e_WriteLog('Fail: cant chdir /sdcard/D2DF', TMsgType.Fatal);
+ e_WriteLog('Fuck! Cant chdir to any game directory :(', TMsgType.Fatal);
result := 1;
exit;
end;