]> git.sur5r.net Git - c128-kasse/blobdiff - config.c
file logging
[c128-kasse] / config.c
index b58f36fe767ca8d18a014d61257c362bd6ced856..9fc1feed019fa1a03e6ff1d609a87f949a581997 100644 (file)
--- a/config.c
+++ b/config.c
@@ -11,10 +11,8 @@ unsigned long int items_sold = 0;
 BYTE printer_port = 4;
 struct status_t status[MAX_ITEMS+1];
 struct credits_t credits[MAX_CREDIT_ITEMS+1];
-#define REAL_DATA
-#ifdef REAL_DATA
-void load_config();
 
+void load_config();
 
 void load_items(){
     FILE* f;
@@ -93,35 +91,3 @@ void dump_state(){
 */
 void load_config() {
 }
-
-#else
-
-void load_config() {
-}
-
-void load_items() {
-       BYTE c;
-       num_items=2;
-       strcpy(status[0].item_name, "cola");
-       status[0].price = 230;
-       status[0].times_sold = 0;
-       strcpy(status[1].item_name, "mate");
-       status[1].price = 150;
-       status[1].times_sold = 0;
-       for (c = 2; c < MAX_ITEMS; ++c)
-               status[c].item_name[0] = 0;
-}
-
-void load_state() {
-       status[0].times_sold=23;        
-       status[1].times_sold=42;        
-}
-
-void load_credits() {
-}
-
-void save_state() {
-}
-
-void save_credits() {}
-#endif