From f7241f8064c1c73be0002914606736f411aa5a79 Mon Sep 17 00:00:00 2001 From: MatthewBeshay <92357869+MatthewBeshay@users.noreply.github.com> Date: Tue, 31 Mar 2026 20:02:37 +1100 Subject: [PATCH] chore: add TODO for std::function migration in platform interfaces --- minecraft/platform/IPlatformInput.h | 2 ++ minecraft/platform/IPlatformProfile.h | 2 ++ minecraft/platform/IPlatformStorage.h | 2 ++ 3 files changed, 6 insertions(+) diff --git a/minecraft/platform/IPlatformInput.h b/minecraft/platform/IPlatformInput.h index 3e81397ae..183e3e326 100644 --- a/minecraft/platform/IPlatformInput.h +++ b/minecraft/platform/IPlatformInput.h @@ -2,6 +2,8 @@ #include "PlatformTypes.h" +// TODO: migrate C-style callbacks (int (*Func)(void*, ...), void* lpParam) +// to std::function or std::function_ref (C++26). class IPlatformInput { public: enum EKeyboardMode { diff --git a/minecraft/platform/IPlatformProfile.h b/minecraft/platform/IPlatformProfile.h index 1141dcebf..b49ac08a5 100644 --- a/minecraft/platform/IPlatformProfile.h +++ b/minecraft/platform/IPlatformProfile.h @@ -8,6 +8,8 @@ class CXuiStringTable; +// TODO: migrate C-style callbacks (int (*Func)(void*, ...), void* lpParam) +// to std::function or std::function_ref (C++26). class IPlatformProfile { public: struct PROFILESETTINGS { diff --git a/minecraft/platform/IPlatformStorage.h b/minecraft/platform/IPlatformStorage.h index 53c518b29..0c706af04 100644 --- a/minecraft/platform/IPlatformStorage.h +++ b/minecraft/platform/IPlatformStorage.h @@ -13,6 +13,8 @@ struct SAVE_DETAILS; using PSAVE_DETAILS = SAVE_DETAILS*; class C4JStringTable; +// TODO: migrate C-style callbacks (int (*Func)(void*, ...), void* lpParam) +// to std::function or std::function_ref (C++26). class IPlatformStorage { public: // Enums live here so both the interface consumer and the concrete