From 5a3ebfdb99c6f3f03d0ae3de2c5691d5c362f4b7 Mon Sep 17 00:00:00 2001 From: JohnCorby Date: Sun, 12 Nov 2023 17:23:17 -0800 Subject: [PATCH] use path.combine --- QSB/QSBCore.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/QSB/QSBCore.cs b/QSB/QSBCore.cs index ad708b07..9cb7e43f 100644 --- a/QSB/QSBCore.cs +++ b/QSB/QSBCore.cs @@ -289,7 +289,7 @@ public class QSBCore : ModBehaviour { var timer = new Stopwatch(); timer.Start(); - var ret = Helper.Assets.LoadBundle($"AssetBundles/{name}"); + var ret = Helper.Assets.LoadBundle(Path.Combine("AssetBundles", name)); timer.Stop(); DebugLog.ToConsole($"Bundle {name} loaded in {timer.ElapsedMilliseconds} ms!", MessageType.Success); return ret; @@ -300,7 +300,7 @@ public class QSBCore : ModBehaviour DebugLog.DebugWrite($"Loading {bundleName}...", MessageType.Info); var timer = new Stopwatch(); timer.Start(); - var path = Path.Combine(ModHelper.Manifest.ModFolderPath, $"AssetBundles/{bundleName}"); + var path = Path.Combine(ModHelper.Manifest.ModFolderPath, "AssetBundles", name); var request = AssetBundle.LoadFromFileAsync(path); request.completed += _ => {