Skip to content

Commit

Permalink
Fix Exosphere version check
Browse files Browse the repository at this point in the history
  • Loading branch information
caseif committed Jul 3, 2020
1 parent c875696 commit f5faa16
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ ICON := res/icon.jpg

ARCH := -march=armv8-a -mtune=cortex-a57 -mtp=soft -fPIE

CFLAGS := -g -Wall -O3 -ffunction-sections \
CFLAGS := -Wall -O3 -ffunction-sections \
$(ARCH) $(DEFINES) \
-D__VERSION_MAJOR=${VERSION_MAJOR} \
-D__VERSION_MINOR=${VERSION_MINOR} \
Expand All @@ -38,8 +38,8 @@ CFLAGS += $(INCLUDE) -D__SWITCH__

CXXFLAGS := $(CFLAGS) -fno-rtti -fno-exceptions -std=c++17

ASFLAGS := -g $(ARCH)
LDFLAGS = -specs=$(DEVKITPRO)/libnx/switch.specs -g $(ARCH) -Wl,-no-as-needed,-Map,$(notdir $*.map)
ASFLAGS := $(ARCH)
LDFLAGS = -specs=$(DEVKITPRO)/libnx/switch.specs $(ARCH) -Wl,-no-as-needed,-Map,$(notdir $*.map)

LIBS := -lnx

Expand Down
6 changes: 3 additions & 3 deletions src/path_helper.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,9 @@ static void _init(void) {
splGetConfig(SPL_CONFIG_EXO_VERSION, &ver);
splExit();

u32 exoMajor = (ver >> 32) & 0xFF;
u32 exoMinor = (ver >> 24) & 0xFF;
u32 exoMicro = (ver >> 16) & 0xFF;
u32 exoMajor = (ver >> 56) & 0xFF;
u32 exoMinor = (ver >> 48) & 0xFF;
u32 exoMicro = (ver >> 40) & 0xFF;

// AMS 0.10.0 changed the RomFS directory
if (exoMajor > 0 || (exoMinor >= 10)) {
Expand Down

0 comments on commit f5faa16

Please sign in to comment.