cc65 -t c128 $<
ca65 -t c128 $$(basename $< .c).s
-all: config.o kasse.o
+all: config.o kasse.o general.o credit_manager.o
cl65 -t c128 *.o -o kasse
test: config.o test.o
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 = NULL;*/
+ for (c = 2; c < MAX_ITEMS; ++c)
+ status[c].item_name[0] = 0;
}
void load_state() {
#include "general.h"
#include "config.h"
#include "kasse.h"
-//#include "credit_manager.h"
+#include "credit_manager.h"
// drucker 4 oder 5
// graphic 4,0,10
load_config();
/* Einträge (=Getränke) laden */
load_items();
-#if 0
/* Zustand laden */
load_state();
/* Guthaben laden */
load_credits();
-#endif
while (1) {
/* Bildschirm anzeigen */
print_screen();
getchar();
} else if (c == 'g') {
/* Guthabenverwalter aufrufen */
-// credit_manager();
+ credit_manager();
} else if (c == 'q')
break;
}