Stop using the do-nothing Path class.
Instead use the newly imported PhysicsFS through a wrapper.
This commit is contained in:
parent
993311d151
commit
93634da6fa
13 changed files with 214 additions and 87 deletions
|
@ -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) :
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue