diff --git a/CMakeLists.txt b/CMakeLists.txt index 7dbe084..beab52f 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -6,8 +6,8 @@ conan_basic_setup() ## Setup options ## -option(STEAM "Build for Steam" ON) -set(STEAMWORKS_PATH "${CMAKE_BINARY_DIR}/steamworks" CACHE PATH "Path to Steamworks folder") +option(STEAM "Build for Steam" OFF) +set(STEAMWORKS_PATH "${CMAKE_CURRENT_SOURCE_DIR}/steamworks" CACHE PATH "Path to Steamworks folder") option(DEBUG "Debug mode" OFF) ## Misc setup ## diff --git a/conanfile.py b/conanfile.py index 2aa3874..f0eace2 100644 --- a/conanfile.py +++ b/conanfile.py @@ -16,7 +16,7 @@ class MkxpConan(ConanFile): "openal/1.18.2@bincrafters/stable", "physfs/3.0.1@eliza/stable", "pixman/0.34.0@bincrafters/stable", - "ruby-mkxp/2.5.1@eliza/stable", + "ruby/2.5.1@eliza/stable", "sdl2/2.0.8@bincrafters/stable", "sdl2_image/2.0.3@bincrafters/stable", "sdl2_ttf/2.0.14@eliza/stable", diff --git a/src/main.cpp b/src/main.cpp index bebb63d..c7af9b7 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -252,7 +252,7 @@ int main(int argc, char *argv[]) if (conf.windowTitle.empty()) conf.windowTitle = conf.game.title; - int imgFlags = IMG_INIT_PNG | IMG_INIT_JPG; + int imgFlags = IMG_INIT_PNG; if (IMG_Init(imgFlags) != imgFlags) { showInitError(std::string("Error initializing SDL_image: ") + SDL_GetError()); diff --git a/steamshim_parent/CMakeLists.txt b/steamshim_parent/CMakeLists.txt index cbc3a4e..3c25ad2 100644 --- a/steamshim_parent/CMakeLists.txt +++ b/steamshim_parent/CMakeLists.txt @@ -1,6 +1,6 @@ cmake_minimum_required(VERSION 2.8.11) -set(STEAMWORKS_PATH "" CACHE PATH "Path to Steamworks folder") +set(STEAMWORKS_PATH "${CMAKE_CURRENT_SOURCE_DIR}/../steamworks" CACHE PATH "Path to Steamworks folder") set(GAME_LAUNCH_NAME "oneshot" CACHE STRING "Game launch name") option(DEBUG "Debug mode" OFF) @@ -20,7 +20,7 @@ IF(APPLE) link_directories(${STEAMWORKS_PATH}/redistributable_bin/osx32) ELSEIF(WIN32) list(APPEND SOURCES resources.rc) - link_directories(${STEAMWORKS_PATH}/redistributable_bin) + link_directories(${STEAMWORKS_PATH}/redistributable_bin/win64) set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -mwindows") ELSEIF(LINUX) link_directories(${STEAMWORKS_PATH}/redistributable_bin/linux64) @@ -31,4 +31,8 @@ add_executable(steamshim ${SOURCES} ) -target_link_libraries(steamshim steam_api) +IF(WIN32) + target_link_libraries(steamshim steam_api64) +ELSE() + target_link_libraries(steamshim steam_api) +ENDIF()