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.
Dependencies: mbed
Fork of el17ajf by
Diff: Prefs/Prefs.h
- Revision:
- 21:62d2b5b73160
- Parent:
- 20:cd96f98f5f79
- Child:
- 27:2ed9e3c9f4e9
--- a/Prefs/Prefs.h Wed Apr 03 17:25:15 2019 +0000 +++ b/Prefs/Prefs.h Wed Apr 03 20:33:27 2019 +0000 @@ -11,14 +11,16 @@ HIGHSCORE1_PLAYER, HIGHSCORE2_PLAYER, HIGHSCORE3_PLAYER, LAST_PLAYER, LAST_SCORE }; - Prefs(); - ~Prefs(); void setKey(Key key, int value); int getKey(Key key); void resetAll(); + static Prefs * getInstance(); private: + Prefs(); + ~Prefs(); SDFileSystem * sd; FILE * file; + static Prefs * instance; }; #endif \ No newline at end of file