mirror of
https://github.com/Polprzewodnikowy/N64FlashcartMenu.git
synced 2025-01-08 16:20:40 +01:00
minor improvements
towards get_cart_model.
This commit is contained in:
parent
1bb9746e1e
commit
3b4ec5d4b8
@ -13,6 +13,10 @@
|
|||||||
#include "ed64x.h"
|
#include "ed64x.h"
|
||||||
|
|
||||||
typedef enum {
|
typedef enum {
|
||||||
|
// ED64_V1_0 = 1,
|
||||||
|
// ED64_V2_0 = 2,
|
||||||
|
// ED64_V2_5 = 2.5,
|
||||||
|
// ED64_V3_0 = 3,
|
||||||
ED64_X5 = 5,
|
ED64_X5 = 5,
|
||||||
ED64_X7 = 7,
|
ED64_X7 = 7,
|
||||||
ED64_UKNOWN = 0,
|
ED64_UKNOWN = 0,
|
||||||
@ -34,12 +38,12 @@ static flashcart_err_t ed64x_deinit (void) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
static ed64x_device_variant_t get_cart_model() {
|
static ed64x_device_variant_t get_cart_model() {
|
||||||
// Currently either X5 or X7
|
ed64x_device_variant_t variant = ED64_X7; // FIXME: check cart model from ll for better feature handling.
|
||||||
return true; // FIXME: check cart model.
|
return variant;
|
||||||
}
|
}
|
||||||
|
|
||||||
static bool ed64x_has_feature (flashcart_features_t feature) {
|
static bool ed64x_has_feature (flashcart_features_t feature) {
|
||||||
bool is_model_x7 = get_cart_model();
|
bool is_model_x7 = (get_cart_model() == ED64_X7);
|
||||||
switch (feature) {
|
switch (feature) {
|
||||||
case FLASHCART_FEATURE_RTC: return is_model_x7 ? true : false;
|
case FLASHCART_FEATURE_RTC: return is_model_x7 ? true : false;
|
||||||
case FLASHCART_FEATURE_USB: return is_model_x7 ? true : false;
|
case FLASHCART_FEATURE_USB: return is_model_x7 ? true : false;
|
||||||
|
Loading…
Reference in New Issue
Block a user