X-Git-Url: http://git.localhorst.tv/?a=blobdiff_plain;f=src%2Fapp%2FSDL.h;h=c18f7c2fad3f7ae0db0f38343f6da3cb3a23ff15;hb=79a34acdc1beff20213f03c326a4aa03c5d47c92;hp=ce116d5d576bad0339627aa7754cc17d3021546b;hpb=4a51a83bdff30d1e25a5867cfb19936adc0034b1;p=orbi.git diff --git a/src/app/SDL.h b/src/app/SDL.h index ce116d5..c18f7c2 100644 --- a/src/app/SDL.h +++ b/src/app/SDL.h @@ -1,6 +1,8 @@ #ifndef ORBI_SDL_H_ #define ORBI_SDL_H_ +#include +#include #include @@ -15,6 +17,11 @@ public: SDL(const SDL &) = delete; SDL &operator =(const SDL &) = delete; + std::string GetBasePath() const { + std::unique_ptr base{SDL_GetBasePath(), &SDL_free}; + return std::string(base.get()); + } + }; }