From 38ce933fd5ec05673cbefae63f2bae74a1e0d53c Mon Sep 17 00:00:00 2001 From: GuglioIsStupid Date: Sat, 7 Mar 2026 06:36:05 -0500 Subject: [PATCH] voids request - Move the filesystem files to root/ as it will be used in both Minecraft.Client and Minecraft.World (#819) * Move Filesystem to root/include/ as per devoiders request * Filesystem -> lce_filesystem --- CMakeLists.txt | 1 + Minecraft.Client/Common/Audio/SoundEngine.cpp | 2 +- Minecraft.Client/Minecraft.Client.vcxproj | 6 +++--- .../Minecraft.Client.vcxproj.filters | 17 ++++++++++------- cmake/ClientSources.cmake | 3 ++- .../lce_filesystem/lce_filesystem.cpp | 3 +-- .../lce_filesystem/lce_filesystem.h | 0 7 files changed, 18 insertions(+), 14 deletions(-) rename Minecraft.Client/Common/Filesystem/Filesystem.cpp => include/lce_filesystem/lce_filesystem.cpp (97%) rename Minecraft.Client/Common/Filesystem/Filesystem.h => include/lce_filesystem/lce_filesystem.h (100%) diff --git a/CMakeLists.txt b/CMakeLists.txt index dbdef3f6..327958f4 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -51,6 +51,7 @@ target_include_directories(MinecraftClient PRIVATE "${CMAKE_CURRENT_SOURCE_DIR}/Minecraft.Client/Windows64/Iggy/include" "${CMAKE_CURRENT_SOURCE_DIR}/Minecraft.Client/Xbox/Sentient/Include" "${CMAKE_CURRENT_SOURCE_DIR}/Minecraft.World/x64headers" + "${CMAKE_CURRENT_SOURCE_DIR}/include/" ) target_compile_definitions(MinecraftClient PRIVATE $<$:_LARGE_WORLDS;_DEBUG_MENUS_ENABLED;_DEBUG;_CRT_NON_CONFORMING_SWPRINTFS;_CRT_SECURE_NO_WARNINGS;_WINDOWS64> diff --git a/Minecraft.Client/Common/Audio/SoundEngine.cpp b/Minecraft.Client/Common/Audio/SoundEngine.cpp index 12fa03b4..13826da3 100644 --- a/Minecraft.Client/Common/Audio/SoundEngine.cpp +++ b/Minecraft.Client/Common/Audio/SoundEngine.cpp @@ -25,7 +25,7 @@ #include #include #include -#include "..\Filesystem\Filesystem.h" +#include #ifdef __ORBIS__ #include diff --git a/Minecraft.Client/Minecraft.Client.vcxproj b/Minecraft.Client/Minecraft.Client.vcxproj index 8f2547d8..fccbc7dd 100644 --- a/Minecraft.Client/Minecraft.Client.vcxproj +++ b/Minecraft.Client/Minecraft.Client.vcxproj @@ -1561,7 +1561,7 @@ if not exist "$(TargetDir)\savedata" mkdir "$(TargetDir)\savedata" MultiThreadedDebug _LARGE_WORLDS;_DEBUG_MENUS_ENABLED;_DEBUG;_CRT_NON_CONFORMING_SWPRINTFS;_CRT_SECURE_NO_WARNINGS;_WINDOWS64;%(PreprocessorDefinitions) Disabled - Windows64\Iggy\include;$(ProjectDir);%(AdditionalIncludeDirectories) + Windows64\Iggy\include;$(ProjectDir);$(ProjectDir)..\include;%(AdditionalIncludeDirectories) true true Default @@ -5585,6 +5585,7 @@ xcopy /q /y /i /s /e $(ProjectDir)Durango\CU $(LayoutDir)Image\Loose\CU + true true @@ -5717,7 +5718,6 @@ xcopy /q /y /i /s /e $(ProjectDir)Durango\CU $(LayoutDir)Image\Loose\CU - @@ -28322,6 +28322,7 @@ xcopy /q /y /i /s /e $(ProjectDir)Durango\CU $(LayoutDir)Image\Loose\CU + true true @@ -28473,7 +28474,6 @@ xcopy /q /y /i /s /e $(ProjectDir)Durango\CU $(LayoutDir)Image\Loose\CU - diff --git a/Minecraft.Client/Minecraft.Client.vcxproj.filters b/Minecraft.Client/Minecraft.Client.vcxproj.filters index 0f02a16b..ed71bfe0 100644 --- a/Minecraft.Client/Minecraft.Client.vcxproj.filters +++ b/Minecraft.Client/Minecraft.Client.vcxproj.filters @@ -729,8 +729,11 @@ {e5d7fb24-25b8-413c-84ec-974bf0d4a3d1} - - {c79fd64d-7529-4da4-b5f3-2541e084932b} + + {d8cdea16-28f5-4993-baf8-26a129e50c84} + + + {70b1f1aa-fe50-4aab-9a6c-14df8cb1f231} @@ -3781,15 +3784,15 @@ Windows64\Source Files\Network - - Common\Source Files\Filesystem - Common\Source Files\Audio Common\Source Files\Audio + + include\lce_filesystem + @@ -5943,8 +5946,8 @@ Windows64\Source Files\Network - - Common\Source Files\Filesystem + + include\lce_filesystem diff --git a/cmake/ClientSources.cmake b/cmake/ClientSources.cmake index bb1f331d..6467a243 100644 --- a/cmake/ClientSources.cmake +++ b/cmake/ClientSources.cmake @@ -1,4 +1,6 @@ set(MINECRAFT_CLIENT_SOURCES + "../include/lce_filesystem/lce_filesystem.cpp" + "AbstractTexturePack.cpp" "AchievementPopup.cpp" "AchievementScreen.cpp" @@ -48,7 +50,6 @@ set(MINECRAFT_CLIENT_SOURCES "Common/DLC/DLCSkinFile.cpp" "Common/DLC/DLCTextureFile.cpp" "Common/DLC/DLCUIDataFile.cpp" - "Common/Filesystem/Filesystem.cpp" "Common/GameRules/AddEnchantmentRuleDefinition.cpp" "Common/GameRules/AddItemRuleDefinition.cpp" "Common/GameRules/ApplySchematicRuleDefinition.cpp" diff --git a/Minecraft.Client/Common/Filesystem/Filesystem.cpp b/include/lce_filesystem/lce_filesystem.cpp similarity index 97% rename from Minecraft.Client/Common/Filesystem/Filesystem.cpp rename to include/lce_filesystem/lce_filesystem.cpp index 0d225cb5..d0d4d600 100644 --- a/Minecraft.Client/Common/Filesystem/Filesystem.cpp +++ b/include/lce_filesystem/lce_filesystem.cpp @@ -1,5 +1,4 @@ -#include "stdafx.h" -#include "Filesystem.h" +#include "lce_filesystem.h" #ifdef _WINDOWS64 #include diff --git a/Minecraft.Client/Common/Filesystem/Filesystem.h b/include/lce_filesystem/lce_filesystem.h similarity index 100% rename from Minecraft.Client/Common/Filesystem/Filesystem.h rename to include/lce_filesystem/lce_filesystem.h