move ConsoleHelpers out of Minecraft.World

This commit is contained in:
Tropical
2026-04-01 11:36:19 -05:00
parent c49c0a7f27
commit 1c22f1e1b4
247 changed files with 364 additions and 343 deletions

View File

@@ -4,7 +4,7 @@
#include <vector>
#include "Buffer.h"
#include "../../../Minecraft.World/ConsoleHelpers/Definitions.h" // 4jcraft TODO
#include "console_helpers/Definitions.h" // 4jcraft TODO
class IntBuffer;
class FloatBuffer;

View File

@@ -44,9 +44,3 @@ public:
static void ReverseULONGLONG(int64_t* pullVal);
static void ReverseWCHARA(wchar_t* pwch, int iLen);
};
#define MAKE_FOURCC(ch0, ch1, ch2, ch3) \
(static_cast<std::uint32_t>(static_cast<std::uint8_t>(ch0)) | \
(static_cast<std::uint32_t>(static_cast<std::uint8_t>(ch1)) << 8) | \
(static_cast<std::uint32_t>(static_cast<std::uint8_t>(ch2)) << 16) | \
(static_cast<std::uint32_t>(static_cast<std::uint8_t>(ch3)) << 24))

View File

@@ -24,6 +24,7 @@ java_sources = files(
lib_java = static_library('java',
java_sources,
dependencies: [console_helpers_dep],
# TODO: remove the .. path once arrayWithLength are evaporated
include_directories: include_directories('include'),
cpp_args : global_cpp_args + global_cpp_defs,

View File

@@ -9,8 +9,8 @@
#include "java/FileFilter.h"
#include "java/File.h"
#include "../../Minecraft.World/ConsoleHelpers/PathHelper.h" // 4jcraft TODO
#include "../../Minecraft.World/ConsoleHelpers/StringHelpers.h" // 4jcraft TODO
#include "console_helpers/PathHelper.h" // 4jcraft TODO
#include "console_helpers/StringHelpers.h" // 4jcraft TODO
const wchar_t File::pathSeparator = L'/';

View File

@@ -9,7 +9,7 @@
#include "java/File.h"
#include "java/InputOutputStream/FileInputStream.h"
#include "../../../Minecraft.World/ConsoleHelpers/StringHelpers.h"
#include "console_helpers/StringHelpers.h"
namespace {
int64_t FileTell(std::FILE* file) {

View File

@@ -5,7 +5,7 @@
#include "java/File.h"
#include "java/InputOutputStream/FileOutputStream.h"
#include "../../../Minecraft.World/ConsoleHelpers/StringHelpers.h" // 4jcraft TODO
#include "console_helpers/StringHelpers.h" // 4jcraft TODO
// Creates a file output stream to write to the file represented by the
// specified File object. A new FileDescriptor object is created to represent