diff options
| author | 2023-02-13 11:21:43 -0500 | |
|---|---|---|
| committer | 2023-02-13 19:03:12 -0500 | |
| commit | ceda2d280e8a3030c1e23083c5cea9158387fe4c (patch) | |
| tree | 8041460840ed81d4cb74d87eecfb8fb720cdfa15 /src/core/hle/service/filesystem | |
| parent | kernel: use GetCurrentProcess (diff) | |
| download | yuzu-ceda2d280e8a3030c1e23083c5cea9158387fe4c.tar.gz yuzu-ceda2d280e8a3030c1e23083c5cea9158387fe4c.tar.xz yuzu-ceda2d280e8a3030c1e23083c5cea9158387fe4c.zip | |
general: rename CurrentProcess to ApplicationProcess
Diffstat (limited to 'src/core/hle/service/filesystem')
| -rw-r--r-- | src/core/hle/service/filesystem/filesystem.cpp | 4 | ||||
| -rw-r--r-- | src/core/hle/service/filesystem/fsp_srv.cpp | 5 |
2 files changed, 5 insertions, 4 deletions
diff --git a/src/core/hle/service/filesystem/filesystem.cpp b/src/core/hle/service/filesystem/filesystem.cpp index 11c604a0f..177447bc1 100644 --- a/src/core/hle/service/filesystem/filesystem.cpp +++ b/src/core/hle/service/filesystem/filesystem.cpp | |||
| @@ -317,7 +317,7 @@ ResultVal<FileSys::VirtualFile> FileSystemController::OpenRomFSCurrentProcess() | |||
| 317 | return ResultUnknown; | 317 | return ResultUnknown; |
| 318 | } | 318 | } |
| 319 | 319 | ||
| 320 | return romfs_factory->OpenCurrentProcess(system.GetCurrentProcessProgramID()); | 320 | return romfs_factory->OpenCurrentProcess(system.GetApplicationProcessProgramID()); |
| 321 | } | 321 | } |
| 322 | 322 | ||
| 323 | ResultVal<FileSys::VirtualFile> FileSystemController::OpenPatchedRomFS( | 323 | ResultVal<FileSys::VirtualFile> FileSystemController::OpenPatchedRomFS( |
| @@ -502,7 +502,7 @@ FileSys::SaveDataSize FileSystemController::ReadSaveDataSize(FileSys::SaveDataTy | |||
| 502 | const auto res = system.GetAppLoader().ReadControlData(nacp); | 502 | const auto res = system.GetAppLoader().ReadControlData(nacp); |
| 503 | 503 | ||
| 504 | if (res != Loader::ResultStatus::Success) { | 504 | if (res != Loader::ResultStatus::Success) { |
| 505 | const FileSys::PatchManager pm{system.GetCurrentProcessProgramID(), | 505 | const FileSys::PatchManager pm{system.GetApplicationProcessProgramID(), |
| 506 | system.GetFileSystemController(), | 506 | system.GetFileSystemController(), |
| 507 | system.GetContentProvider()}; | 507 | system.GetContentProvider()}; |
| 508 | const auto metadata = pm.GetControlMetadata(); | 508 | const auto metadata = pm.GetControlMetadata(); |
diff --git a/src/core/hle/service/filesystem/fsp_srv.cpp b/src/core/hle/service/filesystem/fsp_srv.cpp index 447d624e1..e76346ca9 100644 --- a/src/core/hle/service/filesystem/fsp_srv.cpp +++ b/src/core/hle/service/filesystem/fsp_srv.cpp | |||
| @@ -1036,8 +1036,9 @@ void FSP_SRV::OpenDataStorageWithProgramIndex(Kernel::HLERequestContext& ctx) { | |||
| 1036 | 1036 | ||
| 1037 | LOG_DEBUG(Service_FS, "called, program_index={}", program_index); | 1037 | LOG_DEBUG(Service_FS, "called, program_index={}", program_index); |
| 1038 | 1038 | ||
| 1039 | auto patched_romfs = fsc.OpenPatchedRomFSWithProgramIndex( | 1039 | auto patched_romfs = |
| 1040 | system.GetCurrentProcessProgramID(), program_index, FileSys::ContentRecordType::Program); | 1040 | fsc.OpenPatchedRomFSWithProgramIndex(system.GetApplicationProcessProgramID(), program_index, |
| 1041 | FileSys::ContentRecordType::Program); | ||
| 1041 | 1042 | ||
| 1042 | if (patched_romfs.Failed()) { | 1043 | if (patched_romfs.Failed()) { |
| 1043 | // TODO: Find the right error code to use here | 1044 | // TODO: Find the right error code to use here |