From 43e001017fcb36ecffe4cad35ba0b73a2de29be9 Mon Sep 17 00:00:00 2001 From: Tonycons-dev <70544875+Tonycons-dev@users.noreply.github.com> Date: Sat, 25 Jun 2022 15:12:31 -0400 Subject: [PATCH] ksys: Add Hio (#95) --- data/uking_functions.csv | 6 +++--- src/KingSystem/System/CMakeLists.txt | 2 ++ src/KingSystem/System/Hio.cpp | 7 +++++++ src/KingSystem/System/Hio.h | 17 +++++++++++++++++ 4 files changed, 29 insertions(+), 3 deletions(-) create mode 100644 src/KingSystem/System/Hio.cpp create mode 100644 src/KingSystem/System/Hio.h diff --git a/data/uking_functions.csv b/data/uking_functions.csv index aa5f0d02..4f5ee19b 100644 --- a/data/uking_functions.csv +++ b/data/uking_functions.csv @@ -93377,9 +93377,9 @@ Address,Quality,Size,Name 0x0000007101213410,O,000092,_ZNK4ksys3res7Archive18getRuntimeTypeInfoEv 0x000000710121346c,O,000008,_ZNK4sead15SharcArchiveRes19closeDirectoryImpl_EPNS_9SafeArrayIhLi32EEE 0x0000007101213474,O,000372,_ZN4sead15SharcArchiveRes33checkDerivedRuntimeTypeInfoStaticEPKNS_15RuntimeTypeInfo9InterfaceE -0x00000071012135e8,U,000056, -0x0000007101213620,U,000092, -0x000000710121367c,U,000144,Hio::createInstance +0x00000071012135e8,O,000056,_ZN4ksys3Hio18SingletonDisposer_D1Ev +0x0000007101213620,O,000092,_ZN4ksys3Hio18SingletonDisposer_D0Ev +0x000000710121367c,O,000144,_ZN4ksys3Hio14createInstanceEPN4sead4HeapE 0x000000710121370c,O,000168,_ZN4ksys4phys11GroupFilterC2ENS0_16ContactLayerTypeENS0_12ContactLayer9ValueTypeES4_ 0x00000071012137b4,O,000080,_ZN4ksys4phys11GroupFilterD1Ev 0x0000007101213804,O,000080,_ZThn16_N4ksys4phys11GroupFilterD1Ev diff --git a/src/KingSystem/System/CMakeLists.txt b/src/KingSystem/System/CMakeLists.txt index 0aedc96a..447ca96f 100644 --- a/src/KingSystem/System/CMakeLists.txt +++ b/src/KingSystem/System/CMakeLists.txt @@ -15,6 +15,8 @@ target_sources(uking PRIVATE DebugMessage.h HavokWorkerMgr.cpp HavokWorkerMgr.h + Hio.cpp + Hio.h KingEditor.cpp KingEditor.h MemoryProfiler.cpp diff --git a/src/KingSystem/System/Hio.cpp b/src/KingSystem/System/Hio.cpp new file mode 100644 index 00000000..6cb6eb10 --- /dev/null +++ b/src/KingSystem/System/Hio.cpp @@ -0,0 +1,7 @@ +#include "KingSystem/System/Hio.h" + +namespace ksys { + +SEAD_SINGLETON_DISPOSER_IMPL(Hio) + +} // namespace ksys diff --git a/src/KingSystem/System/Hio.h b/src/KingSystem/System/Hio.h new file mode 100644 index 00000000..b6c12c09 --- /dev/null +++ b/src/KingSystem/System/Hio.h @@ -0,0 +1,17 @@ +#pragma once + +#include +#include +#include "KingSystem/Utils/Types.h" + +namespace ksys { + +class Hio final : public sead::hostio::Node { + SEAD_SINGLETON_DISPOSER(Hio) + + Hio() = default; + ~Hio() = default; +}; +KSYS_CHECK_SIZE_NX150(Hio, 0x28); + +} // namespace ksys