Created
October 16, 2023 21:43
-
-
Save dextercd/248f8703009bfced2d8f11e6fdd79125 to your computer and use it in GitHub Desktop.
Find out what mod overrode a vanilla Noita file
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function find_mod_data_override(path) | |
local mod_ids = ModGetActiveModIDs() | |
for idx=#mod_ids,1,-1 do | |
local mod_id = mod_ids[idx] | |
if ModDoesFileExist("mods/" .. mod_id .. "/" ..path) then | |
return mod_id | |
end | |
end | |
return nil | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment