git.y1.nz

gbdk-2020

GameBoy Development Kit
download: https://git.y1.nz/archives/gbdk.tar.gz
README | Files | Log | Refs | LICENSE

commit 593b4cfc996fdb28ea4d9b42b3ea9e9d509528fc
parent 1b0fe961398f0c69c3f6f466fd7e3d458afd6408
Author: Toxa <untoxa@mail.ru>
Date:   Sun, 11 Jul 2021 19:38:19 +0300

double quoted filename parameter for INCBIN macro

Diffstat:
Mgbdk-lib/examples/gb/incbin/src/main.c8++++----
Mgbdk-lib/include/gb/incbin.h2+-
2 files changed, 5 insertions(+), 5 deletions(-)

diff --git a/gbdk-lib/examples/gb/incbin/src/main.c b/gbdk-lib/examples/gb/incbin/src/main.c @@ -3,13 +3,13 @@ #include <gb/incbin.h> -INCBIN(logo_tiles_data, res/gbdk2020.bin) // Variable name to use, Path to file -INCBIN_EXTERN(logo_tiles_data) // Extern declarations for binary data +INCBIN(logo_tiles_data, "res/gbdk2020.bin") // Variable name to use, Path to file +INCBIN_EXTERN(logo_tiles_data) // Extern declarations for binary data -INCBIN(logo_map, res/gbdk2020_map.bin) +INCBIN(logo_map, "res/gbdk2020_map.bin") INCBIN_EXTERN(logo_map) -INCBIN(blank_tile_data, res/blanktile.bin) +INCBIN(blank_tile_data, "res/blanktile.bin") INCBIN_EXTERN(blank_tile_data) diff --git a/gbdk-lib/include/gb/incbin.h b/gbdk-lib/include/gb/incbin.h @@ -67,7 +67,7 @@ extern const void __bank_ ## VARNAME; __asm \ _ ## VARNAME:: \ 1$: \ - .incbin #FILEPATH \ + .incbin FILEPATH \ 2$: \ ___size_ ## VARNAME = (2$-1$) \ .globl ___size_ ## VARNAME \

This webpage is intended to be an accessible preview of this repository. To get a fuller picture, clone it and use the git CLI.