Explorar el Código

Test symlinks for include, add weapon audio

See if symlinks are feasible for includes to organize dependencies.
master
TheoryOfNekomata hace 1 año
padre
commit
eb88a10f20
Se han modificado 13 ficheros con 42 adiciones y 3 borrados
  1. +2
    -2
      CMakeLists.txt
  2. BIN
      assets/internal/default/weapon-hitman/1-unload-var0.mp3
  3. BIN
      assets/internal/default/weapon-hitman/1-unload-var0.wav
  4. BIN
      assets/internal/default/weapon-hitman/1-unload-var1.mp3
  5. BIN
      assets/internal/default/weapon-hitman/1-unload-var1.wav
  6. BIN
      assets/internal/default/weapon-hitman/1-unload-var2.mp3
  7. BIN
      assets/internal/default/weapon-hitman/1-unload-var2.wav
  8. BIN
      assets/internal/default/weapon-servant/1-unload-var0.wav
  9. BIN
      assets/internal/default/weapon-servant/1-unload-var1.wav
  10. +1
    -0
      include/SDL
  11. +2
    -1
      src/packages/game/IZ_app.c
  12. +13
    -0
      src/packages/game/output/audio/IZ_audio.c
  13. +24
    -0
      src/packages/game/output/audio/IZ_audio.h

+ 2
- 2
CMakeLists.txt Ver fichero

@@ -64,7 +64,7 @@ endif()
#
include_directories(
"${CMAKE_HOME_DIRECTORY}/subprojects"
"${CMAKE_HOME_DIRECTORY}/subprojects/SDL/include"
"${CMAKE_HOME_DIRECTORY}/include/SDL"
"${CMAKE_HOME_DIRECTORY}/dependencies/SDL2_image"
"${CMAKE_HOME_DIRECTORY}/dependencies/SDL2_image/include"
"${CMAKE_HOME_DIRECTORY}/dependencies/SDL2_ttf/include"
@@ -212,7 +212,7 @@ add_executable(
src/packages/stdinc/IZ_stdlib.h
src/packages/config/IZ_config_guid.c
src/packages/config/IZ_config_guid.h
)
src/packages/game/output/audio/IZ_audio.c src/packages/game/output/audio/IZ_audio.h)

target_link_libraries(
game


BIN
assets/internal/default/weapon-hitman/1-unload-var0.mp3 Ver fichero


BIN
assets/internal/default/weapon-hitman/1-unload-var0.wav Ver fichero


BIN
assets/internal/default/weapon-hitman/1-unload-var1.mp3 Ver fichero


BIN
assets/internal/default/weapon-hitman/1-unload-var1.wav Ver fichero


BIN
assets/internal/default/weapon-hitman/1-unload-var2.mp3 Ver fichero


BIN
assets/internal/default/weapon-hitman/1-unload-var2.wav Ver fichero


BIN
assets/internal/default/weapon-servant/1-unload-var0.wav Ver fichero


BIN
assets/internal/default/weapon-servant/1-unload-var1.wav Ver fichero


+ 1
- 0
include/SDL Ver fichero

@@ -0,0 +1 @@
../subprojects/SDL/include

+ 2
- 1
src/packages/game/IZ_app.c Ver fichero

@@ -17,9 +17,10 @@ IZ_InputState* IZ_AppGetInputState(struct IZ_App* app) {
}

typedef enum {
IZ_APP_INITIALIZE_RESULT_NETWORKING_ERROR = -5,
IZ_APP_INITIALIZE_RESULT_NETWORKING_ERROR = -6,
IZ_APP_INITIALIZE_RESULT_POOL_ERROR,
IZ_APP_INITIALIZE_RESULT_INPUT_ERROR,
IZ_APP_INITIALIZE_RESULT_AUDIO_ERROR,
IZ_APP_INITIALIZE_RESULT_VIDEO_ERROR,
IZ_APP_INITIALIZE_RESULT_SDL_ERROR,
IZ_APP_INITIALIZE_RESULT_OK,


+ 13
- 0
src/packages/game/output/audio/IZ_audio.c Ver fichero

@@ -0,0 +1,13 @@
#include "IZ_audio.h"

IZ_AudioInitializeResult IZ_AudioInitialize(IZ_AudioState* state, void* user_data, const char* config_path, u8 argc, const char* argv[]) {
return IZ_AUDIO_INITIALIZE_RESULT_OK;
}

IZ_AudioSaveConfigResult IZ_AudioSaveConfig(IZ_AudioState* state, const char* config_path) {
return IZ_AUDIO_SAVE_CONFIG_RESULT_OK;
}

void IZ_AudioTeardown(IZ_AudioState* state) {

}

+ 24
- 0
src/packages/game/output/audio/IZ_audio.h Ver fichero

@@ -0,0 +1,24 @@
#ifndef IZ_AUDIO_H
#define IZ_AUDIO_H

#include "../../../common/IZ_common.h"

typedef enum {
IZ_AUDIO_INITIALIZE_RESULT_OK = 0
} IZ_AudioInitializeResult;

typedef enum {
IZ_AUDIO_SAVE_CONFIG_RESULT_OK = 0,
} IZ_AudioSaveConfigResult;

typedef struct {

} IZ_AudioState;

IZ_AudioInitializeResult IZ_AudioInitialize(IZ_AudioState*, void*, const char*, u8, const char*[]);

IZ_AudioSaveConfigResult IZ_AudioSaveConfig(IZ_AudioState*, const char*);

void IZ_AudioTeardown(IZ_AudioState*);

#endif

Cargando…
Cancelar
Guardar