コード例 #1
0
        // SteamAPICall_t
        public CallbackHandle GetFileDetails(string pszFileName /*const char **/, Action <FileDetailsResult_t, bool> CallbackFunction = null /*Action<FileDetailsResult_t, bool>*/)
        {
            SteamAPICall_t callback = 0;

            callback = platform.ISteamApps_GetFileDetails(pszFileName);

            if (CallbackFunction == null)
            {
                return(null);
            }

            return(FileDetailsResult_t.CallResult(steamworks, callback, CallbackFunction));
        }
コード例 #2
0
 void OnFileDetailsResult(FileDetailsResult_t pCallback, bool bIOFailure)
 {
     Debug.Log("[" + FileDetailsResult_t.k_iCallback + " - FileDetailsResult] - " + pCallback.m_eResult + " -- " + pCallback.m_ulFileSize + " -- " + pCallback.m_FileSHA + " -- " + pCallback.m_unFlags);
 }