diff --git a/source/backend/Mods.hx b/source/backend/Mods.hx index 7228531b970..bad077bb9a6 100644 --- a/source/backend/Mods.hx +++ b/source/backend/Mods.hx @@ -94,16 +94,9 @@ class Mods inline public static function directoriesWithFile(path:String, fileToFind:String, mods:Bool = true) { var foldersToCheck:Array = []; - if(FileSystem.exists(path + fileToFind)) + #if sys if(FileSystem.exists(path + fileToFind)) #end foldersToCheck.push(path + fileToFind); - if(Paths.currentLevel != null && Paths.currentLevel != path) - { - var pth:String = Paths.getFolderPath(fileToFind, Paths.currentLevel); - if(FileSystem.exists(pth)) - foldersToCheck.push(pth); - } - #if MODS_ALLOWED if(mods) { @@ -234,4 +227,4 @@ class Mods Mods.currentModDirectory = list[0]; #end } -} \ No newline at end of file +}