 			}
 		}
 
-		public function requestStats():Boolean {
-			if(!callWrapper(AIRSteam_RequestStats)) return false;
-			return readBoolResponse();
-		}
-
 		public function runCallbacks():Boolean {
-			if(!callWrapper(AIRSteam_RunCallbacks)) return false;
+			if(!callWrapper(AIRSteam_RunCallbacks, [])) return false;
 			return true;
 		}
 
 		public function getUserID():String {
-			if(!callWrapper(AIRSteam_GetUserID)) return "";
+			if(!callWrapper(AIRSteam_GetUserID, [])) return "";
 			return readStringResponse();
 		}
 
+		public function getAppID():uint {
+			if(!callWrapper(AIRSteam_GetAppID, [])) return 0;
+			return readIntResponse();
+		}
+
 		public function getPersonaName():String {
-			if(!callWrapper(AIRSteam_GetPersonaName)) return "";
+			if(!callWrapper(AIRSteam_GetPersonaName, [])) return "";
 			return readStringResponse();
 		}
 

package com.amanitadesign.steam {
	import flash.desktop.NativeProcess;
	import flash.desktop.NativeProcessStartupInfo;
	import flash.events.Event;
	import flash.events.EventDispatcher;
	import flash.events.IEventDispatcher;

			return true;
		}

		/* stats/achievements */
		public function requestStats():Boolean {
			if(!callWrapper(AIRSteam_RequestStats, [])) return false;
			return readBoolResponse();
		}

		public function setAchievement(name:String):Boolean {
			if(!callWrapper(AIRSteam_SetAchievement, [name])) return false;
			return readBoolResponse();
		}

		public function clearAchievement(name:String):Boolean {
			if(!callWrapper(AIRSteam_ClearAchievement, [name])) return false;
			return readBoolResponse();
		}

		public function isAchievement(name:String):Boolean {
			if(!callWrapper(AIRSteam_IsAchievement, [name])) return false;
			return readBoolResponse();
		}

		public function getStatInt(name:String):int {
			if(!callWrapper(AIRSteam_GetStatInt, [name])) return 0;
			return readIntResponse();
		}

		public function getStatFloat(name:String):Number {
			if(!callWrapper(AIRSteam_GetStatFloat, [name])) return 0.0;
			return readFloatResponse();
		}

		public function setStatInt(name:String, value:int):Boolean {
			if(!callWrapper(AIRSteam_SetStatInt, [name, value])) return false;
			return readBoolResponse();
		}

		public function setStatFloat(name:String, value:Number):Boolean {
			if(!callWrapper(AIRSteam_SetStatFloat, [name, value])) return false;
			return readBoolResponse();
		}

		public function storeStats():Boolean {
			if(!callWrapper(AIRSteam_StoreStats, [])) return false;
			return readBoolResponse();
		}

		public function resetAllStats(achievementsToo:Boolean):Boolean {
			if(!callWrapper(AIRSteam_ResetAllStats, [achievementsToo])) return false;
			return readBoolResponse();
		}

		/* cloud */
		public function getFileCount():int {
			if(!callWrapper(AIRSteam_GetFileCount, [])) return 0;
			return readIntResponse();
		}

		public function getFileSize(name:String):int {
			if(!callWrapper(AIRSteam_GetFileSize, [name])) return 0;
			return readIntResponse();
		}

		public function fileExists(name:String):Boolean {
			if(!callWrapper(AIRSteam_FileExists, [name])) return false;
			return readBoolResponse();
		}

		public function fileWrite(name:String, data:ByteArray):Boolean {
			if(!callWrapper(AIRSteam_FileWrite, [name, data])) return false;
			return readBoolResponse();
		}

		public function fileRead(name:String, data:ByteArray):Boolean {
			if(!callWrapper(AIRSteam_FileRead, [name])) return false;

			var success:Boolean = readBoolResponse();
			if(success) {
				var response:ByteArray = readResponse() as ByteArray;
				data.writeBytes(response);
				data.position = 0;
			}

			return true;
		}

		public function fileDelete(name:String):Boolean {
			if(!callWrapper(AIRSteam_FileDelete, [name])) return false;
			return readBoolResponse();
		}

		public function fileShare(name:String):Boolean {
			if(!callWrapper(AIRSteam_FileShare, [name])) return false;
			return readBoolResponse();
		}

		public function fileShareResult():String {
			if(!callWrapper(AIRSteam_FileShareResult, [])) return "";
			return readStringResponse();
		}

		public function isCloudEnabledForApp():Boolean {
			if(!callWrapper(AIRSteam_IsCloudEnabledForApp, [])) return false;
			return readBoolResponse();
		}

