mirror of
https://github.com/Facepunch/Facepunch.Steamworks.git
synced 2024-12-25 14:15:47 +03:00
Added an exception when attempting to write to a shared file
This commit is contained in:
parent
ea4c6d72b5
commit
d129f3757a
@ -109,6 +109,8 @@ internal RemoteFile( RemoteStorage r, string name, ulong ownerId, int sizeInByte
|
||||
/// </summary>
|
||||
public RemoteFileWriteStream OpenWrite()
|
||||
{
|
||||
if (_isUgc) throw new InvalidOperationException("Cannot write to a shared file.");
|
||||
|
||||
return new RemoteFileWriteStream( remoteStorage, this );
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user