NormalizePath fix for non-windows

This commit is contained in:
James King 2017-08-16 12:03:17 +01:00
parent 0366c39690
commit 2e65cfe9bb

View File

@ -14,7 +14,11 @@ public class RemoteStorage : IDisposable
{ {
private static string NormalizePath( string path ) 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; internal Client client;