1
0
Fork 0
mirror of https://github.com/ninjamuffin99/Funkin.git synced 2024-11-27 09:13:18 +00:00

windows file slash fix for opening folders

This commit is contained in:
Cameron Taylor 2023-11-23 19:48:28 -05:00
parent 645b9b579a
commit 2d33461a24

View file

@ -2,6 +2,8 @@ package funkin.util;
import flixel.util.FlxSignal.FlxTypedSignal;
using StringTools;
/**
* Utilities for operating on the current window, such as changing the title.
*/
@ -40,7 +42,7 @@ class WindowUtil
{
#if CAN_OPEN_LINKS
#if windows
Sys.command('explorer', [targetPath]);
Sys.command('explorer', [targetPath.replace("/", "\\")]);
#elseif mac
Sys.command('open', [targetPath]);
#elseif linux