Skip to content

Commit 58e8abb

Browse files
authored
Merge pull request #23 from TraceEntertains/main
Nimbus 1.5.0
2 parents c20e2bf + 9f28311 commit 58e8abb

24 files changed

+595
-374
lines changed

README.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,9 +23,11 @@
2323
Thanks to:
2424

2525
- [pinklimes](https://github.com/gitlimes) for the CIA version banner
26-
- [TraceEntertains](https://github.com/TraceEntertains) for making a CIA version of Nimbus and a few other things
26+
- [TraceEntertains](https://github.com/TraceEntertains) for making a CIA version of Nimbus and maintaining the project
2727
- [SciresM](https://github.com/SciresM) for making the 3DS SSL patches
2828
- [zaksabeast](https://github.com/zaksabeast) for the original 3ds-Friend-Account-Manager and all the research into the friends and act system titles
2929
- [shutterbug2000](https://github.com/shutterbug2000) for the GUI
30-
- [libctru](https://github.com/devkitPro/libctru) for the `frda.c` base, homebrew template, and all of the library functions
30+
- [libctru](https://github.com/devkitPro/libctru) for the `frda.c` base, homebrew template, and other library functions (and thanks to citro2d for part of a system font function)
31+
- [Universal-Core](https://github.com/Universal-Team/Universal-Core) for the string drawing functions
32+
- [Fangal-Airbag](https://github.com/Fangal-Airbag) for making the account switcher GUI support button controls
3133
- All other 3DS researchers

app/Makefile

Lines changed: 23 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -49,9 +49,11 @@ ICON := meta/icon.png
4949
BNR_IMAGE := meta/banner.png
5050
BNR_AUDIO := meta/audio.wav
5151

52+
VERSION_HEADER = version.hpp
53+
5254
VERSION_MAJOR := 1
53-
VERSION_MINOR := 0
54-
VERSION_MICRO := 2
55+
VERSION_MINOR := 5
56+
VERSION_MICRO := 0
5557

5658
#GFXBUILD := $(ROMFS)/gfx
5759

@@ -67,7 +69,7 @@ CFLAGS := -g -Wall $(OPTIMIZE) -mword-relocations \
6769

6870
CFLAGS += $(INCLUDE) -D__3DS__
6971

70-
CXXFLAGS := $(CFLAGS) -fno-rtti -fno-exceptions -std=gnu++11
72+
CXXFLAGS := $(CFLAGS) -fno-rtti -fno-exceptions -std=c++20
7173

7274
ASFLAGS := -g $(ARCH)
7375
LDFLAGS = -specs=3dsx.specs -g $(ARCH) -Wl,-Map,$(notdir $*.map) $(OPTIMIZE)
@@ -221,14 +223,14 @@ else
221223
#---------------------------------------------------------------------------------
222224
# main targets
223225
#---------------------------------------------------------------------------------
224-
all: 3dsx cia
226+
all: $(VERSION_HEADER) $(OUTPUT).3dsx $(OUTPUT).cia
225227

226-
3dsx: $(OUTPUT).3dsx
228+
3dsx: $(VERSION_HEADER) $(OUTPUT).3dsx
227229

228-
cia: $(OUTPUT).cia
230+
cia: $(VERSION_HEADER) $(OUTPUT).cia
229231

230232
ifeq ($(strip $(NO_SMDH)),)
231-
.PHONY: all
233+
.PHONY: $(VERSION_HEADER) all
232234
all: $(OUTPUT).3dsx $(OUTPUT).smdh
233235
$(OUTPUT).smdh: $(TOPDIR)/Makefile $(TOPDIR)/Makefile
234236
$(OUTPUT).3dsx: $(OUTPUT).smdh
@@ -238,7 +240,20 @@ $(OUTPUT).3dsx: $(OUTPUT).elf $(_3DSXDEPS)
238240

239241
$(OFILES_SOURCES): $(HFILES)
240242

241-
$(OUTPUT).elf: $(OFILES)
243+
$(OUTPUT).elf: $(OFILES)
244+
245+
$(VERSION_HEADER):
246+
@echo generating version header...
247+
@mkdir -p $(BUILD) # Create the build directory if it doesn't exist
248+
@echo "// Compile time constants" > $@.new
249+
@echo "" >> $@.new
250+
@echo "#define APP_TITLE \"$(APP_TITLE)\"" >> $@.new
251+
@echo "" >> $@.new
252+
@echo "#define VERSION_MAJOR $(VERSION_MAJOR)" >> $@.new
253+
@echo "#define VERSION_MINOR $(VERSION_MINOR)" >> $@.new
254+
@echo "#define VERSION_MICRO $(VERSION_MICRO)" >> $@.new
255+
@if ! cmp -s $@ $@.new; then mv $@.new $@; else rm $@.new; fi
256+
242257
#---------------------------------------------------------------------------------
243258
# you need a rule like this for each extension you use as binary data
244259
#---------------------------------------------------------------------------------

app/romfs/gfx/debug_button.png

-1.08 KB
Binary file not shown.

app/romfs/gfx/debug_header.png

-1.13 KB
Binary file not shown.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 commit comments

Comments
 (0)