mirror of
https://github.com/Facepunch/Facepunch.Steamworks.git
synced 2025-01-12 22:58:01 +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 @@ namespace Facepunch.Steamworks
|
||||
/// </summary>
|
||||
public RemoteFileWriteStream OpenWrite()
|
||||
{
|
||||
if (_isUgc) throw new InvalidOperationException("Cannot write to a shared file.");
|
||||
|
||||
return new RemoteFileWriteStream( remoteStorage, this );
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user