Skip to content

Commit

Permalink
Refactor file structure
Browse files Browse the repository at this point in the history
  • Loading branch information
cpcf committed May 27, 2021
1 parent fa0e800 commit 92c72c5
Show file tree
Hide file tree
Showing 8 changed files with 8 additions and 4 deletions.
1 change: 0 additions & 1 deletion build.sh

This file was deleted.

File renamed without changes.
5 changes: 5 additions & 0 deletions src/build.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
mkdir -p ../game &&
output="../game" &&
rgbasm -E -o $output/main.o main.asm &&
rgblink -o $output/metronome.gb $output/main.o -n $output/metronome.sym &&
rgbfix -v -p 255 $output/metronome.gb && rm $output/*.o
File renamed without changes.
File renamed without changes.
6 changes: 3 additions & 3 deletions setupGingerbread.asm → src/setupGingerbread.asm
Original file line number Diff line number Diff line change
Expand Up @@ -20,15 +20,15 @@ ROM_SIZE EQU 1
; 0 means no RAM, 1 means 2 kB, 2 -> 8 kB, 3 -> 32 kB, 4 -> 128 kB
RAM_SIZE EQU 1

INCLUDE "deps/gingerbread.asm"
INCLUDE "../deps/gingerbread.asm"

; To compile this game without gbt-player, comment out this line (don't set it to 0)
;USE_GBT_PLAYER EQU 1

; This section is for including files that need to be in data banks
SECTION "Include@banks",ROMX
INCLUDE "deps/ibmpc1.inc"
INCLUDE "images/metronome_bg.inc"
INCLUDE "../deps/ibmpc1.inc"
INCLUDE "../deps/metronome_bg.inc"

IF DEF(USE_GBT_PLAYER)
INCLUDE "gbt_player.inc"
Expand Down
File renamed without changes.
File renamed without changes.

0 comments on commit 92c72c5

Please sign in to comment.