Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 188456 | Differences between
and this patch

Collapse All | Expand All

(-)ES_d/Makefile (+17 lines)
Line 0 Link Here
1
DC=gdmd
2
DFLAGS=-g -O -d -release -Iimport -Isrc
3
DOUT=-of
4
5
DSRC=$(shell find src/ -name "*.d")
6
SOURCES=$(DSRC) import/SDL_video.d import/SDL_mouse.d import/SDL_mixer.d
7
OBJS=$(SOURCES:.d=.o)
8
EXE=es
9
10
all: $(EXE)
11
12
$(EXE): $(OBJS)
13
	gcc -o $@ $(OBJS) -lbulletml_d -lgphobos -lpthread -lm -lSDL -lGL -lGLU -lSDL_mixer
14
15
$(OBJS): %.o: %.d
16
	$(DC) -c $(DOUT)$@ $(DFLAGS) $<
17
(-)ES_d/src/es/boot.d (-1 / +19 lines)
Lines 4-10 Link Here
4
4
5
private import es.mouse;
5
private import es.mouse;
6
6
7
private Mainloop mainloop;
7
private Mainloop mainloop;
8
private Mouse mouse;
9
10
version (Win32_release) {
11
8
12
9
private:
13
private:
10
import std.c.windows.windows;
14
import std.c.windows.windows;
Lines 39-44 Link Here
39
	gc_term();
43
	gc_term();
40
	return result;
44
	return result;
41
}
45
}
46
} else {
47
  // Boot as the general executable.
48
  public int main(char[][] args) {
49
    return boot(args);
50
  }
51
}
52
53
public int boot(char[][] args) {
54
 	double d;
55
	mouse = new Mouse();
56
	mainloop = new Mainloop(mouse);
57
	mainloop.loop();
58
	return 0;
59
}
42
60
43
int user_start(){
61
int user_start(){
44
	double d;
62
	double d;
(-)ES_d/src/es/sound.d (-2 / +2 lines)
Lines 29-35 Link Here
29
	}
29
	}
30
	Mix_QuerySpec(&audio_rate, &audio_format, &audio_channels);
30
	Mix_QuerySpec(&audio_rate, &audio_format, &audio_channels);
31
	
31
	
32
	music1 = Mix_LoadMUS("music/loop1.ogg");
32
	music1 = Mix_LoadMUS("/usr/share/games/es/loop1.ogg");
33
	
33
	
34
	_Sound_PlayingMusic = -1;
34
	_Sound_PlayingMusic = -1;
35
}
35
}
Lines 73-76 Link Here
73
public int Sound_PlayingMusic(){
73
public int Sound_PlayingMusic(){
74
	if(Mix_PlayingMusic() == 0)_Sound_PlayingMusic = -1;
74
	if(Mix_PlayingMusic() == 0)_Sound_PlayingMusic = -1;
75
	return _Sound_PlayingMusic;
75
	return _Sound_PlayingMusic;
76
}
76
}

Return to bug 188456