memory,c. zip.c: Add checks for file formats (GBA ROM and zip archive) instead of extension.