diff -Naur ES_d/Makefile ES_d-gentoo/Makefile --- ES_d/Makefile 1970-01-01 01:00:00.000000000 +0100 +++ ES_d-gentoo/Makefile 2007-08-05 13:33:59.000000000 +0200 @@ -0,0 +1,17 @@ +DC=gdmd +DFLAGS=-g -O -d -release -Iimport -Isrc +DOUT=-of + +DSRC=$(shell find src/ -name "*.d") +SOURCES=$(DSRC) import/SDL_video.d import/SDL_mouse.d import/SDL_mixer.d +OBJS=$(SOURCES:.d=.o) +EXE=es + +all: $(EXE) + +$(EXE): $(OBJS) + gcc -o $@ $(OBJS) -lbulletml_d -lgphobos -lpthread -lm -lSDL -lGL -lGLU -lSDL_mixer + +$(OBJS): %.o: %.d + $(DC) -c $(DOUT)$@ $(DFLAGS) $< + diff -Naur ES_d/src/es/boot.d ES_d-gentoo/src/es/boot.d --- ES_d/src/es/boot.d 2007-07-01 10:21:20.000000000 +0200 +++ ES_d-gentoo/src/es/boot.d 2007-08-05 13:33:37.000000000 +0200 @@ -4,7 +4,11 @@ private import es.mouse; -private Mainloop mainloop; +private Mainloop mainloop; +private Mouse mouse; + +version (Win32_release) { + private: import std.c.windows.windows; @@ -39,6 +43,20 @@ gc_term(); return result; } +} else { + // Boot as the general executable. + public int main(char[][] args) { + return boot(args); + } +} + +public int boot(char[][] args) { + double d; + mouse = new Mouse(); + mainloop = new Mainloop(mouse); + mainloop.loop(); + return 0; +} int user_start(){ double d; diff -Naur ES_d/src/es/sound.d ES_d-gentoo/src/es/sound.d --- ES_d/src/es/sound.d 2007-07-14 23:56:04.000000000 +0200 +++ ES_d-gentoo/src/es/sound.d 2007-08-05 13:49:07.000000000 +0200 @@ -73,4 +73,4 @@ public int Sound_PlayingMusic(){ if(Mix_PlayingMusic() == 0)_Sound_PlayingMusic = -1; return _Sound_PlayingMusic; -} \ Kein Zeilenumbruch am Dateiende. +}