mirror of
https://github.com/ninjamuffin99/Funkin.git
synced 2024-09-12 05:07:06 +00:00
windows file slash fix for opening folders
This commit is contained in:
parent
645b9b579a
commit
2d33461a24
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue