Exemplo n.º 1
0
        public static ErrorCode GetSlotInfo(int slotNumber, out SavedGameSlotInfo slotInfo)
        {
            SavedGameSlotInfoInternal slotInfo2 = default(SavedGameSlotInfoInternal);
            ErrorCode errorCode = PrxSavedGameGetSlotInfo(slotNumber, out slotInfo2);

            if (errorCode == ErrorCode.SG_OK)
            {
                slotInfo.status       = slotInfo2.status;
                slotInfo.modifiedTime = slotInfo2.modifiedTime;
                slotInfo.title        = slotInfo2.title;
                slotInfo.subTitle     = slotInfo2.subTitle;
                slotInfo.detail       = slotInfo2.detail;
                slotInfo.iconPath     = slotInfo2.iconPath;
            }
            else
            {
                slotInfo.status       = SlotStatus.EMPTY;
                slotInfo.modifiedTime = DateTime.MinValue;
                slotInfo.title        = "";
                slotInfo.subTitle     = "";
                slotInfo.detail       = "";
                slotInfo.iconPath     = "";
                if (errorCode == ErrorCode.SG_ERR_SLOT_NOT_FOUND)
                {
                    errorCode = ErrorCode.SG_OK;
                }
            }
            slotInfo.slotNumber = slotNumber;
            return(errorCode);
        }
Exemplo n.º 2
0
 private static extern ErrorCode PrxSavedGameGetSlotInfo(int slotNumber, out SavedGameSlotInfoInternal slotInfo);