This commit is contained in:
robojumper
2024-05-17 19:42:12 +02:00
parent dbccf07512
commit 0be8a31d4b
2 changed files with 4 additions and 4 deletions
+1 -1
View File
@@ -100,7 +100,7 @@ public:
int mEntryNum;
EGG::Archive *mDataPtr;
EGG::Heap *mHeap;
u32 field_0x18;
u32 mAmountRead;
};
class mDvd_toMainRam_base_c : public mDvd_command_c {
+3 -3
View File
@@ -368,7 +368,7 @@ mDvd_mountMemArchive_c::mDvd_mountMemArchive_c(int mountDirection) {
mEntryNum = -1;
mDataPtr = nullptr;
mHeap = nullptr;
field_0x18 = 0;
mAmountRead = 0;
}
/** 802ef7c0 */
@@ -480,7 +480,7 @@ u32 mDvd_mountMemArchive_c::execute() {
archive = nullptr;
allocDirection = mMountDirection == 1 ? EGG::DvdRipper::ALLOC_DIR_TOP : EGG::DvdRipper::ALLOC_DIR_BOTTOM;
data = mDvd::loadToMainRAM(mEntryNum, nullptr, heap, allocDirection, 0, &field_0x18, 0, mCompressionType);
data = mDvd::loadToMainRAM(mEntryNum, nullptr, heap, allocDirection, 0, &mAmountRead, 0, mCompressionType);
if (data != nullptr) {
archive = EGG::Archive::mount(data, heap, mMountDirection == 1 ? 4 : -4);
}
@@ -491,7 +491,7 @@ u32 mDvd_mountMemArchive_c::execute() {
if (data != nullptr) {
delete data;
}
field_0x18 = 0;
mAmountRead = 0;
}
waitDone();
return (bool)mDataPtr;