#ifndef ORBI_SDL_H_
#define ORBI_SDL_H_
+#include <memory>
+#include <string>
#include <SDL.h>
SDL(const SDL &) = delete;
SDL &operator =(const SDL &) = delete;
+ std::string GetBasePath() const {
+ std::unique_ptr<char, decltype(&SDL_free)> base{SDL_GetBasePath(), &SDL_free};
+ return std::string(base.get());
+ }
+
};
}