From a61483d87d92e18deb1e791094d79ae6d2efb313 Mon Sep 17 00:00:00 2001
From: zeromus <zeromus@users.sf.net>
Date: Mon, 20 Jul 2009 01:06:06 +0000
Subject: [PATCH] fix linux compile bug

---
 desmume/src/NDSSystem.cpp | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/desmume/src/NDSSystem.cpp b/desmume/src/NDSSystem.cpp
index c6dc731fe..877fb15c3 100644
--- a/desmume/src/NDSSystem.cpp
+++ b/desmume/src/NDSSystem.cpp
@@ -882,7 +882,7 @@ int NDS_LoadROM(const char *filename, const char *logicalFilename)
 	if(!strcasecmp(path.extension().c_str(), "zip"))		type = ROM_NDS;
 	else if ( !strcasecmp(path.extension().c_str(), "nds"))
 		type = ROM_NDS;
-	else if ( path.isdsgba())
+	else if ( path.isdsgba(path.path))
 		type = ROM_DSGBA;
 	else
 		type = ROM_NDS;