Remove some global usages of system (#6688)

This commit is contained in:
Narr the Reg
2023-07-11 22:43:28 -06:00
committed by GitHub
parent 943d5eeddf
commit d702915624
14 changed files with 57 additions and 35 deletions

View File

@ -8,8 +8,8 @@
#include "core/frontend/applets/swkbd.h"
namespace Frontend {
void RegisterDefaultApplets() {
Core::System::GetInstance().RegisterSoftwareKeyboard(std::make_shared<DefaultKeyboard>());
Core::System::GetInstance().RegisterMiiSelector(std::make_shared<DefaultMiiSelector>());
void RegisterDefaultApplets(Core::System& system) {
system.RegisterSoftwareKeyboard(std::make_shared<DefaultKeyboard>());
system.RegisterMiiSelector(std::make_shared<DefaultMiiSelector>());
}
} // namespace Frontend