Debian Codegraph @

src/platforms/android.cpp

raw symbols SCIP
1
2 /**
3 *
4 * @file android.cpp
5 *
6 * Part of the OpenJazz project
7 *
8 * @par Licence:
9 * Copyright (c) 2015-2024 Carsten Teibes
10 *
11 * OpenJazz is distributed under the terms of
12 * the GNU General Public License, version 2.0
13 *
14 */
15
16 #include "android.h"
17
18 #ifdef __ANDROID__
19
20 #include <SDL.h>
21 #include "io/file.h"
22 #include "util.h"
23
24 void AndroidPlatform::AddGamePaths() {
25 const char* pref = SDL_GetPrefPath("eu.alister", "openjazz");
26 if(pref) {
27 gamePaths.add(createString(pref), PATH_TYPE_CONFIG|PATH_TYPE_TEMP);
28 }
29
30 const char* storage = SDL_AndroidGetExternalStoragePath();
31 if(storage) {
32 gamePaths.add(createString(storage), PATH_TYPE_SYSTEM|PATH_TYPE_GAME);
33 }
34 }
35
36 #endif