| 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 | { |
no test coverage detected