From 818a3ef482b96c0a963bb515291944346586f106 Mon Sep 17 00:00:00 2001 From: Michael Pavone Date: Fri, 9 Dec 2016 09:48:48 -0800 Subject: WIP split of ROM loading/argument parsing from Genesis emulation code. Compiles and doesn't crash, but nothing works. Still a few too many globals as well. --- util.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'util.h') diff --git a/util.h b/util.h index 1cfaeda..7029d16 100644 --- a/util.h +++ b/util.h @@ -21,6 +21,8 @@ typedef struct { char * alloc_concat(char const * first, char const * second); //Allocates a new string containing the concatenation of the strings pointed to by parts char * alloc_concat_m(int num_parts, char const ** parts); +//Byteswaps a ROM image in memory +void byteswap_rom(int filesize, uint16_t *cart); //Returns the size of a file using fseek and ftell long file_size(FILE * f); //Strips whitespace and non-printable characters from the beginning and end of a string -- cgit v1.2.3