Link DolphinCDvdFile

Former-commit-id: 47cf20409d082764145b30afe3a7a0ec6ac92be6
This commit is contained in:
Luke Street 2023-10-11 17:32:57 -04:00
parent 994e423a0b
commit fcca7681cc
4 changed files with 11 additions and 10 deletions

View File

@ -3,7 +3,8 @@ hash: 949c5ed7368aef547e0b0db1c3678f466e2afbff
symbols: config/GM8E01_00/symbols.txt
splits: config/GM8E01_00/splits.txt
mw_comment_version: 8
fill_gaps: false
quick_analysis: true # Faster reruns after full analysis
fill_gaps: false # Alignments known
#modules:
#- object: orig/GM8E01_00/files/NESemuP.rel

View File

@ -905,7 +905,7 @@ config.libs = [
Object(NonMatching, "Kyoto/DolphinCMemoryCardSys.cpp"),
Object(Matching, "Kyoto/Input/DolphinIController.cpp"),
Object(Matching, "Kyoto/Input/CDolphinController.cpp"),
Object(NonMatching, "Kyoto/DolphinCDvdFile.cpp"),
Object(Matching, "Kyoto/DolphinCDvdFile.cpp"),
Object(NonMatching, "Kyoto/Alloc/CMediumAllocPool.cpp"),
Object(Matching, "Kyoto/Alloc/CSmallAllocPool.cpp"),
Object(NonMatching, "Kyoto/Alloc/CGameAllocator.cpp"),

View File

@ -21,7 +21,7 @@ public:
void PostCancelRequest();
int GetMediaType() const;
DVDFileInfo& FileInfo() { return mFileInfo; }
DVDFileInfo* FileInfo() { return &mFileInfo; }
private:
DVDFileInfo mFileInfo;

View File

@ -127,7 +127,7 @@ void CDvdFile::TryARAMFile() {
if (CARAMManager::GetInvalidAlloc() == x4_) {
return;
}
xc_ = new CDvdFileARAM();
xc_ = NEW CDvdFileARAM();
CDvdFileARAM* arfile = xc_.get();
arfile->x5c_file = this;
arfile->x78_ = true;
@ -254,13 +254,13 @@ CDvdRequest* CDvdFile::AsyncSeekRead(void* dest, uint len, ESeekOrigin origin, i
if (x8_) {
int roundedLen = (len + 31) & ~31;
DCFlushRange(dest, roundedLen);
request = new CARAMDvdRequest(
request = NEW CARAMDvdRequest(
CARAMManager::DMAToMRAM(x4_ + x10_offset, dest, roundedLen, CARAMManager::kDMAPrio_One));
} else {
CRealDvdRequest* req = new CRealDvdRequest();
DVDFileInfo& info = req->FileInfo();
DVDFastOpen(x0_fileEntry, &info);
DVDReadAsync(&info, dest, (len + 31) & ~31, x10_offset, internalCallback);
CRealDvdRequest* req = NEW CRealDvdRequest();
DVDFileInfo* info = req->FileInfo();
DVDFastOpen(x0_fileEntry, info);
DVDReadAsync(info, dest, (len + 31) & ~31, x10_offset, internalCallback);
request = req;
}