git.y1.nz

gbdk-2020

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

commit 452c104697d521cc80b644fb33f0f14e43e92d8c
parent ca4c321370f4c3947f7509e429b63db861d035e6
Author: Zal0 <cebolleto@gmail.com>
Date:   Mon, 23 Aug 2021 19:00:01 +0200

BANK cannot be used on the same file where BANKREF is declared, fixed with 255 for now (we will split tiles and map data into 2 separate files in the future)

Diffstat:
Mgbdk-support/png2asset/png2asset.cpp3++-
1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/gbdk-support/png2asset/png2asset.cpp b/gbdk-support/png2asset/png2asset.cpp @@ -823,7 +823,8 @@ int main(int argc, char *argv[]) fprintf(file, "\t%s_map_attributes, //map attributes\n", data_name.c_str()); else fprintf(file, "\t%s, //map attributes\n", "0"); - fprintf(file, "\t(uint8_t)&__bank_%s, //tiles bank\n", data_name.c_str()); + //fprintf(file, "\tBANK(%s), //tiles bank\n", data_name.c_str()); + fprintf(file, "\t255, //tiles bank\n", data_name.c_str()); fprintf(file, "\t&%s_tiles_info, //tiles info\n", data_name.c_str()); fprintf(file, "};\n"); }

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