J :
* 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:
@@ -75,7 +75,7 @@ else
|
||||
|
||||
|
||||
$(TARGET): Makefile.$(TARGET_ARCHITECTURE) $(OBJS) ../../JGE/lib/linux/libjge.a
|
||||
g++ -o $(TARGET) $(OBJS) $(LIBS) $(LIBDIR)
|
||||
$(CXX) -o $(TARGET) $(OBJS) $(LIBS) $(LIBDIR)
|
||||
|
||||
linux: $(TARGET)
|
||||
|
||||
@@ -100,7 +100,7 @@ Makefile.psp:
|
||||
|
||||
Makefile.linux:
|
||||
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 Makefile.$(TARGET_ARCHITECTURE)
|
||||
|
||||
@@ -9,7 +9,8 @@
|
||||
#include "../include/GameOptions.h"
|
||||
#include "../include/WResourceManager.h"
|
||||
#include <assert.h>
|
||||
|
||||
#ifdef WITH_FMOD
|
||||
#endif
|
||||
|
||||
//WResource
|
||||
WResource::~WResource(){
|
||||
@@ -312,20 +313,12 @@ JSample * WCachedSample::Actual(){
|
||||
return sample;
|
||||
}
|
||||
|
||||
|
||||
unsigned long WCachedSample::size(){
|
||||
if(!sample || !sample->mSample)
|
||||
return 0;
|
||||
|
||||
#if defined WIN32 || defined LINUX
|
||||
#if defined __LP64__
|
||||
return 0;
|
||||
#else
|
||||
return FSOUND_Sample_GetLength(sample->mSample);
|
||||
#endif
|
||||
#else
|
||||
return sample->mSample->fileSize;
|
||||
#endif
|
||||
}
|
||||
return sample->fileSize();
|
||||
}
|
||||
|
||||
bool WCachedSample::isGood(){
|
||||
if(!sample || !sample->mSample)
|
||||
|
||||
Reference in New Issue
Block a user