cc65 -t c128 $<
ca65 -t c128 $$(basename $< .c).s
-all: config.o kasse.o credit_manager.o general.o
+all: config.o kasse.o
cl65 -t c128 *.o -o kasse
test: config.o test.o
#else
+void load_config() {
+}
+
void load_items() {
uc c;
num_items=2;
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;*/
}
void load_state() {
}
void save_credits() {}
-#endif
\ No newline at end of file
+#endif
};
#define MAX_CREDIT_ITEMS 75
-extern struct credits_t *credits;
+extern struct credits_t credits[MAX_CREDIT_ITEMS+1];
/* Lädt Dinge wie die Druckeradresse */
void load_config();
#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
/* Konfigurationsdatei laden */
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;
}