mirror of
https://github.com/ninjamuffin99/Funkin.git
synced 2024-11-27 09:13:18 +00:00
Merge branch 'master' of https://github.com/ninjamuffin99/Funkin-secret
This commit is contained in:
commit
6cd6f9b0f7
|
@ -24,7 +24,7 @@ import ui.Prompt;
|
|||
|
||||
using StringTools;
|
||||
|
||||
#if desktop
|
||||
#if discord_rpc
|
||||
import Discord.DiscordClient;
|
||||
#end
|
||||
#if newgrounds
|
||||
|
|
|
@ -83,6 +83,7 @@ class ModMenu extends ui.OptionsState.Page
|
|||
organizeByY();
|
||||
}
|
||||
|
||||
inline static var MOD_PATH = "./mods";
|
||||
private function refreshModList():Void
|
||||
{
|
||||
while (grpMods.members.length > 0)
|
||||
|
@ -94,15 +95,22 @@ class ModMenu extends ui.OptionsState.Page
|
|||
var modList = [];
|
||||
modFolders = [];
|
||||
|
||||
for (file in FileSystem.readDirectory('./mods'))
|
||||
trace("mods path:" + FileSystem.absolutePath(MOD_PATH));
|
||||
if (!FileSystem.exists(MOD_PATH))
|
||||
{
|
||||
if (FileSystem.isDirectory('./mods/' + file))
|
||||
FlxG.log.warn("missing mods folder, expected: " + FileSystem.absolutePath(MOD_PATH));
|
||||
return;
|
||||
}
|
||||
|
||||
for (file in FileSystem.readDirectory(MOD_PATH))
|
||||
{
|
||||
if (FileSystem.isDirectory(MOD_PATH + file))
|
||||
modFolders.push(file);
|
||||
}
|
||||
|
||||
enabledMods = [];
|
||||
|
||||
modList = Polymod.scan('./mods');
|
||||
modList = Polymod.scan(MOD_PATH);
|
||||
|
||||
trace(modList);
|
||||
|
||||
|
|
Loading…
Reference in a new issue