Lua Code:
ReshadeMap = {}
ReshadeMap.appName = "ReshadeMap"
function ReshadeMap.OnAddOnLoaded()
local mapTexturesOrig = {
[1] = "/art/maps/vvardenfell/balmora_base_0.dds",
[2] = "/art/maps/vvardenfell/balmora_base_1.dds",
[3] = "/art/maps/vvardenfell/balmora_base_2.dds",
[4] = "/art/maps/vvardenfell/balmora_base_3.dds",
[5] = "/art/maps/vvardenfell/balmora_base_4.dds",
}
for index, textureNameOrig in ipairs(mapTexturesOrig) do
RedirectTexture(textureNameOrig, ReshadeMap.appName.. "/textures".. textureNameOrig)
end
end
EVENT_MANAGER:RegisterForEvent(ReshadeMap.appName, EVENT_ADD_ON_LOADED, ReshadeMap.OnAddOnLoaded)
The addon loads the code from top to bottom as soon as the lua file is loaded so make sure it will be at event_add_on_liaded first or the maps might not be ingane loaded properly if you try to do it before.
You can even try to load all at event_player_activated if the game tries to replace the Textures again after a zone change.