mount title to our virtual MLC storage /vol/storage_mlc01/ /title/ /
| 1046 | // mount title to our virtual MLC storage |
| 1047 | // /vol/storage_mlc01/<usr or sys>/title/<titleIdHigh>/<titleIdLow> |
| 1048 | void MlcStorageMountTitle(TitleInfo& titleInfo) |
| 1049 | { |
| 1050 | if (!titleInfo.IsValid()) |
| 1051 | { |
| 1052 | cemu_assert_suspicious(); |
| 1053 | return; |
| 1054 | } |
| 1055 | TitleId titleId = titleInfo.GetAppTitleId(); |
| 1056 | if (m_mlcMountedTitles.find(titleId) != m_mlcMountedTitles.end()) |
| 1057 | return; |
| 1058 | std::string mlcStoragePath = GetMlcStoragePath(titleId); |
| 1059 | TitleInfo* mountTitleInfo = new TitleInfo(titleInfo); |
| 1060 | if (!mountTitleInfo->Mount(mlcStoragePath, "", FSC_PRIORITY_BASE)) |
| 1061 | { |
| 1062 | cemuLog_log(LogType::Force, "Failed to mount title to virtual storage"); |
| 1063 | delete mountTitleInfo; |
| 1064 | return; |
| 1065 | } |
| 1066 | m_mlcMountedTitles.emplace(titleId, mountTitleInfo); |
| 1067 | } |
| 1068 | |
| 1069 | void MlcStorageMountTitle(TitleId titleId) |
| 1070 | { |
no test coverage detected