Windows Portability: Static linking for C++ runtime - v2.1.5

This commit is contained in:
Michael Howard 2026-04-23 20:03:49 -05:00
parent d91ad97868
commit 00cbe915d2
8 changed files with 11 additions and 10 deletions

View File

@ -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

View File

@ -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.

Binary file not shown.

View File

@ -1 +1 @@
v2.1.4
v2.1.5

Binary file not shown.

View File

@ -1 +1 @@
v2.1.4
v2.1.5

View File

@ -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 == "") {

View File

@ -1 +1 @@
v2.1.4
v2.1.5