Debian Codegraph @

src/platforms/wii.cpp

raw symbols SCIP
1
2 /**
3 *
4 * @file wii.cpp
5 *
6 * Part of the OpenJazz project
7 *
8 * @par Licence:
9 * Copyright (c) 2015-2026 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 "wii.h"
17
18 #ifdef __wii__
19
20 #include <gccore.h>
21 #include <fat.h>
22
23 #include "util.h"
24 #include "io/file.h"
25
26 WiiPlatform::WiiPlatform() {
27 // file system is enabled in SDL2Main
28
29 // USBGecko Debugging
30 constexpr int SLOT = CARD_SLOTB;
31 if (usb_isgeckoalive(SLOT)) {
32 usb_flush(SLOT);
33 CON_EnableGecko(SLOT, false);
34 }
35 #ifndef NDEBUG
36 // Dolphin UART Debugging
37 else if(!__system_argv->argc) {
38 SYS_STDIO_Report(true);
39 }
40 #endif
41 }
42
43 void WiiPlatform::AddGamePaths() {
44 gamePaths.add(createString("sd:/apps/OpenJazz/"), PATH_TYPE_GAME|PATH_TYPE_CONFIG);
45 }
46
47 #endif