diff --git a/CMakeLists.txt b/CMakeLists.txt index d03c402..23c5728 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -11,6 +11,8 @@ set(OUT2_INCLUDE_DIRS "${CMAKE_CURRENT_LIST_DIR}/src/SoLoud/MIDI/") set(OUT3_INCLUDE_DIRS "${CMAKE_CURRENT_LIST_DIR}/src/toml/") # Support both 32 and 64 bit builds +# Someone make a pull request to support MingW +# Way to lazy to do that right now if (${CMAKE_SIZEOF_VOID_P} MATCHES 8) set(MAIN_LIBRARIES "${CMAKE_CURRENT_LIST_DIR}/lib/x64/soloud_static.lib;${CMAKE_CURRENT_LIST_DIR}/lib/x64/SDL2.lib;${CMAKE_CURRENT_LIST_DIR}/lib/x64/SDL2main.lib;${CMAKE_CURRENT_LIST_DIR}/lib/x64/SDL2_ttf.lib") set(MAIN_LIBRARIES_E "${CMAKE_CURRENT_LIST_DIR}/lib/x64/") diff --git a/src/Main.cpp b/src/Main.cpp index ba3ff33..971058b 100644 --- a/src/Main.cpp +++ b/src/Main.cpp @@ -1,6 +1,16 @@ -#define SDL_MAIN_HANDLED // needs to be here or linker fucking dies -#define SDL_STBIMAGE_IMPLEMENTATION -#undef _HAS_STD_BYTE +/** + * @file Main.cpp + * @author haya3218 + * @brief This is an example on how to use SDfmL. Code may suck. beware + * @version 0.1 + * @date 2022-02-11 + * + * @copyright Copyright (c) 2022 + * + */ +#define SDL_MAIN_HANDLED // needs to be here so that SDL doesnt hijack our main function +#define SDL_STBIMAGE_IMPLEMENTATION // to use sdl_stbimage +#undef _HAS_STD_BYTE // avoid std::byte hijacking native byte type #include #include "SDL2/SDL.h" #include "Render.hpp" @@ -132,7 +142,7 @@ class SplashScreen : public State { SplashScreen m; int main() { - if (!Init("SDLflixel :)))))")){ + if (!Init("SDfmL :))))))")){ return ERROR_CODE; }