Esempio n. 1
0
        public static int GetAppInstallDir(AppId_t nAppID, out string pchDirectory, int cchNameMax)
        {
            InteropHelp.TestIfAvailableClient();
            IntPtr intPtr = Marshal.AllocHGlobal(cchNameMax);
            int    num    = NativeMethods.ISteamAppList_GetAppInstallDir(CSteamAPIContext.GetSteamAppList(), nAppID, intPtr, cchNameMax);

            pchDirectory = ((num != -1) ? InteropHelp.PtrToStringUTF8(intPtr) : null);
            Marshal.FreeHGlobal(intPtr);
            return(num);
        }
Esempio n. 2
0
        /// <summary>
        /// <para> returns -1 if no dir was found</para>
        /// </summary>
        public static int GetAppInstallDir(AppId_t nAppID, out string pchDirectory, int cchNameMax)
        {
            InteropHelp.TestIfAvailableClient();
            IntPtr pchDirectory2 = Marshal.AllocHGlobal(cchNameMax);
            int    ret           = NativeMethods.ISteamAppList_GetAppInstallDir(CSteamAPIContext.GetSteamAppList(), nAppID, pchDirectory2, cchNameMax);

            pchDirectory = ret != -1 ? InteropHelp.PtrToStringUTF8(pchDirectory2) : null;
            Marshal.FreeHGlobal(pchDirectory2);
            return(ret);
        }
Esempio n. 3
0
 public static uint GetNumInstalledApps()
 {
     InteropHelp.TestIfAvailableClient();
     return(NativeMethods.ISteamAppList_GetNumInstalledApps(CSteamAPIContext.GetSteamAppList()));
 }
Esempio n. 4
0
 public static int GetAppBuildId(AppId_t nAppID)
 {
     InteropHelp.TestIfAvailableClient();
     return(NativeMethods.ISteamAppList_GetAppBuildId(CSteamAPIContext.GetSteamAppList(), nAppID));
 }
Esempio n. 5
0
 public static uint GetInstalledApps(AppId_t[] pvecAppID, uint unMaxAppIDs)
 {
     InteropHelp.TestIfAvailableClient();
     return(NativeMethods.ISteamAppList_GetInstalledApps(CSteamAPIContext.GetSteamAppList(), pvecAppID, unMaxAppIDs));
 }