+++ /dev/null
-loclhost
-router
-23xentry
-23xhq
-smb
-skynet
-wrongtrn
-lubiXOXO
-lubilove
-gnobbel
-sleazy
-slsky
-slsnake
-sltwice
-slentry
-sljowy
-slpipe
BADGE = badge
CONVERTER = level-converter
+LEVELLIST = levels.txt
GLADEFILES = lcd-display.glade
$(CXX) $(CPPFLAGS) $(CXXFLAGS) $(LDFLAGS) -o $@ $+ $(LDLIBS)
play: all
+ echo > $(LEVELLIST)
+ ls ../badge/jumpnrun/levels/*.lv | xargs -n1 basename | cut -d . -f 1 > $(LEVELLIST)
./$(CONVERTER)
./$(BADGE)
void badge_main_loop(void) {
char menu_buf[MAX_LEVELS][32];
- FILE *fd = fopen(PATH_PREFIX "levels.txt", "r");
+ FILE *fd = fopen("levels.txt", "r");
int i;
struct level_name_map {
level_name_map() {
- std::ifstream in(PATH_PREFIX "levels.txt");
+ std::ifstream in("levels.txt");
if(!in) {
- throw std::logic_error(PATH_PREFIX "levels.txt konnte nicht geöffnet werden.");
+ throw std::logic_error("levels.txt konnte nicht geöffnet werden.");
}
std::string name;