From 2e65cfe9bb4192fc64c17d81df01b77bda80ae1d 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 c33afc5..7110d31 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;