JMA Support.
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user