platform (linux): fixup some more things

* Add KBM input, include winapi_stubs in other places (4JLibs), clean up some things
This commit is contained in:
Tropical authored and Anaël committed 2026-11-28 12:42:18 +01:00
1 parent 54e15cfb85
commit 489a9e5ad3
13 files changed
+98 -72

No files matched your search

+3 -3
View File
@@ -12,7 +12,7 @@
#include "../Minecraft.Client/Common/GameRules/LevelGenerationOptions.h"
#include "../Minecraft.World/net.minecraft.world.level.chunk.storage.h"
#if defined(MINECRAFT_SERVER_BUILD) || defined(_WINDOWS64) || defined(_DURANGO) || defined(__ORBIS__)
#if defined(MINECRAFT_SERVER_BUILD) || defined(_WINDOWS64) || defined(_DURANGO) || defined(__ORBIS__) || defined(__linux__)
#include <thread>
#include <atomic>
#include <mutex>
@@ -1248,7 +1248,7 @@ void *ConsoleSaveFileOriginal::getWritePointer(FileEntry *file)
return static_cast<char *>(pvSaveMem) + file->currentFilePointer;;
}
#if defined(MINECRAFT_SERVER_BUILD) || defined(_WINDOWS64) || defined(_DURANGO) || defined(__ORBIS__)
#if defined(MINECRAFT_SERVER_BUILD) || defined(_WINDOWS64) || defined(_DURANGO) || defined(__ORBIS__) || defined(__linux__)
void ConsoleSaveFileOriginal::flushPendingBackgroundSave()
{
std::lock_guard<std::mutex> lk(s_bgSaveMutex);
@@ -1268,4 +1268,4 @@ bool ConsoleSaveFileOriginal::hasPendingBackgroundSave()
{
return s_bgSaveActive.load(std::memory_order_acquire);
}
#endif
#endif