1
0
Fork 0
mirror of https://github.com/ninjamuffin99/Funkin.git synced 2024-11-30 10:44:37 +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; import flixel.util.FlxSignal.FlxTypedSignal;
using StringTools;
/** /**
* Utilities for operating on the current window, such as changing the title. * Utilities for operating on the current window, such as changing the title.
*/ */
@ -40,7 +42,7 @@ class WindowUtil
{ {
#if CAN_OPEN_LINKS #if CAN_OPEN_LINKS
#if windows #if windows
Sys.command('explorer', [targetPath]); Sys.command('explorer', [targetPath.replace("/", "\\")]);
#elseif mac #elseif mac
Sys.command('open', [targetPath]); Sys.command('open', [targetPath]);
#elseif linux #elseif linux