Skip to content

Commit

Permalink
Add device information function
Browse files Browse the repository at this point in the history
  • Loading branch information
networkfusion committed Dec 29, 2023
1 parent df207a3 commit 20619a4
Show file tree
Hide file tree
Showing 5 changed files with 6 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 @@ -273,6 +273,7 @@ static flashcart_t flashcart_d64 = {
.load_64dd_disk = NULL,
.set_save_type = d64_set_save_type,
.set_save_writeback = d64_set_save_writeback,
.get_device_info = NULL,
};


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 @@ -243,6 +243,7 @@ static flashcart_t flashcart_ed64 = {
.load_64dd_disk = NULL,
.set_save_type = ed64_set_save_type,
.set_save_writeback = NULL,
.get_device_info = NULL,
};


Expand Down
1 change: 1 addition & 0 deletions src/flashcart/flashcart.c
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,7 @@ static flashcart_t *flashcart = &((flashcart_t) {
.load_save = NULL,
.set_save_type = NULL,
.set_save_writeback = NULL,
.get_device_info = NULL,
});

#ifdef NDEBUG
Expand Down
2 changes: 2 additions & 0 deletions src/flashcart/flashcart.h
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,8 @@ typedef struct {
flashcart_err_t (*set_save_type) (flashcart_save_type_t save_type);
/** @brief The flashcart set save writeback function */
flashcart_err_t (*set_save_writeback) (uint32_t *sectors);
/** @brief The flashcart device information function */
flashcart_err_t (*get_device_info) (void);
} flashcart_t;


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 @@ -579,6 +579,7 @@ static flashcart_t flashcart_sc64 = {
.load_64dd_disk = sc64_load_64dd_disk,
.set_save_type = sc64_set_save_type,
.set_save_writeback = sc64_set_save_writeback,
.get_device_info = NULL,
};


Expand Down

0 comments on commit 20619a4

Please sign in to comment.