Skip to content

Commit

Permalink
Added conversion to cia
Browse files Browse the repository at this point in the history
  • Loading branch information
memeToasty committed Aug 4, 2022
1 parent af23e0c commit f98b03c
Show file tree
Hide file tree
Showing 14 changed files with 389 additions and 1 deletion.
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
*.slo
*.lo
*.o
*.obj
#*.obj

# Precompiled Headers
*.gch
Expand Down Expand Up @@ -38,5 +38,6 @@ deploy
*.elf
*.smdh
build/
*.cia

.vscode/
6 changes: 6 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,12 @@ GRAPHICS := gfx
ROMFS := romfs
GFXBUILD := $(ROMFS)/gfx

APP_TITLE := Sorting-Algorithms
APP_DESCRIPTION := A visualisation of sorting algorithms
APP_AUTHOR := memeToasty

ICON := meta/icon.png

#---------------------------------------------------------------------------------
# options for code generation
#---------------------------------------------------------------------------------
Expand Down
13 changes: 13 additions & 0 deletions build.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
# I know this is very illegal, because there is already a Makefile, but I don't know how to make it work.
# I don't know how to make it work.
# I don't know how to make it work.
# I don't know how to make it work.
# I don't know how to make it work.
# I don't know how to make it work.
# I don't know how to make it work.
# I don't know how to make it work.
# I don't know how to make it work.
# I don't know how to make it work.

bannertool makebanner -ci meta/COMMON.cgfx -a meta/beep.wav -o meta/banner.bnr
makerom -f cia -o 3ds_sorting.cia -banner meta/banner.bnr -elf ./3ds_sorting.elf -rsf meta/rominfo.rsf -icon meta/icon.icn
Binary file added meta/COMMON.cgfx
Binary file not shown.
13 changes: 13 additions & 0 deletions meta/COMMON.mtl
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
# Blender MTL File: 'None'
# Material Count: 1

newmtl COMMON
Ns 250.000000
Ka 1.000000 1.000000 1.000000
Kd 0.800000 0.800000 0.800000
Ks 0.500000 0.500000 0.500000
Ke 0.000000 0.000000 0.000000
Ni 1.450000
d 1.000000
illum 2
map_Kd map.png
114 changes: 114 additions & 0 deletions meta/COMMON.obj
Original file line number Diff line number Diff line change
@@ -0,0 +1,114 @@
# Blender v3.2.2 OBJ File: ''
# www.blender.org
mtllib COMMON.mtl
o COMMON
v 1.500000 5.480666 -1.500000
v 1.500000 -2.519334 -1.500000
v 1.500000 5.480666 1.500000
v 1.500000 -2.519334 1.500000
v -1.500000 5.480666 -1.500000
v -1.500000 -2.519334 -1.500000
v -1.500000 5.480666 1.500000
v -1.500000 -2.519334 1.500000
v -2.500000 2.500000 -1.500000
v -2.500000 -2.500000 -1.500000
v -2.500000 2.500000 1.500000
v -2.500000 -2.500000 1.500000
v -5.500000 2.500000 -1.500000
v -5.500000 -2.500000 -1.500000
v -5.500000 2.500000 1.500000
v -5.500000 -2.500000 1.500000
v 5.500000 8.483793 -1.500000
v 5.500000 -2.516206 -1.500000
v 5.500000 8.483793 1.500000
v 5.500000 -2.516206 1.500000
v 2.500000 8.483793 -1.500000
v 2.500000 -2.516206 -1.500000
v 2.500000 8.483793 1.500000
v 2.500000 -2.516206 1.500000
vt 0.580341 0.225899
vt 0.654125 0.152168
vt 0.654098 0.225925
vt 0.727909 0.078438
vt 0.727882 0.152195
vt 0.654045 0.373440
vt 0.727829 0.299709
vt 0.727802 0.373466
vt 0.727855 0.225952
vt 0.801639 0.152221
vt 0.801612 0.225979
vt 0.654072 0.299682
vt 0.922193 0.782743
vt 0.849571 0.855366
vt 0.849571 0.782743
vt 0.776948 0.927988
vt 0.776948 0.855366
vt 0.849571 0.637498
vt 0.776948 0.710120
vt 0.776948 0.637498
vt 0.776948 0.782743
vt 0.704326 0.855366
vt 0.704326 0.782743
vt 0.849571 0.710120
vt 0.523267 0.785613
vt 0.466952 0.841929
vt 0.466952 0.785613
vt 0.410637 0.898244
vt 0.410637 0.841929
vt 0.466952 0.672983
vt 0.410637 0.729298
vt 0.410637 0.672983
vt 0.410637 0.785613
vt 0.354322 0.841929
vt 0.354322 0.785613
vt 0.466952 0.729298
vt 0.580368 0.152142
vt 0.654151 0.078411
vt 0.922193 0.855366
vt 0.849571 0.927988
vt 0.523267 0.841929
vt 0.466952 0.898244
vn 0.0000 1.0000 0.0000
vn 0.0000 0.0000 1.0000
vn -1.0000 0.0000 0.0000
vn 0.0000 -1.0000 0.0000
vn 1.0000 0.0000 0.0000
vn 0.0000 0.0000 -1.0000
usemtl COMMON
s off
f 5/1/1 3/2/1 1/3/1
f 3/2/2 8/4/2 4/5/2
f 7/6/3 6/7/3 8/8/3
f 2/9/4 8/10/4 6/11/4
f 1/3/5 4/5/5 2/9/5
f 5/12/6 2/9/6 6/7/6
f 13/13/1 11/14/1 9/15/1
f 11/14/2 16/16/2 12/17/2
f 15/18/3 14/19/3 16/20/3
f 10/21/4 16/22/4 14/23/4
f 9/15/5 12/17/5 10/21/5
f 13/24/6 10/21/6 14/19/6
f 21/25/1 19/26/1 17/27/1
f 19/26/2 24/28/2 20/29/2
f 23/30/3 22/31/3 24/32/3
f 18/33/4 24/34/4 22/35/4
f 17/27/5 20/29/5 18/33/5
f 21/36/6 18/33/6 22/31/6
f 5/1/1 7/37/1 3/2/1
f 3/2/2 7/38/2 8/4/2
f 7/6/3 5/12/3 6/7/3
f 2/9/4 4/5/4 8/10/4
f 1/3/5 3/2/5 4/5/5
f 5/12/6 1/3/6 2/9/6
f 13/13/1 15/39/1 11/14/1
f 11/14/2 15/40/2 16/16/2
f 15/18/3 13/24/3 14/19/3
f 10/21/4 12/17/4 16/22/4
f 9/15/5 11/14/5 12/17/5
f 13/24/6 9/15/6 10/21/6
f 21/25/1 23/41/1 19/26/1
f 19/26/2 23/42/2 24/28/2
f 23/30/3 21/36/3 22/31/3
f 18/33/4 20/29/4 24/34/4
f 17/27/5 19/26/5 20/29/5
f 21/36/6 17/27/6 18/33/6
Binary file added meta/banner.bnr
Binary file not shown.
Binary file added meta/bars.blend
Binary file not shown.
Binary file added meta/beep.cwav
Binary file not shown.
Binary file added meta/beep.wav
Binary file not shown.
Binary file added meta/icon.icn
Binary file not shown.
Binary file added meta/icon.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 added meta/map.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading

0 comments on commit f98b03c

Please sign in to comment.