Stub out InlineKeyboard instead of throwing an error

This commit is contained in:
Maccraft123 2022-11-28 00:08:42 +01:00 committed by Billy Laws
parent 2a421e7146
commit c3924e0f08
2 changed files with 8 additions and 3 deletions

View File

@ -68,12 +68,16 @@ namespace skyline::applet::swkbd {
std::move(onAppletStateChanged), std::move(onAppletStateChanged),
std::move(onNormalDataPushFromApplet), std::move(onNormalDataPushFromApplet),
std::move(onInteractiveDataPushFromApplet), std::move(onInteractiveDataPushFromApplet),
appletMode} { appletMode}, mode{appletMode} {
if (appletMode != service::applet::LibraryAppletMode::AllForeground)
throw exception("Inline Software Keyboard not implemeted");
} }
Result SoftwareKeyboardApplet::Start() { Result SoftwareKeyboardApplet::Start() {
if (mode != service::applet::LibraryAppletMode::AllForeground) {
Logger::Warn("Stubbing out InlineKeyboard!");
SendResult();
return {};
}
std::scoped_lock lock{normalInputDataMutex}; std::scoped_lock lock{normalInputDataMutex};
auto commonArgs{normalInputData.front()->GetSpan().as<service::applet::CommonArguments>()}; auto commonArgs{normalInputData.front()->GetSpan().as<service::applet::CommonArguments>()};
normalInputData.pop(); normalInputData.pop();

View File

@ -74,6 +74,7 @@ namespace skyline::applet::swkbd {
#pragma pack(pop) #pragma pack(pop)
KeyboardConfigVB config{}; KeyboardConfigVB config{};
service::applet::LibraryAppletMode mode{};
bool validationPending{}; bool validationPending{};
std::u16string currentText{}; std::u16string currentText{};
CloseResult currentResult{}; CloseResult currentResult{};