MCPcopy Create free account
hub / github.com/cemu-project/Cemu / MlcStorageMountTitle

Function MlcStorageMountTitle

src/Cafe/CafeSystem.cpp:1048–1067  ·  view source on GitHub ↗

mount title to our virtual MLC storage /vol/storage_mlc01/ /title/ /

Source from the content-addressed store, hash-verified

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 {

Callers 2

InitVirtualMlcStorageFunction · 0.85
MlcStorageMountAllTitlesFunction · 0.85

Calls 9

cemu_assert_suspiciousFunction · 0.85
GetMlcStoragePathFunction · 0.85
GetAppTitleIdMethod · 0.80
MountMethod · 0.80
cemuLog_logFunction · 0.50
IsValidMethod · 0.45
findMethod · 0.45
endMethod · 0.45
emplaceMethod · 0.45

Tested by

no test coverage detected