diff options
author | UnavailableDev <ggwildplay@gmail.com> | 2023-03-11 09:07:35 +0100 |
---|---|---|
committer | UnavailableDev <ggwildplay@gmail.com> | 2023-03-11 09:07:35 +0100 |
commit | 33fa63ee205892205d9cd229c363f7c28d99e636 (patch) | |
tree | c7c1323e36182840d5021f9ed38727e4dfaca208 /test/bin/test_file_read.c | |
parent | adde3c22fa09092d238b165b2a65e5bfa48f00ea (diff) | |
parent | 877ac831461f35d00e0e0ab7d6afbe93768fc7c6 (diff) |
merge
Diffstat (limited to 'test/bin/test_file_read.c')
-rw-r--r-- | test/bin/test_file_read.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/test/bin/test_file_read.c b/test/bin/test_file_read.c index 503601b..391e2c6 100644 --- a/test/bin/test_file_read.c +++ b/test/bin/test_file_read.c @@ -17,6 +17,7 @@ void printData(uint8_t* in) { void hh_ppu_load_tilemap() { + char* filename = "tiles.bin"; FILE* fp = fopen(filename,"rb"); if (!fp){ @@ -29,10 +30,7 @@ void hh_ppu_load_tilemap() { // printf("%i",_size); for (int i = 0; i < _size; i++) { uint8_t data[HH_PPU_VRAM_TMM_SPRITE_SIZE]; - // for (int i = 0; i < 255; i++) { - // buffer[i] = 0; //TODO: vullen - fread(data,HH_PPU_VRAM_TMM_SPRITE_SIZE,1,fp); - // } + fread(data,HH_PPU_VRAM_TMM_SPRITE_SIZE,1,fp); printData(data); } |