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 @@ ...@@ -34,7 +34,6 @@
#ifndef _OPENJAZZ_H #ifndef _OPENJAZZ_H
#define _OPENJAZZ_H #define _OPENJAZZ_H
#ifndef EXTERN #ifndef EXTERN
#define EXTERN extern #define EXTERN extern
#endif #endif
...@@ -65,7 +64,15 @@ ...@@ -65,7 +64,15 @@
#define F192 196608 #define F192 196608
// Files // 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" #define CONFIG_FILE "openjazz.cfg"
#endif
#define LOGO_FILE "openjazz.000" #define LOGO_FILE "openjazz.000"
#define LEVEL_FILE "openjazz.tmp" #define LEVEL_FILE "openjazz.tmp"
......
...@@ -138,7 +138,8 @@ void openAudio () { ...@@ -138,7 +138,8 @@ void openAudio () {
if (loadSounds(F_SOUNDS) != E_NONE) sounds = NULL; if (loadSounds(F_SOUNDS) != E_NONE) sounds = NULL;
// Start audio for sfx to work
SDL_PauseAudio(0);
return; return;
} }
...@@ -225,7 +226,7 @@ void playMusic (const char * fileName) { ...@@ -225,7 +226,7 @@ void playMusic (const char * fileName) {
} }
// Start the music playing // Start the audio playing
SDL_PauseAudio(0); SDL_PauseAudio(0);
#endif #endif
...@@ -248,7 +249,7 @@ void stopMusic () { ...@@ -248,7 +249,7 @@ void stopMusic () {
musicFile = NULL; musicFile = NULL;
} }
SDL_PauseAudio(0);
#endif #endif
return; 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