From 151c45825ddef90f37516c260fb566c8b388022e Mon Sep 17 00:00:00 2001 From: James King Date: Wed, 16 Aug 2017 12:03:17 +0100 Subject: [PATCH] NormalizePath fix for non-windows --- Facepunch.Steamworks/Client/RemoteStorage.cs | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/Facepunch.Steamworks/Client/RemoteStorage.cs b/Facepunch.Steamworks/Client/RemoteStorage.cs index 8b11d7c..b136813 100644 --- a/Facepunch.Steamworks/Client/RemoteStorage.cs +++ b/Facepunch.Steamworks/Client/RemoteStorage.cs @@ -14,7 +14,11 @@ namespace Facepunch.Steamworks { private static string NormalizePath( string path ) { - return new FileInfo( $"x:/{path}" ).FullName.Substring( 3 ); + // TODO: DUMB HACK ALERT + + return SteamNative.Platform.IsWindows + ? new FileInfo( $"x:/{path}" ).FullName.Substring( 3 ) + : new FileInfo( $"/x/{path}" ).FullName.Substring( 3 ); } internal Client client;