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