Skip to content

Instantly share code, notes, and snippets.

@dextercd
Created October 16, 2023 21:43
Show Gist options
  • Save dextercd/248f8703009bfced2d8f11e6fdd79125 to your computer and use it in GitHub Desktop.
Save dextercd/248f8703009bfced2d8f11e6fdd79125 to your computer and use it in GitHub Desktop.
Find out what mod overrode a vanilla Noita file
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