Skip to content

Commit

Permalink
Add RTC feature
Browse files Browse the repository at this point in the history
  • Loading branch information
networkfusion committed Dec 29, 2023
1 parent 20619a4 commit af742a2
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/flashcart/64drive/64drive.c
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,7 @@ static flashcart_err_t d64_deinit (void) {
static bool d64_has_feature (flashcart_features_t feature) {
switch (feature) {
case FLASHCART_FEATURE_64DD: return false;
case FLASHCART_FEATURE_RTC: return true;
default: return false;
}
}
Expand Down
1 change: 1 addition & 0 deletions src/flashcart/ed64/ed64.c
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@ static flashcart_err_t ed64_deinit (void) {
static bool ed64_has_feature (flashcart_features_t feature) {
switch (feature) {
case FLASHCART_FEATURE_64DD: return false;
case FLASHCART_FEATURE_RTC: return false; // FIXME: if it is a V3 we should return true!
default: return false;
}
}
Expand Down
1 change: 1 addition & 0 deletions src/flashcart/flashcart.h
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ typedef enum {
/** @brief List of optional supported flashcart features */
typedef enum {
FLASHCART_FEATURE_64DD,
FLASHCART_FEATURE_RTC,
} flashcart_features_t;

/** @brief Flashcart save type enumeration */
Expand Down
1 change: 1 addition & 0 deletions src/flashcart/sc64/sc64.c
Original file line number Diff line number Diff line change
Expand Up @@ -260,6 +260,7 @@ static flashcart_err_t sc64_deinit (void) {
static bool sc64_has_feature (flashcart_features_t feature) {
switch (feature) {
case FLASHCART_FEATURE_64DD: return true;
case FLASHCART_FEATURE_RTC: return true;
default: return false;
}
}
Expand Down

0 comments on commit af742a2

Please sign in to comment.