mirror of
https://github.com/skyline-emu/skyline.git
synced 2024-12-28 22:25:30 +03: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(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();
|
||||||
|
@ -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{};
|
||||||
|
Loading…
Reference in New Issue
Block a user