aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--.vscode/tasks.json2
-rw-r--r--src/.gitignore1
-rw-r--r--src/ppusim/sim.c1
-rw-r--r--test/bin/test_file_read.c2
4 files changed, 5 insertions, 1 deletions
diff --git a/.vscode/tasks.json b/.vscode/tasks.json
index 53a235e..8404cfa 100644
--- a/.vscode/tasks.json
+++ b/.vscode/tasks.json
@@ -54,7 +54,7 @@
"args": [ "" ],
},
"command": "make",
- "args": [ "compile_commands" ],
+ "args": [ "compile_commands.json" ],
"type": "shell"
},
{
diff --git a/src/.gitignore b/src/.gitignore
index d8325cf..504b995 100644
--- a/src/.gitignore
+++ b/src/.gitignore
@@ -4,3 +4,4 @@ main.bin
main
main.exe
static/
+*.bin
diff --git a/src/ppusim/sim.c b/src/ppusim/sim.c
index 1fceb82..a759039 100644
--- a/src/ppusim/sim.c
+++ b/src/ppusim/sim.c
@@ -32,6 +32,7 @@ void hh_ppu_load_tilemap() {
char* filename = "tiles.bin";
FILE* fp = fopen(filename,"rb");
if (!fp){
+ printf("File error!");
return;//error
}
diff --git a/test/bin/test_file_read.c b/test/bin/test_file_read.c
index b3357ce..391e2c6 100644
--- a/test/bin/test_file_read.c
+++ b/test/bin/test_file_read.c
@@ -16,6 +16,8 @@ void printData(uint8_t* in) {
}
void hh_ppu_load_tilemap() {
+
+
char* filename = "tiles.bin";
FILE* fp = fopen(filename,"rb");
if (!fp){