Browse Source

Fixed KeyMap

tags/0.3.0
Jake Wakeling 7 months ago
parent
commit
a4a8a21870
1 changed files with 1 additions and 2 deletions
  1. 1
    2
      src/main.c

+ 1
- 2
src/main.c View File

@@ -89,7 +89,7 @@ uint8_t keyMap(SDL_Keycode key) {
case SDLK_c: return 0xb;
case SDLK_v: return 0xf;

case 27: exit(0);;
case SDLK_ESCAPE: exit(0);;
default: return -1;
}
}
@@ -194,7 +194,6 @@ void InitSDL(void) {

// Load Program Binary
void LoadProgram(const char *filename) {
filename = "rom.c8";
// Open File
FILE *programFile = fopen(filename, "rb");
if (programFile == NULL) {

Loading…
Cancel
Save