You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Being able to check if any specific file exists within your mod would be super handy, or even in other mods. Namely for the purpose of creating a default behavior if a file for supporting something specific hasn't been made yet. Right now the best we have is preloading an anm2 and it returning if it was successful or not (you can't even check sprite:IsLoaded(), its true even if loading wasn't successful).
The text was updated successfully, but these errors were encountered:
Not sure how safe this would be, I don't know whether checking the presence of a file can lead to potential security issues ?
IMO the paths given by modders should, ideally, resolve relative to the root of the game's folder
BenevolusGoat
changed the title
Check if any particular file exists
Have Sprite:Load and Sprite:ReplaceSpritesheet return if they were successful in loading the provided string
Jan 7, 2025
Being able to check if any specific file exists within your mod would be super handy, or even in other mods. Namely for the purpose of creating a default behavior if a file for supporting something specific hasn't been made yet. Right now the best we have is preloading an anm2 and it returning if it was successful or not (you can't even check sprite:IsLoaded(), its true even if loading wasn't successful).
The text was updated successfully, but these errors were encountered: