Add std::streambuf wrapper around SDL_RWops for boost

Also add SDL_RWops version of the readFile utility function.
This commit is contained in:
Jonas Kulla 2014-12-24 05:30:43 +01:00
parent 5974d05380
commit 35077793a0
3 changed files with 119 additions and 14 deletions

View file

@ -25,6 +25,7 @@
#include "eventthread.h"
#include "filesystem.h"
#include "util.h"
#include "sdl-util.h"
#include "debugwriter.h"
#include "graphics.h"
#include "audio.h"
@ -339,7 +340,7 @@ static void runCustomScript(const std::string &filename)
{
std::string scriptData;
if (!readFile(filename.c_str(), scriptData))
if (!readFileSDL(filename.c_str(), scriptData))
{
showMsg(std::string("Unable to open '") + filename + "'");
return;