From 2d33461a24cbffab66bc40bf35208a4f58627263 Mon Sep 17 00:00:00 2001 From: Cameron Taylor Date: Thu, 23 Nov 2023 19:48:28 -0500 Subject: [PATCH] windows file slash fix for opening folders --- source/funkin/util/WindowUtil.hx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/source/funkin/util/WindowUtil.hx b/source/funkin/util/WindowUtil.hx index ec64b45d6..891bb39f8 100644 --- a/source/funkin/util/WindowUtil.hx +++ b/source/funkin/util/WindowUtil.hx @@ -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