Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Rework sounds management #187

Draft
wants to merge 14 commits into
base: master
Choose a base branch
from
Draft
2 changes: 0 additions & 2 deletions config/defaults.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -13,12 +13,10 @@ exec "config/brush.cfg"
exec "config/setup.cfg"
exec "config/legacy.cfg"

exec "config/sounds/package.cfg"
exec "config/vanities.cfg"

exec "config/usage.cfg"
exec "config/tips.cfg"

exec "config/menus/package.cfg" // keep this here, it uses some of the stuff above
exec "config/voice.cfg"
exec "config/compass.cfg"
37 changes: 0 additions & 37 deletions config/sounds/announcer.cfg

This file was deleted.

3 changes: 0 additions & 3 deletions config/sounds/interface.cfg

This file was deleted.

5 changes: 0 additions & 5 deletions config/sounds/package.cfg

This file was deleted.

7 changes: 0 additions & 7 deletions config/sounds/player.cfg

This file was deleted.

280 changes: 0 additions & 280 deletions config/sounds/weapons.cfg

This file was deleted.

43 changes: 0 additions & 43 deletions config/voice.cfg

This file was deleted.

6 changes: 6 additions & 0 deletions src/cmake/build_client.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,13 @@ if(BUILD_CLIENT)
engine/skelmodel.h
engine/smd.h
engine/sound.h
engine/soundsample.h
engine/soundsample.cpp
engine/soundslot.h
engine/soundslot.cpp
engine/textedit.h
engine/soundslot_collection.h
engine/soundslot_collection.cpp
engine/texture.h
engine/version.h
engine/vertmodel.h
Expand Down
7 changes: 7 additions & 0 deletions src/cmake/build_genkey.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,13 @@ if(BUILD_GENKEY)

engine/genkey.cpp
shared/crypto.cpp
shared/cube.h
shared/tools.h
shared/command.h
shared/geom.h
shared/ents.h
shared/iengine.h
shared/igame.h
)

add_blue_nebula_executable(genkey${BIN_SUFFIX} ${genkey_sources})
Expand Down
14 changes: 14 additions & 0 deletions src/cmake/build_server.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -33,15 +33,29 @@ if(BUILD_SERVER)
shared/tools.h

shared/crypto.cpp
shared/cube.h
shared/tools.h
shared/command.h
shared/geom.h
shared/ents.h
shared/iengine.h
shared/igame.h
shared/geom.cpp
shared/stream.cpp
shared/tools.cpp
shared/zip.cpp
engine/engine.h
engine/version.h
engine/command.cpp
engine/irc.cpp
engine/master.cpp
engine/server.cpp
game/server.cpp
game/capturemode.h
game/defendmode.h
game/bombermode.h
game/duelmut.h
game/aiman.h
)

# dependencies are imported globally in src/CMakeLists.txt
Expand Down
2 changes: 2 additions & 0 deletions src/engine/main.cpp
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
// main.cpp: initialisation & main loop
#include "engine.h"
#include <signal.h>
#include <game.h>

string caption = "";

Expand Down Expand Up @@ -1064,6 +1065,7 @@ int main(int argc, char **argv)

conoutf("loading sound..");
initsound();
game::load_game_sounds();

game::start();

Expand Down
Loading