ELEC2645 (2018/19) / Mbed 2 deprecated el17ajf

Dependencies:   mbed

Fork of el17ajf by Angus Findlay

Revision:
21:62d2b5b73160
Parent:
20:cd96f98f5f79
Child:
27:2ed9e3c9f4e9
diff -r cd96f98f5f79 -r 62d2b5b73160 Prefs/Prefs.h
--- 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