Skip to content

Commit 0998409

Browse files
committed
Switch Compatibility fixes
1 parent 922e7cf commit 0998409

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/main_data.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@
3434
#include <SDL_system.h>
3535
#endif
3636

37-
#if defined(GEKKO) || defined(__MORPHOS__) || defined(__amigaos4__)
37+
#if defined(GEKKO) || defined(SWITCH) || defined(__MORPHOS__) || defined(__amigaos4__)
3838
#include <unistd.h>
3939
#endif
4040

@@ -83,7 +83,7 @@ void Main_Data::Init() {
8383
// first set to current directory for all platforms
8484
project_path = ".";
8585

86-
#if defined(GEKKO) || defined(__MORPHOS__) || defined(__amigaos4__)
86+
#if defined(GEKKO) || defined(SWITCH) || defined(__MORPHOS__) || defined(__amigaos4__)
8787
// Working directory not correctly handled
8888
char working_dir[256];
8989
getcwd(working_dir, 255);

src/registry_wine.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
* along with EasyRPG Player. If not, see <http://www.gnu.org/licenses/>.
1616
*/
1717

18-
#if !(defined(_WIN32) || defined(GEKKO) || defined(__ANDROID__) || defined(EMSCRIPTEN) || defined(_3DS))
18+
#if !(defined(_WIN32) || defined(GEKKO) || defined(__ANDROID__) || defined(EMSCRIPTEN) || defined(_3DS) || defined(SWITCH))
1919

2020
#include <cstdlib>
2121
#include "registry.h"

0 commit comments

Comments
 (0)