diff options
| author | Louis Burda <quent.burda@gmail.com> | 2023-12-25 03:08:10 +0100 |
|---|---|---|
| committer | Louis Burda <quent.burda@gmail.com> | 2023-12-25 03:08:10 +0100 |
| commit | ae4a7b241a033627ed136b2ef66922034cfbeae1 (patch) | |
| tree | e8f045d51a36c2f9c24b63d962bcf84baebdc3c9 /asm.c | |
| parent | f2ada47e6be185cc31c475c996c4ccf6735f7bb0 (diff) | |
| download | tis100-ae4a7b241a033627ed136b2ef66922034cfbeae1.tar.gz tis100-ae4a7b241a033627ed136b2ef66922034cfbeae1.zip | |
Add more fixes for game compatibility
Diffstat (limited to 'asm.c')
| -rw-r--r-- | asm.c | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -339,6 +339,8 @@ tis_load_asm(struct tis *tis, const char *filepath) size_t len; char c; + tis->asm_filepath = strdup(filepath); + tokenizer.filepath = filepath; tokenizer.file = fopen(filepath, "r"); if (!tokenizer.file) die("load: fopen '%s':", filepath); @@ -544,10 +546,9 @@ tis_load(struct tis *tis, const char **argv) /* after tis_load_asm.. */ arg++; } else { - if (tis->asm_init) + if (tis->asm_filepath) die("multiple asm files"); tis_load_asm(tis, *arg); - tis->asm_init = true; } } |
