Stop using the do-nothing Path class.

Instead use the newly imported PhysicsFS through a wrapper.
This commit is contained in:
King_DuckZ 2014-02-13 00:01:29 +01:00
parent 993311d151
commit 93634da6fa
13 changed files with 214 additions and 87 deletions

View file

@ -1,11 +1,22 @@
#include "texture.hpp"
#include "sdlerror.hpp"
#include "sdlmain.hpp"
#include "physicsfswrapper.hpp"
#include <SDL2/SDL.h>
#include <stdexcept>
#include <cassert>
#include <ciso646>
namespace cloonel {
namespace {
///---------------------------------------------------------------------
///---------------------------------------------------------------------
SDL_Surface* LoadNewSurface (const std::string& parPath) {
assert(false);
return nullptr;
}
} //unnamed namespace
///------------------------------------------------------------------------
///------------------------------------------------------------------------
Texture::Texture (const std::string& parPath, SDLMain* parMain, bool parLoadNow) :