diff --git a/CMakeLists.txt b/CMakeLists.txt index af72124..1b1033a 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -20,6 +20,7 @@ add_executable(MorriCraft src/main.cpp) target_link_libraries(MorriCraft PRIVATE raylib) if(WIN32) target_link_libraries(MorriCraft PRIVATE ws2_32) + target_link_options(MorriCraft PRIVATE -static-libgcc -static-libstdc++ -static) endif() # Copy assets to build directory diff --git a/README.md b/README.md index 160a43b..93e7273 100644 --- a/README.md +++ b/README.md @@ -13,11 +13,11 @@ MorriCraft is a high-performance voxel engine built with C++ and Raylib. It feat ## Version History -### v2.1.4 - Menu Responsiveness (Latest) -* **Logic Fix**: Corrected state machine nesting that caused menu freezing. -* **Draw Loop Stability**: Ensured global drawing commands are reached in all UI states. +### v2.1.5 - Windows Portability (Latest) +* **Static Linking**: Added `-static-libgcc` and `-static-libstdc++` to the Windows build to eliminate DLL dependency errors. +* **Stand-alone Binary**: The Windows executable is now fully portable. -### v2.1.3 - Stability & Audio Fallback +### v2.1.4 - Menu Responsiveness ### v2.1.0 - Personalization & Stability * **Integrated Skin Editor**: Personalize your shirt and pants colors directly from the Options menu. diff --git a/build-linux/MorriCraft b/build-linux/MorriCraft index eb3b324..c060bc2 100755 Binary files a/build-linux/MorriCraft and b/build-linux/MorriCraft differ diff --git a/build-linux/assets/version.txt b/build-linux/assets/version.txt index b02bebf..ef4b6a2 100644 --- a/build-linux/assets/version.txt +++ b/build-linux/assets/version.txt @@ -1 +1 @@ -v2.1.4 +v2.1.5 diff --git a/build-windows/MorriCraft.exe b/build-windows/MorriCraft.exe index 62dab26..9011f41 100755 Binary files a/build-windows/MorriCraft.exe and b/build-windows/MorriCraft.exe differ diff --git a/build-windows/assets/version.txt b/build-windows/assets/version.txt index b02bebf..ef4b6a2 100644 --- a/build-windows/assets/version.txt +++ b/build-windows/assets/version.txt @@ -1 +1 @@ -v2.1.4 +v2.1.5 diff --git a/src/main.cpp b/src/main.cpp index ed6d2cd..d808d2b 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -783,7 +783,7 @@ int main(void) // By default, windows have minimize, maximize, and close buttons on the top bar. SetConfigFlags(FLAG_WINDOW_RESIZABLE | FLAG_VSYNC_HINT); - InitWindow(screenWidth, screenHeight, "MorriCraft v2.1.3"); + InitWindow(screenWidth, screenHeight, "MorriCraft v2.1.5"); LoadConfig(); SetExitKey(KEY_NULL); // Prevent ESC from closing the window @@ -1952,8 +1952,8 @@ int main(void) DrawTexturePro(titleTexture, sourceRec, destRec, origin, 0.0f, WHITE); EndMode2D(); - // Show Version Number (v2.1.3) in Red - DrawTextEx(customFont, "v2.1.3", (Vector2){ (float)currentWidth - 140, (float)currentHeight - 40 }, 22, 1.0f, RED); + // Show Version Number (v2.1.5) in Red + DrawTextEx(customFont, "v2.1.5", (Vector2){ (float)currentWidth - 140, (float)currentHeight - 40 }, 22, 1.0f, RED); // --- PLAYER NAME POPUP (IF MISSING) --- if (playerName == "") { diff --git a/version.txt b/version.txt index b02bebf..ef4b6a2 100644 --- a/version.txt +++ b/version.txt @@ -1 +1 @@ -v2.1.4 +v2.1.5