mirror of
https://github.com/isledecomp/isle-portable.git
synced 2026-01-14 03:31:14 +00:00
22 lines
527 B
C++
22 lines
527 B
C++
#include "extensions/extensions.h"
|
|
|
|
#include "extensions/textureloader.h"
|
|
|
|
#include <SDL3/SDL_log.h>
|
|
|
|
void Extensions::Enable(const char* p_key, std::map<std::string, std::string> p_options)
|
|
{
|
|
for (const char* key : availableExtensions) {
|
|
if (!SDL_strcasecmp(p_key, key)) {
|
|
if (!SDL_strcasecmp(p_key, "extensions:texture loader")) {
|
|
TextureLoader::options = std::move(p_options);
|
|
TextureLoader::enabled = true;
|
|
TextureLoader::Initialize();
|
|
}
|
|
|
|
SDL_Log("Enabled extension: %s", p_key);
|
|
break;
|
|
}
|
|
}
|
|
}
|