]> git.jsancho.org Git - lugaru.git/blobdiff - Source/MacCompatibility.cpp
First shot at an OpenAL renderer. Sound effects work, no music.
[lugaru.git] / Source / MacCompatibility.cpp
index dfedc9a4b6490a084a0cd9904e2318549d0cecbe..8e0cae91740f935f447df1d23ee72b51d4476d3e 100644 (file)
@@ -255,6 +255,9 @@ static int locateCorrectFile(char *buf, const char *mode)
 static char g_filename[4096];
 char* ConvertFileName( const char* orgfilename, const char *mode)
 {
+    if (orgfilename == g_filename) // recursion?
+        return g_filename;
+
        // translate filename into proper path name
        if (orgfilename[ 0] == ':')
                orgfilename++;