* Fix linux32 compilation.
* Wagic+JGE are now expected to compile on any unix that
  has an X and an OpenGL library. If fmod is correctly
  installed it will use it, else there won't be any sound.
This commit is contained in:
jean.chalard
2010-02-02 09:15:39 +00:00
parent 4f0a264146
commit 64260f5787
2 changed files with 7 additions and 14 deletions
+2 -2
View File
@@ -75,7 +75,7 @@ else
$(TARGET): Makefile.$(TARGET_ARCHITECTURE) $(OBJS) ../../JGE/lib/linux/libjge.a $(TARGET): Makefile.$(TARGET_ARCHITECTURE) $(OBJS) ../../JGE/lib/linux/libjge.a
g++ -o $(TARGET) $(OBJS) $(LIBS) $(LIBDIR) $(CXX) -o $(TARGET) $(OBJS) $(LIBS) $(LIBDIR)
linux: $(TARGET) linux: $(TARGET)
@@ -100,7 +100,7 @@ Makefile.psp:
Makefile.linux: Makefile.linux:
g++ -o /dev/null src/testfeatures.c $(LIBDIR) -lfmod-3.75 g++ -o /dev/null src/testfeatures.c $(LIBDIR) -lfmod-3.75
@if [ "0" == "$?" ]; then echo 'FMOD=-lfmod-3.75'; else echo 'FMOD='; fi > $@ @if [ "0" = "$$?" ]; then echo 'FMOD=-lfmod-3.75'; else echo 'FMOD='; fi > $@
-include $(DEPS) -include $(DEPS)
-include Makefile.$(TARGET_ARCHITECTURE) -include Makefile.$(TARGET_ARCHITECTURE)
+4 -11
View File
@@ -9,7 +9,8 @@
#include "../include/GameOptions.h" #include "../include/GameOptions.h"
#include "../include/WResourceManager.h" #include "../include/WResourceManager.h"
#include <assert.h> #include <assert.h>
#ifdef WITH_FMOD
#endif
//WResource //WResource
WResource::~WResource(){ WResource::~WResource(){
@@ -312,19 +313,11 @@ JSample * WCachedSample::Actual(){
return sample; return sample;
} }
unsigned long WCachedSample::size(){ unsigned long WCachedSample::size(){
if(!sample || !sample->mSample) if(!sample || !sample->mSample)
return 0; return 0;
return sample->fileSize();
#if defined WIN32 || defined LINUX
#if defined __LP64__
return 0;
#else
return FSOUND_Sample_GetLength(sample->mSample);
#endif
#else
return sample->mSample->fileSize;
#endif
} }
bool WCachedSample::isGood(){ bool WCachedSample::isGood(){