Skip to content

Commit

Permalink
Merge pull request #6 from Garcia98/master
Browse files Browse the repository at this point in the history
CIA stuff (added proper banner and icon and fixes to RSF files)
  • Loading branch information
elhobbs committed Feb 2, 2016
2 parents 57b9a71 + 2f806a9 commit d2d7a92
Show file tree
Hide file tree
Showing 7 changed files with 8 additions and 40 deletions.
5 changes: 5 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -155,8 +155,13 @@ $(OUTPUT).cia : $(OUTPUT).elf
@echo $(notdir $(OUTPUT))
@cp $(OUTPUT).elf $(TARGET)_stripped.elf
arm-none-eabi-strip $(TARGET)_stripped.elf
ifeq ($(shell uname),Linux)
makerom -f cci -rsf $(TOPDIR)/resources/gw_workaround.rsf -target d -exefslogo -elf $(TARGET)_stripped.elf -icon $(TOPDIR)/resources/icon.bin -banner $(TOPDIR)/resources/banner.bin -o $(TOPDIR)/$(notdir $(OUTPUT)).3ds
makerom -f cia -o $(OUTPUT).cia -elf $(TARGET)_stripped.elf -rsf $(TOPDIR)/resources/build_cia.rsf -icon $(TOPDIR)/resources/icon.bin -banner $(TOPDIR)/resources/banner.bin -exefslogo -target t
else
$(TOPDIR)\resources\makerom.exe -f cci -rsf $(TOPDIR)\resources\gw_workaround.rsf -target d -exefslogo -elf $(TARGET)_stripped.elf -icon $(TOPDIR)\resources\icon.bin -banner $(TOPDIR)\resources\banner.bin -o $(TOPDIR)\$(notdir $(OUTPUT)).3ds
$(TOPDIR)\resources\makerom.exe -f cia -o $(OUTPUT).cia -elf $(TARGET)_stripped.elf -rsf $(TOPDIR)\resources\build_cia.rsf -icon $(TOPDIR)\resources\icon.bin -banner $(TOPDIR)\resources\banner.bin -exefslogo -target t
endif
# @echo built ... $(notdir $@)

#---------------------------------------------------------------------------------
Expand Down
Binary file added banner.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified resources/banner.bin
Binary file not shown.
22 changes: 2 additions & 20 deletions resources/build_cia.rsf
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,6 @@ BasicInfo:
ContentType : Application # Application / SystemUpdate / Manual / Child / Trial
Logo : Nintendo # Nintendo / Licensed / Distributed / iQue / iQueForSystem

Rom:
# Specifies the root path of the file system to include in the ROM.
# HostRoot : "$(ROMFS_ROOT)"


TitleInfo:
UniqueId : 0xf0032 # This was/is the first real homebrew app. I hope this TID range is not used by any retail game/app.
Expand All @@ -26,21 +22,6 @@ Option:
FreeProductCode : true # Removes limitations on ProductCode
EnableCrypt : false # Enables encryption for NCCH and CIA
MediaFootPadding : false # If true CCI files are created with padding

ExeFs: # these are the program segments from the ELF, check your elf for the appropriate segment names
ReadOnly:
- .rodata
- RO
ReadWrite:
- .data
- RO
Text:
- .init
- .text
- STUP_ENTRY

PlainRegion: # only used with SDK ELFs
# - .module_id

AccessControlInfo:
# UseOtherVariationSaveData : true
Expand Down Expand Up @@ -195,6 +176,7 @@ AccessControlInfo:
- ssl:C
- y2r:u
- ldr:ro
- ir:rst
- ir:USER
- ir:u
- csnd:SND
Expand Down Expand Up @@ -237,4 +219,4 @@ SystemControlInfo:
ro: 0x0004013000003702L
socket: 0x0004013000002e02L
spi: 0x0004013000002302L
ssl: 0x0004013000002f02L
ssl: 0x0004013000002f02L
21 changes: 1 addition & 20 deletions resources/gw_workaround.rsf
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,6 @@ BasicInfo:
ContentType : Application # Application / SystemUpdate / Manual / Child / Trial
Logo : Nintendo # Nintendo / Licensed / Distributed / iQue / iQueForSystem

Rom:
# Specifies the root path of the file system to include in the ROM.
#HostRoot : "romfs"


TitleInfo:
UniqueId : 0xf0021 # This was/is the first real homebrew app. I hope this TID range is not used by any retail game/app.
Expand All @@ -25,21 +21,6 @@ Option:
MediaFootPadding : false # If true CCI files are created with padding
EnableCrypt : true # Enables encryption for NCCH and CIA
EnableCompress : true # Compresses exefs code

ExeFs: # these are the program segments from the ELF, check your elf for the appropriate segment names
ReadOnly:
- .rodata
- RO
ReadWrite:
- .data
- RO
Text:
- .init
- .text
- STUP_ENTRY

PlainRegion: # only used with SDK ELFs
- .module_id

AccessControlInfo:
#UseExtSaveData : true
Expand Down Expand Up @@ -231,4 +212,4 @@ CommonHeaderKey:
AAAAAAAAAABOn/rw/7//8ec/APIA8JH/APaR/1D/gf9Y/4H/cP+B/3j/gf8B
AQD/AAIA/iECAPz/////////////////////////////////////////////
////////////////////////////////////////AAAAAAAAAAAAAAAAAAAA
AAADAAAAAAAAAAAAAAAAAAI=
AAADAAAAAAAAAAAAAAAAAAI=
Binary file modified resources/icon.bin
Binary file not shown.
Binary file modified resources/makerom.exe
Binary file not shown.

0 comments on commit d2d7a92

Please sign in to comment.