commit e3e96c44864245fbfd1854f3590ea8d7f87463d3
Author: Jon Bell <jondbell@protonmail.com>
AuthorDate: Sun Jun 21 10:23:39 2020 -0600
Commit: Jon Bell <jondbell@protonmail.com>
CommitDate: Sun Jun 21 10:23:39 2020 -0600
Add 3ds CIA build
---
.gitignore | 2 +
Makefile | 3 +
platform/3ds/Makefile | 24 ++++-
platform/3ds/banner/FAKE-08-banner.png | Bin 0 -> 1213 bytes
platform/3ds/banner/FAKE-08-icon.png | Bin 0 -> 358 bytes
platform/3ds/banner/FAKE-08.rsf | 192 +++++++++++++++++++++++++++++++++
platform/3ds/banner/FAKE-08.wav | Bin 0 -> 83476 bytes
platform/3ds/banner/banner.pdn | Bin 0 -> 8586 bytes
8 files changed, 220 insertions(+), 1 deletion(-)
diff --git a/.gitignore b/.gitignore
index dc76693..70cbccf 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1,6 +1,8 @@
*.3dsx
*.elf
*.smdh
+*.bnr
+*.cia
*.nacp
*.nro
diff --git a/Makefile b/Makefile
index cf605ed..006e30b 100644
--- a/Makefile
+++ b/Makefile
@@ -21,5 +21,8 @@ clean-switch:
3ds:
@$(MAKE) -C platform/3ds
+cia:
+ @$(MAKE) cia -C platform/3ds
+
switch:
@$(MAKE) -C platform/switch
\ No newline at end of file
diff --git a/platform/3ds/Makefile b/platform/3ds/Makefile
index 1039f56..9b57197 100644
--- a/platform/3ds/Makefile
+++ b/platform/3ds/Makefile
@@ -31,6 +31,14 @@ include $(DEVKITARM)/3ds_rules
# - icon.png
# - <libctru folder>/default_icon.png
#---------------------------------------------------------------------------------
+APP_TITLE := FAKE-08
+APP_AUTHOR := jtothebell
+APP_DESCRIPTION := A Pico 8 Emulator
+
+UNIQUE_ID := 0xF8F08
+PRODUCT_CODE := CTR-P-FK08
+RSF_PATH := app.rsf
+
TARGET := FAKE-08
BUILD := build
SOURCES := ${SOURCES} source
@@ -180,7 +188,7 @@ endif
#---------------------------------------------------------------------------------
clean:
@echo clean ...
- @rm -fr $(BUILD) $(TARGET).3dsx $(OUTPUT).smdh $(TARGET).elf $(GFXBUILD)
+ @rm -fr $(BUILD) $(TARGET).3dsx $(OUTPUT).smdh $(TARGET).elf $(GFXBUILD) $(TARGET)-strip.elf $(TARGET)-cia.bnr $(TARGET)-cia.smdh $(TARGET).cia
#---------------------------------------------------------------------------------
$(GFXBUILD)/%.t3x $(BUILD)/%.h : %.t3s
@@ -189,6 +197,20 @@ $(GFXBUILD)/%.t3x $(BUILD)/%.h : %.t3s
@tex3ds -i $< -H $(BUILD)/$*.h -d $(DEPSDIR)/$*.d -o $(GFXBUILD)/$*.t3x
#---------------------------------------------------------------------------------
+$(TARGET)-strip.elf: $(BUILD)
+ @$(STRIP) $(TARGET).elf -o $(TARGET)-strip.elf
+#---------------------------------------------------------------------------------
+$(TARGET)-cia.bnr: banner/$(TARGET)-banner.png banner/$(TARGET).wav
+ @bannertool makebanner -i banner/$(TARGET)-banner.png -a banner/$(TARGET).wav -o $(TARGET)-cia.bnr
+#---------------------------------------------------------------------------------
+$(TARGET)-cia.smdh: banner/$(TARGET)-icon.png
+ @bannertool makesmdh -s "$(TARGET)" -l "$(APP_TITLE)" -p "$(APP_AUTHOR)" -i banner/$(TARGET)-icon.png -o $(TARGET)-cia.smdh -r regionfree
+#---------------------------------------------------------------------------------
+cia: $(TARGET)-strip.elf $(TARGET)-cia.bnr $(TARGET)-cia.smdh banner/$(TARGET).rsf
+ @makerom -f cia -elf $(TARGET)-strip.elf -icon $(TARGET)-cia.smdh -banner $(TARGET)-cia.bnr -desc app:4 -v -o $(TARGET).cia -target t -exefslogo -rsf banner/$(TARGET).rsf
+ @echo "built cia"
+#---------------------------------------------------------------------------------
+
else
#---------------------------------------------------------------------------------
diff --git a/platform/3ds/banner/FAKE-08-banner.png b/platform/3ds/banner/FAKE-08-banner.png
new file mode 100644
index 0000000..c098a25
Binary files /dev/null and b/platform/3ds/banner/FAKE-08-banner.png differ
diff --git a/platform/3ds/banner/FAKE-08-icon.png b/platform/3ds/banner/FAKE-08-icon.png
new file mode 100644
index 0000000..b0340d1
Binary files /dev/null and b/platform/3ds/banner/FAKE-08-icon.png differ
diff --git a/platform/3ds/banner/FAKE-08.rsf b/platform/3ds/banner/FAKE-08.rsf
new file mode 100644
index 0000000..f3880de
--- /dev/null
+++ b/platform/3ds/banner/FAKE-08.rsf
@@ -0,0 +1,192 @@
+BasicInfo:
+ Title : $(APP_TITLE)
+ CompanyCode : "00"
+ ProductCode : $(APP_PRODUCT_CODE)
+ ContentType : Application
+ Logo : Homebrew # Nintendo / Licensed / Distributed / iQue / iQueForSystem
+
+TitleInfo:
+ UniqueId : $(APP_UNIQUE_ID)
+
+ Category : Application
+
+CardInfo:
+ MediaSize : 128MB # 128MB / 256MB / 512MB / 1GB / 2GB / 4GB
+ MediaType : Card1 # Card1 / Card2
+ CardDevice : NorFlash # NorFlash(Pick this if you use savedata) / None
+
+
+Option:
+ UseOnSD : true # true if App is to be installed to SD
+ FreeProductCode : true # Removes limitations on ProductCode
+ MediaFootPadding : false # If true CCI files are created with padding
+ EnableCrypt : false # Enables encryption for NCCH and CIA
+ EnableCompress : true # Compresses exefs code
+
+AccessControlInfo:
+ #UseExtSaveData : true
+ #ExtSaveDataId: 0xff3ff
+ #UseExtendedSaveDataAccessControl: true
+ #AccessibleSaveDataIds: [0x101, 0x202, 0x303, 0x404, 0x505, 0x606]
+
+SystemControlInfo:
+ SaveDataSize: 128KB
+ RemasterVersion: 7
+ StackSize: 0x40000
+
+# DO NOT EDIT BELOW HERE OR PROGRAMS WILL NOT LAUNCH (most likely)
+
+AccessControlInfo:
+ FileSystemAccess:
+ - Debug
+ - DirectSdmc
+ - DirectSdmcWrite
+
+ IdealProcessor : 0
+ AffinityMask : 1
+
+ Priority : 16
+
+ MaxCpu : 0x9E # Default
+ DisableDebug : false
+ EnableForceDebug : false
+ CanWriteSharedPage : false
+ CanUsePrivilegedPriority : false
+ CanUseNonAlphabetAndNumber : false
+ PermitMainFunctionArgument : false
+ CanShareDeviceMemory : false
+ RunnableOnSleep : false
+ SpecialMemoryArrange : false
+ CoreVersion : 2
+ DescVersion : 2
+
+ ReleaseKernelMajor : "02"
+ ReleaseKernelMinor : "33"
+ MemoryType : Application
+ HandleTableSize: 512
+ IORegisterMapping:
+ - 1ff50000-1ff57fff
+ - 1ff70000-1ff77fff
+ MemoryMapping:
+ - 1f000000-1f5fffff:r
+ SystemCallAccess:
+ ArbitrateAddress: 34
+ Break: 60
+ CancelTimer: 28
+ ClearEvent: 25
+ ClearTimer: 29
+ CloseHandle: 35
+ ConnectToPort: 45
+ ControlMemory: 1
+ CreateAddressArbiter: 33
+ CreateEvent: 23
+ CreateMemoryBlock: 30
+ CreateMutex: 19
+ CreateSemaphore: 21
+ CreateThread: 8
+ CreateTimer: 26
+ DuplicateHandle: 39
+ ExitProcess: 3
+ ExitThread: 9
+ GetCurrentProcessorNumber: 17
+ GetHandleInfo: 41
+ GetProcessId: 53
+ GetProcessIdOfThread: 54
+ GetProcessIdealProcessor: 6
+ GetProcessInfo: 43
+ GetResourceLimit: 56
+ GetResourceLimitCurrentValues: 58
+ GetResourceLimitLimitValues: 57
+ GetSystemInfo: 42
+ GetSystemTick: 40
+ GetThreadContext: 59
+ GetThreadId: 55
+ GetThreadIdealProcessor: 15
+ GetThreadInfo: 44
+ GetThreadPriority: 11
+ MapMemoryBlock: 31
+ OutputDebugString: 61
+ QueryMemory: 2
+ ReleaseMutex: 20
+ ReleaseSemaphore: 22
+ SendSyncRequest1: 46
+ SendSyncRequest2: 47
+ SendSyncRequest3: 48
+ SendSyncRequest4: 49
+ SendSyncRequest: 50
+ SetThreadPriority: 12
+ SetTimer: 27
+ SignalEvent: 24
+ SleepThread: 10
+ UnmapMemoryBlock: 32
+ WaitSynchronization1: 36
+ WaitSynchronizationN: 37
+ InterruptNumbers:
+ ServiceAccessControl:
+ - APT:U
+ - $hioFIO
+ - $hostio0
+ - $hostio1
+ - ac:u
+ - boss:U
+ - cam:u
+ - cecd:u
+ - cfg:u
+ - dlp:FKCL
+ - dlp:SRVR
+ - dsp::DSP
+ - frd:u
+ - fs:USER
+ - gsp::Gpu
+ - hid:USER
+ - http:C
+ - mic:u
+ - ndm:u
+ - news:s
+ - nwm::UDS
+ - ptm:u
+ - pxi:dev
+ - soc:U
+ - gsp::Lcd
+ - y2r:u
+ - ldr:ro
+ - ir:USER
+ - ir:u
+ - csnd:SND
+ - am:u
+ - ns:s
+ - ptm:sysm
+ - mcu::HWC
+
+SystemControlInfo:
+ Dependency:
+ ac: 0x0004013000002402L
+ am: 0x0004013000001502L
+ boss: 0x0004013000003402L
+ camera: 0x0004013000001602L
+ cecd: 0x0004013000002602L
+ cfg: 0x0004013000001702L
+ codec: 0x0004013000001802L
+ csnd: 0x0004013000002702L
+ dlp: 0x0004013000002802L
+ dsp: 0x0004013000001a02L
+ friends: 0x0004013000003202L
+ gpio: 0x0004013000001b02L
+ gsp: 0x0004013000001c02L
+ hid: 0x0004013000001d02L
+ http: 0x0004013000002902L
+ i2c: 0x0004013000001e02L
+ ir: 0x0004013000003302L
+ mcu: 0x0004013000001f02L
+ mic: 0x0004013000002002L
+ ndm: 0x0004013000002b02L
+ news: 0x0004013000003502L
+ nim: 0x0004013000002c02L
+ nwm: 0x0004013000002d02L
+ pdn: 0x0004013000002102L
+ ps: 0x0004013000003102L
+ ptm: 0x0004013000002202L
+ ro: 0x0004013000003702L
+ socket: 0x0004013000002e02L
+ spi: 0x0004013000002302L
+ ssl: 0x0004013000002f02L
diff --git a/platform/3ds/banner/FAKE-08.wav b/platform/3ds/banner/FAKE-08.wav
new file mode 100644
index 0000000..fa25fff
Binary files /dev/null and b/platform/3ds/banner/FAKE-08.wav differ
diff --git a/platform/3ds/banner/banner.pdn b/platform/3ds/banner/banner.pdn
new file mode 100644
index 0000000..1fcdbe5
Binary files /dev/null and b/platform/3ds/banner/banner.pdn differ