aboutsummaryrefslogtreecommitdiff
path: root/test/bin/test_file_read.c
diff options
context:
space:
mode:
Diffstat (limited to 'test/bin/test_file_read.c')
-rw-r--r--test/bin/test_file_read.c6
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);
}