mirror of
https://github.com/isledecomp/isle-portable.git
synced 2026-01-13 03:01:16 +00:00
* Add extensions, `TextureLoader` * Fix wording * Add to default ini * Add folder to flatpak * Use different enable strategy
25 lines
531 B
C++
25 lines
531 B
C++
#pragma once
|
|
|
|
#include "extensions/extensions.h"
|
|
#include "legotextureinfo.h"
|
|
|
|
namespace Extensions
|
|
{
|
|
class TextureLoader {
|
|
public:
|
|
static bool PatchTexture(LegoTextureInfo* p_textureInfo);
|
|
static bool enabled;
|
|
|
|
private:
|
|
static constexpr const char* texturePath = "/textures/";
|
|
|
|
static SDL_Surface* FindTexture(const char* p_name);
|
|
};
|
|
|
|
#ifdef EXTENSIONS
|
|
constexpr auto PatchTexture = &TextureLoader::PatchTexture;
|
|
#else
|
|
constexpr decltype(&TextureLoader::PatchTexture) PatchTexture = nullptr;
|
|
#endif
|
|
}; // namespace Extensions
|