Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Diff: SavedGames/SavedGames.h
- Revision:
- 50:13c8710985f4
- Parent:
- 49:ed569eceeaa4
- Child:
- 51:35cb8e604b72
--- a/SavedGames/SavedGames.h Tue May 19 15:32:00 2020 +0000 +++ b/SavedGames/SavedGames.h Tue May 19 16:05:18 2020 +0000 @@ -5,6 +5,7 @@ #include "mbed.h" #include "N5110.h" #include "Gamepad.h" +#include "SDFileSystem.h" /** SavedGames class * @brief Stores saved games on sd card, stores score, lives, smart bombs and @@ -21,16 +22,23 @@ ~SavedGames(); /** Initalises SavedGames*/ - void init(); + void init(SDFileSystem &sd,N5110 &lcd); - + /** Check if sd card is inserted and print message if not*/ + void check_sd_present(SDFileSystem &sd,N5110 &lcd); // Accessors and mutators -------------------------------------------------- + /** Gets error flag + * @return error_; + */ + bool get_error(); + private: // Varibles ---------------------------------------------------------------- - + /** Flag for error, true = error */ + bool error_; }; #endif \ No newline at end of file