X-Git-Url: https://git.sur5r.net/?a=blobdiff_plain;f=config.c;h=9fc1feed019fa1a03e6ff1d609a87f949a581997;hb=4fd4ec23e00a36535c5e1ad8eee15f0ed04faffd;hp=b58f36fe767ca8d18a014d61257c362bd6ced856;hpb=84ea76db84ed6b7e8f10e061f7f61318ef834afa;p=c128-kasse diff --git a/config.c b/config.c index b58f36f..9fc1fee 100644 --- 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