mirror of
https://github.com/skyline-emu/skyline.git
synced 2024-11-26 00:34:18 +01:00
Stub out InlineKeyboard instead of throwing an error
This commit is contained in:
parent
2a421e7146
commit
c3924e0f08
@ -68,12 +68,16 @@ namespace skyline::applet::swkbd {
|
||||
std::move(onAppletStateChanged),
|
||||
std::move(onNormalDataPushFromApplet),
|
||||
std::move(onInteractiveDataPushFromApplet),
|
||||
appletMode} {
|
||||
if (appletMode != service::applet::LibraryAppletMode::AllForeground)
|
||||
throw exception("Inline Software Keyboard not implemeted");
|
||||
appletMode}, mode{appletMode} {
|
||||
}
|
||||
|
||||
Result SoftwareKeyboardApplet::Start() {
|
||||
if (mode != service::applet::LibraryAppletMode::AllForeground) {
|
||||
Logger::Warn("Stubbing out InlineKeyboard!");
|
||||
SendResult();
|
||||
return {};
|
||||
}
|
||||
|
||||
std::scoped_lock lock{normalInputDataMutex};
|
||||
auto commonArgs{normalInputData.front()->GetSpan().as<service::applet::CommonArguments>()};
|
||||
normalInputData.pop();
|
||||
|
@ -74,6 +74,7 @@ namespace skyline::applet::swkbd {
|
||||
#pragma pack(pop)
|
||||
|
||||
KeyboardConfigVB config{};
|
||||
service::applet::LibraryAppletMode mode{};
|
||||
bool validationPending{};
|
||||
std::u16string currentText{};
|
||||
CloseResult currentResult{};
|
||||
|
Loading…
Reference in New Issue
Block a user