From 9a85a1cd07edf5c45f11fd6654825287b1069262 Mon Sep 17 00:00:00 2001 From: isaiah Date: Sun, 1 Mar 2026 15:46:25 -0700 Subject: [PATCH] Add functions to ensure directory creation and copy legacy redistributables --- cmake/CopyAssets.cmake | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/cmake/CopyAssets.cmake b/cmake/CopyAssets.cmake index 661ba785..47b19ca7 100644 --- a/cmake/CopyAssets.cmake +++ b/cmake/CopyAssets.cmake @@ -18,6 +18,10 @@ function(copy_tree_if_exists src_rel dst_rel) endif() endfunction() +function(ensure_dir rel_path) + file(MAKE_DIRECTORY "${OUTPUT_DIR}/${rel_path}") +endfunction() + function(copy_file_if_exists src_rel dst_rel) set(_src "${PROJECT_SOURCE_DIR}/${src_rel}") set(_dst "${OUTPUT_DIR}/${dst_rel}") @@ -61,6 +65,13 @@ else() copy_tree_if_exists("Windows64Media" "Windows64Media") endif() +# Some runtime code asserts if this directory tree is missing. +ensure_dir("Windows64/GameHDD") + +# Keep legacy runtime redistributables in a familiar location. +copy_tree_if_exists("Windows64/Miles/lib/redist64" "redist64") +copy_tree_if_exists("Windows64/Iggy/lib/redist64" "redist64") + # Runtime DLLs required at launch. copy_first_existing("iggy_w64.dll" "Minecraft.Client/Windows64/Iggy/lib/redist64/iggy_w64.dll"