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

Function UnmountForegroundTitle

src/Cafe/CafeSystem.cpp:702–725  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

700 }
701
702 void UnmountForegroundTitle()
703 {
704 if(sLaunchModeIsStandalone)
705 return;
706 cemu_assert_debug(sGameInfo_ForegroundTitle.IsValid()); // unmounting title which was never mounted?
707 if (!sGameInfo_ForegroundTitle.IsValid())
708 return;
709 sGameInfo_ForegroundTitle.GetBase().Unmount("/vol/content");
710 sGameInfo_ForegroundTitle.GetBase().Unmount(GetInternalVirtualCodeFolder());
711 if (sGameInfo_ForegroundTitle.HasUpdate())
712 {
713 if(auto& update = sGameInfo_ForegroundTitle.GetUpdate(); update.IsValid())
714 {
715 update.Unmount("/vol/content");
716 update.Unmount(GetInternalVirtualCodeFolder());
717 }
718 }
719 auto aocList = sGameInfo_ForegroundTitle.GetAOC();
720 if (!aocList.empty())
721 {
722 TitleInfo& titleAOC = aocList[0];
723 titleAOC.Unmount(fmt::format("/vol/aoc{:016x}", titleAOC.GetAppTitleId()));
724 }
725 }
726
727 PREPARE_STATUS_CODE SetupExecutable()
728 {

Callers 1

UnmountCurrentTitleFunction · 0.85

Calls 9

cemu_assert_debugFunction · 0.85
formatFunction · 0.85
UnmountMethod · 0.80
HasUpdateMethod · 0.80
GetAOCMethod · 0.80
GetAppTitleIdMethod · 0.80
IsValidMethod · 0.45
emptyMethod · 0.45

Tested by

no test coverage detected