JMA Support.

This commit is contained in:
n-a-c-h
2004-11-21 00:10:55 +00:00
parent db782fab40
commit cc1de3a7a8
32 changed files with 3028 additions and 7 deletions

View File

@@ -28,6 +28,7 @@ Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
#define DIR_SLASH "\\"
#endif
#include "zip/zunzip.h"
#include "jma/zsnesjma.h"
#ifndef __GNUC__
#define strcasecmp stricmp
@@ -783,6 +784,16 @@ void loadROM()
lastROMFileName = ZOpenFileName;
if (strlen(ZOpenFileName) >= 5) //Char + ".jma"
{
char *ext = ZOpenFileName+strlen(ZOpenFileName)-4;
if (!strcasecmp(ext, ".jma"))
{
isCompressed = true;
load_jma_file(ZOpenFileName);
}
}
if (strlen(ZOpenFileName) >= 5) //Char + ".zip"
{
char *ext = ZOpenFileName+strlen(ZOpenFileName)-4;