mirror of
https://github.com/cemu-project/Cemu.git
synced 2026-10-31 03:26:50 +01:00
mic+nn_aoc+nn_fp: Reset more state on title start
This commit is contained in:
1 parent
bfb154520e
commit
fe5ef4bf65
3 files changed
+10
No files matched your search
@@ -465,8 +465,15 @@ namespace mic
|
||||
return "mic";
|
||||
}
|
||||
|
||||
void RPLUnmapped() override
|
||||
{
|
||||
std::unique_lock lock(g_audioInputMutex);
|
||||
mic_updateDevicePlayState(false);
|
||||
}
|
||||
|
||||
void RPLMapped() override
|
||||
{
|
||||
MICStatus = {};
|
||||
osLib_addFunction("mic", "MICInit", micExport_MICInit);
|
||||
osLib_addFunction("mic", "MICOpen", micExport_MICOpen);
|
||||
osLib_addFunction("mic", "MICClose", micExport_MICClose);
|
||||
|
||||
@@ -159,6 +159,8 @@ namespace nn
|
||||
|
||||
void RPLMapped() override
|
||||
{
|
||||
sAocCache.clear();
|
||||
sAocCacheGenerated = false;
|
||||
cafeExportRegister("nn_aoc", AOC_CalculateWorkBufferSize, LogType::NN_AOC);
|
||||
cafeExportRegister("nn_aoc", AOC_ListTitle, LogType::NN_AOC);
|
||||
|
||||
|
||||
@@ -781,6 +781,7 @@ namespace nn
|
||||
g_fp.initCounter = 0;
|
||||
g_fp.isAdminMode = false;
|
||||
g_fp.isLoggedIn = false;
|
||||
g_fp.fpdHandle = 0;
|
||||
g_fp.getNotificationCalled = false;
|
||||
g_fp.notificationHandler = nullptr;
|
||||
g_fp.notificationHandlerParam = nullptr;
|
||||
|
||||
Reference in new issue
Block a user