diff --git a/src/OSDHistory.c b/src/OSDHistory.c index 956eed4c8..86206fd9d 100644 --- a/src/OSDHistory.c +++ b/src/OSDHistory.c @@ -16,6 +16,8 @@ #include #include #include +#include +#include #include "include/util.h" #include "include/OSDHistory.h" @@ -124,7 +126,7 @@ static u16 GetTimestamp(void) int AddHistoryRecord(const char *name) { struct HistoryEntry HistoryEntries[MAX_HISTORY_ENTRIES], *NewEntry, OldHistoryEntry; - int i, value, LeastUsedRecord, LeastUsedRecordLaunchCount, LeastUsedRecordTimestamp, NewLaunchCount, result; + int i, value, LeastUsedRecord, LeastUsedRecordLaunchCount, LeastUsedRecordTimestamp, NewLaunchCount, result, mcType; u8 BlankSlotList[MAX_HISTORY_ENTRIES]; int NumBlankSlots, NumSlotsUsed, IsNewRecord; char SystemRegionLetter; @@ -132,6 +134,12 @@ int AddHistoryRecord(const char *name) DEBUG_PRINTF("Adding history record: %s\n", name); + // Don't write history for ps1 cards + mcGetInfo(0, 0, &mcType, 0, 0); + mcSync(0, NULL, &result); + if (mcType == sceMcTypePS1) + return -1; + // For simplicity, create the data folder immediately if the history file does not exist (unlike the original). sprintf(path, "mc0:/%s", GetSystemDataPath()); if ((result = LoadHistoryFile(path, HistoryEntries)) != 0) {