frontend/applets: misc fixes

* Renamed applet to applets

* Added log classes Applet and Applet.SWKBD

* Fixes to get it compile
This commit is contained in:
zhupengfei 2018-06-20 12:01:54 +08:00
parent caacefcc2e
commit 18664c719e
No known key found for this signature in database
GPG key ID: 85B82A3E62174206
9 changed files with 147 additions and 50 deletions

View file

@ -1,20 +0,0 @@
// Copyright 2018 Citra Emulator Project
// Licensed under GPLv2 or any later version
// Refer to the license.txt file included.
#include <unordered_map>
#include "core/frontend/interface.h"
namespace Frontend {
std::unordered_map<AppletType, std::shared_ptr<AppletInterface>> registered_applets;
void RegisterFrontendApplet(std::shared_ptr<AppletInterface> applet, AppletType type) {
registered_applets[type] = applet;
}
void UnregisterFrontendApplet(AppletType type) {
registered_applets.erase(type);
}
} // namespace Frontend