Skip to content

Commit

Permalink
Work in progress
Browse files Browse the repository at this point in the history
  • Loading branch information
skhaz committed Sep 29, 2024
1 parent 1010c18 commit aeb6582
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 8 deletions.
2 changes: 2 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ find_package(libavif CONFIG REQUIRED)
find_package(CURL CONFIG REQUIRED)
find_package(fmt CONFIG REQUIRED)
find_package(Ogg CONFIG REQUIRED)
find_package(OpenAL CONFIG REQUIRED)
find_package(PhysFS CONFIG REQUIRED)
find_package(SDL2 CONFIG REQUIRED)
find_package(SPNG CONFIG REQUIRED)
Expand Down Expand Up @@ -65,6 +66,7 @@ target_link_libraries(${PROJECT_NAME} avif)
target_link_libraries(${PROJECT_NAME} CURL::libcurl)
target_link_libraries(${PROJECT_NAME} fmt::fmt)
target_link_libraries(${PROJECT_NAME} Ogg::ogg)
target_link_libraries(${PROJECT_NAME} OpenAL::OpenAL)
target_link_libraries(${PROJECT_NAME} physfs-static)
target_link_libraries(${PROJECT_NAME} SDL2::SDL2-static)
target_link_libraries(${PROJECT_NAME} SDL2::SDL2main)
Expand Down
1 change: 1 addition & 0 deletions conanfile.txt
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ libavif/1.0.1
libcurl/8.10.1
libspng/0.7.4
ogg/1.3.5
openal-soft/1.23.1
physfs/3.2.0
sdl/2.30.7
sol2/3.3.1
Expand Down
2 changes: 0 additions & 2 deletions src/application.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@ application::application(int argc, char **argv) {
UNUSED(argc);
UNUSED(argv);

curl_global_init(CURL_GLOBAL_ALL);
SDL_Init(SDL_INIT_AUDIO | SDL_INIT_GAMECONTROLLER | SDL_INIT_VIDEO);
SDL_EventState(SDL_CONTROLLERDEVICEADDED, SDL_ENABLE);
SDL_EventState(SDL_CONTROLLERDEVICEREMOVED, SDL_ENABLE);
Expand Down Expand Up @@ -46,5 +45,4 @@ int application::run() {
application::~application() {
PHYSFS_deinit();
SDL_Quit();
curl_global_cleanup();
}
3 changes: 3 additions & 0 deletions src/common.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,9 @@
#define NOMINMAX

extern "C" {
#include <AL/al.h>

Check failure on line 10 in src/common.hpp

View workflow job for this annotation

GitHub Actions / lint

src/common.hpp:10:10 [clang-diagnostic-error]

'AL/al.h' file not found
#include <AL/alc.h>
#include <AL/alext.h>
#include <SDL2/SDL.h>
#include <avif/avif.h>
#include <curl/curl.h>
Expand Down
6 changes: 0 additions & 6 deletions src/deleters.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -38,10 +38,4 @@ struct SDL_Deleter {
SDL_GameControllerClose(ptr);
}
}

inline void operator()(spng_ctx *ptr) {
if (ptr) {
spng_ctx_free(ptr);
}
}
};

0 comments on commit aeb6582

Please sign in to comment.