#53444 - SolidSnake - Thu Sep 08, 2005 2:10 pm
Is this possible??
MrAdults wrote: |
The first issue you'd run into using a loader for both would be the fact that they both (or at least Hexen) expect their asset files to be stored at the beginning of cart rom. |
Code: |
/* is_gbfs_file() **************
Returns FALSE if data is a null pointer. Returns TRUE if data appears to point at a GBFS file. Returns FALSE otherwise. */ void is_gbfs_file(const GBFS_FILE *data) { const u32 *d = (const u32 *)data; return d && (*d == 0x456e6950); } /* find_first_gbfs_file_containing() ********** Finds the first GBFS file in GBA ROM space that contains an object of the given name. */ const GBFS_FILE *find_first_gbfs_file_containing(const char *name) { const GBFS_FILE *data; for(data = find_first_gbfs_file(find_first_gbfs_file); is_gbfs_file(data) && !gbfs_get_obj(data, name, NULL); data = skip_gbfs_file(data)) { ; } if(!is_gbfs_file(data)) return NULL; else return data; } |