Debian Codegraph @

src/platforms/apple.cpp

raw symbols SCIP
1
2 /**
3 *
4 * @file apple.cpp
5 *
6 * Part of the OpenJazz project
7 *
8 * @par Licence:
9 * Copyright (c) 2015-2023 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 "apple.h"
17
18 #ifdef __APPLE__
19
20 #include "TargetConditionals.h"
21
22 #include <SDL.h>
23 #include "util.h"
24 #include "io/file.h"
25
26 void ApplePlatform::AddGamePaths() {
27 #ifdef TARGET_OS_MAC
28 gamePaths.add(createString(SDL_GetPrefPath("", "OpenJazz")), PATH_TYPE_SYSTEM|PATH_TYPE_GAME|PATH_TYPE_CONFIG);
29 #endif
30 }
31
32 void ApplePlatform::ErrorNoDatafiles() {
33 #ifdef TARGET_OS_MAC
34 SDL_ShowSimpleMessageBox(SDL_MESSAGEBOX_ERROR, "OpenJazz", createString("Unable to find game data files.\n\nPut the data into the folder: ", SDL_GetPrefPath("", "OpenJazz")), 0);
35 #endif
36 }
37
38 #endif