/********************************************************************* common.h Generic functions used in different emulators. There's not much for now, but it could grow in the future... ;-) *********************************************************************/ struct RomModule { const char *name; /* name of the file to load */ int offset; /* offset to load it to */ int size; /* length of the file */ }; int readroms(unsigned char *dest,const struct RomModule *romp,const char *basename);