// SteamAPICall_t public CallbackHandle FileWriteAsync(string pchFile /*const char **/, IntPtr pvData /*const void **/, uint cubData /*uint32*/, Action <RemoteStorageFileWriteAsyncComplete_t, bool> CallbackFunction = null /*Action<RemoteStorageFileWriteAsyncComplete_t, bool>*/) { SteamAPICall_t callback = 0; callback = platform.ISteamRemoteStorage_FileWriteAsync(pchFile, (IntPtr)pvData, cubData); if (CallbackFunction == null) { return(null); } return(RemoteStorageFileWriteAsyncComplete_t.CallResult(steamworks, callback, CallbackFunction)); }
public void HandleFileWriteAsyncComplete(RemoteStorageFileWriteAsyncComplete_t param, bool bIOFailure) { result = param.m_eResult; //If the request result was okay fetch the binary data if (result == EResult.k_EResultOK && linkedLibrary != null) { linkedLibrary.activeFile = this; WriteToLibrary(linkedLibrary); } if (Complete != null) { Complete.Invoke(this); } }
private void OnDataUploaded(RemoteStorageFileWriteAsyncComplete_t result, bool failed) { var steamStatus = result.m_eResult; if (!failed && steamStatus == EResult.k_EResultOK && SteamRemoteStorage. UpdatePublishedFileFile(updateHandle, REMOTE_MOD_DATA)) { PUtil.LogDebug("PUBLISH DATA: " + REMOTE_MOD_DATA); StartPreviewUpload(); } else { PUtil.LogWarning("Unable to update mod data: " + steamStatus); OnModifyFailed?.Invoke(); } }
private void OnPreviewUploaded(RemoteStorageFileWriteAsyncComplete_t result, bool failed) { var steamStatus = result.m_eResult; if (!failed && steamStatus == EResult.k_EResultOK && SteamRemoteStorage. UpdatePublishedFilePreviewFile(updateHandle, REMOTE_MOD_PREVIEW)) { PUtil.LogDebug("PUBLISH PREVIEW: " + REMOTE_MOD_PREVIEW); FinishModify(); } else { PUtil.LogWarning("Unable to update preview image: " + steamStatus); OnModifyFailed?.Invoke(); } }
private void OnFileWriteComplete(RemoteStorageFileWriteAsyncComplete_t resultData, bool result) { // Not implemented }
void OnRemoteStorageFileWriteAsyncComplete(RemoteStorageFileWriteAsyncComplete_t pCallback, bool bIOFailure) { Debug.Log("[" + RemoteStorageFileWriteAsyncComplete_t.k_iCallback + " - RemoteStorageFileWriteAsyncComplete] - " + pCallback.m_eResult); }