Remove some global usages of system (#6688)

This commit is contained in:
Narr the Reg
2023-07-11 21:43:28 -07:00
committed by GitHub
parent 943d5eeddf
commit d702915624
14 changed files with 57 additions and 35 deletions
@@ -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
+1 -1
View File
@@ -9,5 +9,5 @@ namespace Frontend {
* Registers default, frontend-independent applet implementations.
* Will be replaced later if any frontend-specific implementation is available.
*/
void RegisterDefaultApplets();
void RegisterDefaultApplets(Core::System& system);
} // namespace Frontend