]> git.sur5r.net Git - c128-kasse/blob - config.c
a142c18f6b31dbeed3ba5668a366297379baf3d7
[c128-kasse] / config.c
1 #include <stdlib.h>
2 #include "general.h"
3 #include "config.h"
4
5 unsigned long int money = 0;
6 unsigned long int num_items = 0;
7 uc num_credit_items = 0;
8 unsigned long int items_sold = 0;
9 struct status_t status[MAX_ITEMS+1];
10 struct credits_t credits[MAX_CREDIT_ITEMS+1];
11
12 void load_config() {
13 }
14
15 void load_items() {
16         uc c;
17         num_items=2;
18         status[0].item_name = "cola";
19         status[0].price = 230;
20         status[0].times_sold = 0;
21         status[1].item_name = "mate";
22         status[1].price = 150;
23         status[1].times_sold = 0;
24         for (c = 2; c < MAX_ITEMS; ++c)
25                 status[c].item_name = NULL;
26         
27 }
28
29 void load_state() {
30         status[0].times_sold=23;        
31         status[1].times_sold=42;        
32 }
33
34 void load_credits() {
35 }
36
37 void save_state() {
38 }
39
40 void save_credits() {
41 }