Skip to content

Commit

Permalink
Added mz800em magic tag support.
Browse files Browse the repository at this point in the history
  • Loading branch information
jfjlaros committed Feb 24, 2023
1 parent c44dc67 commit baf401c
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/mzf2wav.c
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
*/
#include <stdio.h>
#include <stdlib.h> // Just to remove a warning (malloc).
#include <string.h>
#include "methods.h"
#include "args.h"

Expand Down Expand Up @@ -44,6 +45,10 @@ byte *readfile(FILE *IN) {
image = temp;
i++;
}//while
if (!memcmp(image, "MZF1", 4)) {
memmove(image, image + 4, i);
i -= 4;
}
t = assert(image, i);
if (t) {
printf("The MZF file size does not match the image size.\n");
Expand Down

0 comments on commit baf401c

Please sign in to comment.