Using latest love-android branch (9a508a54700d)

This commit is contained in:
fysx
2015-08-13 11:12:17 +02:00
parent c91dbb6957
commit f3dd769e98
63 changed files with 738 additions and 556 deletions
@@ -29,8 +29,12 @@
#include "common/Data.h"
#include "Decoder.h"
// SDL_sound
// libmodplug
#ifdef LOVE_ANDROID
#include <modplug.h>
#else
#include <libmodplug/modplug.h>
#endif
namespace love
{
@@ -106,10 +106,12 @@ static int vorbisSeek(void *datasource /* ptr to the data that the vorbis files
vorbisData->dataRead += (int)actualOffset;
break;
case SEEK_END: // Seek from the end of the file
vorbisData->dataRead = vorbisData->dataSize+1;
if (offset < 0)
vorbisData->dataRead = vorbisData->dataSize + offset;
else
vorbisData->dataRead = vorbisData->dataSize;
break;
default:
throw love::Exception("Unknown seek command in vorbisSeek");
break;
};