mirror of
https://github.com/CTCaer/RetroArch.git
synced 2024-12-13 22:08:34 +00:00
(CTR/3DS) improved .cia building
Makerom supports template .rsf files directly.
This commit is contained in:
parent
71280f9ae5
commit
ec5a50da80
10
Makefile.ctr
10
Makefile.ctr
@ -15,6 +15,8 @@ APP_UNIQUE_ID = 0xBAC00
|
||||
APP_ICON = ctr/default.png
|
||||
APP_BANNER = ctr/libretro_banner.png
|
||||
APP_AUDIO = ctr/silent.wav
|
||||
APP_CIA_RSF = ctr/tools/template-cia.rsf
|
||||
APP_3DS_RSF = ctr/tools/template-3ds.rsf
|
||||
|
||||
include ctr/Makefile.cores
|
||||
|
||||
@ -369,15 +371,12 @@ $(TARGET).bnr: $(APP_BANNER) $(APP_AUDIO)
|
||||
$(TARGET).icn: $(APP_ICON)
|
||||
$(BANNERTOOL) makesmdh -s "$(APP_TITLE)" -l "$(APP_TITLE)" -p "$(APP_AUTHOR)" -i $(APP_ICON) -o $@
|
||||
|
||||
$(TARGET).rsf: ctr/tools/template-cia.rsf
|
||||
cat ctr/tools/template-cia.rsf | sed 's/{APP_TITLE}/$(APP_TITLE)/' | sed 's/{APP_PRODUCT_CODE}/$(APP_PRODUCT_CODE)/' | sed 's/{APP_UNIQUE_ID}/$(APP_UNIQUE_ID)/' > $@
|
||||
|
||||
$(TARGET)_stripped.elf: $(TARGET).elf
|
||||
cp $(TARGET).elf $@
|
||||
$(STRIP) $@
|
||||
|
||||
$(TARGET).cia: $(TARGET)_stripped.elf $(TARGET).bnr $(TARGET).icn $(TARGET).rsf
|
||||
$(MAKEROM) -f cia -o $@ -rsf $(TARGET).rsf -target t -exefslogo -elf $(TARGET)_stripped.elf -icon $(TARGET).icn -banner $(TARGET).bnr
|
||||
$(TARGET).cia: $(TARGET)_stripped.elf $(TARGET).bnr $(TARGET).icn
|
||||
$(MAKEROM) -f cia -o $@ -rsf $(APP_CIA_RSF) -target t -exefslogo -elf $(TARGET)_stripped.elf -icon $(TARGET).icn -banner $(TARGET).bnr -DAPP_TITLE=$(APP_TITLE) -DAPP_PRODUCT_CODE=$(APP_PRODUCT_CODE) -DAPP_UNIQUE_ID=$(APP_UNIQUE_ID)
|
||||
|
||||
clean:
|
||||
rm -f $(OBJS)
|
||||
@ -387,7 +386,6 @@ clean:
|
||||
rm -f $(TARGET).cia
|
||||
rm -f $(TARGET).bnr
|
||||
rm -f $(TARGET).icn
|
||||
rm -f $(TARGET).rsf
|
||||
rm -f *_shader_shbin.h
|
||||
|
||||
.PHONY: clean
|
||||
|
@ -1,7 +1,7 @@
|
||||
BasicInfo:
|
||||
Title : "{APP_TITLE}"
|
||||
Title : "$(APP_TITLE)"
|
||||
CompanyCode : "00"
|
||||
ProductCode : "{APP_PRODUCT_CODE}"
|
||||
ProductCode : "$(APP_PRODUCT_CODE)"
|
||||
ContentType : Application
|
||||
Logo : Nintendo # Nintendo / Licensed / Distributed / iQue / iQueForSystem
|
||||
|
||||
@ -9,9 +9,8 @@ BasicInfo:
|
||||
# Specifies the root path of the file system to include in the ROM.
|
||||
# HostRoot : "romfs"
|
||||
|
||||
|
||||
TitleInfo:
|
||||
UniqueId : {APP_UNIQUE_ID}
|
||||
UniqueId : $(APP_UNIQUE_ID)
|
||||
Category : Application
|
||||
|
||||
CardInfo:
|
||||
|
@ -1,7 +1,7 @@
|
||||
BasicInfo:
|
||||
Title : "{APP_TITLE}"
|
||||
Title : "$(APP_TITLE)"
|
||||
CompanyCode : "00"
|
||||
ProductCode : "{APP_PRODUCT_CODE}"
|
||||
ProductCode : "$(APP_PRODUCT_CODE)"
|
||||
ContentType : Application
|
||||
Logo : Nintendo # Nintendo / Licensed / Distributed / iQue / iQueForSystem
|
||||
|
||||
@ -10,7 +10,7 @@ BasicInfo:
|
||||
# HostRoot : "romfs"
|
||||
|
||||
TitleInfo:
|
||||
UniqueId : {APP_UNIQUE_ID}
|
||||
UniqueId : $(APP_UNIQUE_ID)
|
||||
Category : Application
|
||||
|
||||
CardInfo:
|
||||
|
Loading…
Reference in New Issue
Block a user