From 169c7ae4a2e892a78babe26b450a2846ea0d8e38 Mon Sep 17 00:00:00 2001 From: hatal175 Date: Wed, 24 Sep 2025 05:27:24 +0300 Subject: JHOSTIO almost comletely linked (#2689) --- src/JSystem/JHostIO/JORFile.cpp | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'src/JSystem/JHostIO/JORFile.cpp') diff --git a/src/JSystem/JHostIO/JORFile.cpp b/src/JSystem/JHostIO/JORFile.cpp index f29c9f9952..b412958d88 100644 --- a/src/JSystem/JHostIO/JORFile.cpp +++ b/src/JSystem/JHostIO/JORFile.cpp @@ -9,7 +9,8 @@ JORFile::JORFile() mFileLength(0), mStatus(EStatus_WAIT), mNFileName(0), - field_0x18(0) {} + field_0x18(0), + mDataStream() {} int JORFile::countMaskSize(const char* mask) { u32 var_r28 = 0; @@ -77,11 +78,11 @@ int JORFile::open(const char* path, u32 flags, const char* extMask, const char* return 1; } -// NONMATCHING, equivalent? void JORFile::close() { + JORMContext* mctx; if (mHandle != 0) { mStatus = EStatus_WAIT; - JORMContext* mctx = JORServer::getInstance()->attachMCTX(MCTX_MSG_FIO); + mctx = JORServer::getInstance()->attachMCTX(MCTX_MSG_FIO); mctx->closeFile(this); JORServer::getInstance()->releaseMCTX(mctx); -- cgit v1.2.3