From b381bf63a78a1c2843a75246043fadff3f1fda0a Mon Sep 17 00:00:00 2001 From: ZeqMacaw Date: Wed, 29 Jan 2020 08:45:28 -0500 Subject: [PATCH] FIXED: When publishing new item using content folder for Garry's Mod, shows "ERROR: Illegal characters in path.". --- Crowbar/Core/SteamAppInfos/GarrysModSteamAppInfo.vb | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/Crowbar/Core/SteamAppInfos/GarrysModSteamAppInfo.vb b/Crowbar/Core/SteamAppInfos/GarrysModSteamAppInfo.vb index 44261a2..61e6485 100644 --- a/Crowbar/Core/SteamAppInfos/GarrysModSteamAppInfo.vb +++ b/Crowbar/Core/SteamAppInfos/GarrysModSteamAppInfo.vb @@ -89,7 +89,11 @@ Public Class GarrysModSteamAppInfo Me.theBackgroundWorker.ReportProgress(0, "Creating GMA file." + vbCrLf) 'NOTE: File name is all lowercase in case Garry's Mod needs that on Linux. - gmaPathFileName = Path.Combine(Me.theTempCrowbarPath, item.ID + "_via_crowbar.gma") + If item.IsDraft Then + gmaPathFileName = Path.Combine(Me.theTempCrowbarPath, "new_item_via_crowbar.gma") + Else + gmaPathFileName = Path.Combine(Me.theTempCrowbarPath, item.ID + "_via_crowbar.gma") + End If 'TODO: Create GMA file without calling gmad.exe. Dim appInstallPath As String = ""