Mercurial > repos > blastem
diff util.h @ 1103:22e87b739ad6
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.
author | Michael Pavone <pavone@retrodev.com> |
---|---|
date | Fri, 09 Dec 2016 09:48:48 -0800 |
parents | 51885857c019 |
children | 4490c9c12272 |
line wrap: on
line diff
--- a/util.h Mon Nov 28 22:45:46 2016 -0800 +++ b/util.h Fri Dec 09 09:48:48 2016 -0800 @@ -21,6 +21,8 @@ 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