Commit 147bdfc9 authored by anotherguest's avatar anotherguest

Set path to cfg files for Symbian version

Enable sound directly after init, not only when playing music.
parent 86cc9263
......@@ -34,7 +34,6 @@
#ifndef _OPENJAZZ_H
#define _OPENJAZZ_H
#ifndef EXTERN
#define EXTERN extern
#endif
......@@ -65,7 +64,15 @@
#define F192 196608
// Files
#ifdef __SYMBIAN32__
#ifdef UIQ3
#define CONFIG_FILE "c:\\shared\\openjazz\\openjazz.cfg""
#else
#define CONFIG_FILE "c:\\data\\openjazz\\openjazz.cfg"
#endif
#else
#define CONFIG_FILE "openjazz.cfg"
#endif
#define LOGO_FILE "openjazz.000"
#define LEVEL_FILE "openjazz.tmp"
......
......@@ -138,7 +138,8 @@ void openAudio () {
if (loadSounds(F_SOUNDS) != E_NONE) sounds = NULL;
// Start audio for sfx to work
SDL_PauseAudio(0);
return;
}
......@@ -225,7 +226,7 @@ void playMusic (const char * fileName) {
}
// Start the music playing
// Start the audio playing
SDL_PauseAudio(0);
#endif
......@@ -248,7 +249,7 @@ void stopMusic () {
musicFile = NULL;
}
SDL_PauseAudio(0);
#endif
return;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment