diff options
| author | 2023-12-31 09:40:32 -0500 | |
|---|---|---|
| committer | 2024-01-29 18:43:45 -0500 | |
| commit | dfb9fa0144ca79e596f6f2b1bc960b1a44745aa6 (patch) | |
| tree | b90633109392383feaa8420e984c40c9a1799903 /src/android | |
| parent | am: add new datatypes for per-applet state (diff) | |
| download | yuzu-dfb9fa0144ca79e596f6f2b1bc960b1a44745aa6.tar.gz yuzu-dfb9fa0144ca79e596f6f2b1bc960b1a44745aa6.tar.xz yuzu-dfb9fa0144ca79e596f6f2b1bc960b1a44745aa6.zip | |
am: re-namespace frontend applets to frontend directory
Diffstat (limited to 'src/android')
| -rw-r--r-- | src/android/app/src/main/jni/applets/software_keyboard.cpp | 12 | ||||
| -rw-r--r-- | src/android/app/src/main/jni/applets/software_keyboard.h | 4 | ||||
| -rw-r--r-- | src/android/app/src/main/jni/native.cpp | 12 |
3 files changed, 14 insertions, 14 deletions
diff --git a/src/android/app/src/main/jni/applets/software_keyboard.cpp b/src/android/app/src/main/jni/applets/software_keyboard.cpp index 74e040478..9943483e8 100644 --- a/src/android/app/src/main/jni/applets/software_keyboard.cpp +++ b/src/android/app/src/main/jni/applets/software_keyboard.cpp | |||
| @@ -82,7 +82,7 @@ AndroidKeyboard::ResultData AndroidKeyboard::ResultData::CreateFromFrontend(jobj | |||
| 82 | const jstring string = reinterpret_cast<jstring>(env->GetObjectField( | 82 | const jstring string = reinterpret_cast<jstring>(env->GetObjectField( |
| 83 | object, env->GetFieldID(s_keyboard_data_class, "text", "Ljava/lang/String;"))); | 83 | object, env->GetFieldID(s_keyboard_data_class, "text", "Ljava/lang/String;"))); |
| 84 | return ResultData{GetJString(env, string), | 84 | return ResultData{GetJString(env, string), |
| 85 | static_cast<Service::AM::Applets::SwkbdResult>(env->GetIntField( | 85 | static_cast<Service::AM::Frontend::SwkbdResult>(env->GetIntField( |
| 86 | object, env->GetFieldID(s_keyboard_data_class, "result", "I")))}; | 86 | object, env->GetFieldID(s_keyboard_data_class, "result", "I")))}; |
| 87 | } | 87 | } |
| 88 | 88 | ||
| @@ -149,7 +149,7 @@ void AndroidKeyboard::ShowNormalKeyboard() const { | |||
| 149 | } | 149 | } |
| 150 | 150 | ||
| 151 | void AndroidKeyboard::ShowTextCheckDialog( | 151 | void AndroidKeyboard::ShowTextCheckDialog( |
| 152 | Service::AM::Applets::SwkbdTextCheckResult text_check_result, | 152 | Service::AM::Frontend::SwkbdTextCheckResult text_check_result, |
| 153 | std::u16string text_check_message) const { | 153 | std::u16string text_check_message) const { |
| 154 | LOG_WARNING(Frontend, "(STUBBED) called, backend requested to show the text check dialog."); | 154 | LOG_WARNING(Frontend, "(STUBBED) called, backend requested to show the text check dialog."); |
| 155 | } | 155 | } |
| @@ -204,7 +204,7 @@ void AndroidKeyboard::InlineTextChanged( | |||
| 204 | "\ncursor_position={}", | 204 | "\ncursor_position={}", |
| 205 | Common::UTF16ToUTF8(text_parameters.input_text), text_parameters.cursor_position); | 205 | Common::UTF16ToUTF8(text_parameters.input_text), text_parameters.cursor_position); |
| 206 | 206 | ||
| 207 | submit_inline_callback(Service::AM::Applets::SwkbdReplyType::ChangedString, | 207 | submit_inline_callback(Service::AM::Frontend::SwkbdReplyType::ChangedString, |
| 208 | text_parameters.input_text, text_parameters.cursor_position); | 208 | text_parameters.input_text, text_parameters.cursor_position); |
| 209 | } | 209 | } |
| 210 | 210 | ||
| @@ -219,7 +219,7 @@ void AndroidKeyboard::SubmitInlineKeyboardText(std::u16string submitted_text) { | |||
| 219 | 219 | ||
| 220 | m_current_text += submitted_text; | 220 | m_current_text += submitted_text; |
| 221 | 221 | ||
| 222 | submit_inline_callback(Service::AM::Applets::SwkbdReplyType::ChangedString, m_current_text, | 222 | submit_inline_callback(Service::AM::Frontend::SwkbdReplyType::ChangedString, m_current_text, |
| 223 | m_current_text.size()); | 223 | m_current_text.size()); |
| 224 | } | 224 | } |
| 225 | 225 | ||
| @@ -236,12 +236,12 @@ void AndroidKeyboard::SubmitInlineKeyboardInput(int key_code) { | |||
| 236 | case KEYCODE_BACK: | 236 | case KEYCODE_BACK: |
| 237 | case KEYCODE_ENTER: | 237 | case KEYCODE_ENTER: |
| 238 | m_is_inline_active = false; | 238 | m_is_inline_active = false; |
| 239 | submit_inline_callback(Service::AM::Applets::SwkbdReplyType::DecidedEnter, m_current_text, | 239 | submit_inline_callback(Service::AM::Frontend::SwkbdReplyType::DecidedEnter, m_current_text, |
| 240 | static_cast<s32>(m_current_text.size())); | 240 | static_cast<s32>(m_current_text.size())); |
| 241 | break; | 241 | break; |
| 242 | case KEYCODE_DEL: | 242 | case KEYCODE_DEL: |
| 243 | m_current_text.pop_back(); | 243 | m_current_text.pop_back(); |
| 244 | submit_inline_callback(Service::AM::Applets::SwkbdReplyType::ChangedString, m_current_text, | 244 | submit_inline_callback(Service::AM::Frontend::SwkbdReplyType::ChangedString, m_current_text, |
| 245 | m_current_text.size()); | 245 | m_current_text.size()); |
| 246 | break; | 246 | break; |
| 247 | } | 247 | } |
diff --git a/src/android/app/src/main/jni/applets/software_keyboard.h b/src/android/app/src/main/jni/applets/software_keyboard.h index b2fb59b68..2affc01f6 100644 --- a/src/android/app/src/main/jni/applets/software_keyboard.h +++ b/src/android/app/src/main/jni/applets/software_keyboard.h | |||
| @@ -24,7 +24,7 @@ public: | |||
| 24 | 24 | ||
| 25 | void ShowNormalKeyboard() const override; | 25 | void ShowNormalKeyboard() const override; |
| 26 | 26 | ||
| 27 | void ShowTextCheckDialog(Service::AM::Applets::SwkbdTextCheckResult text_check_result, | 27 | void ShowTextCheckDialog(Service::AM::Frontend::SwkbdTextCheckResult text_check_result, |
| 28 | std::u16string text_check_message) const override; | 28 | std::u16string text_check_message) const override; |
| 29 | 29 | ||
| 30 | void ShowInlineKeyboard( | 30 | void ShowInlineKeyboard( |
| @@ -45,7 +45,7 @@ private: | |||
| 45 | static ResultData CreateFromFrontend(jobject object); | 45 | static ResultData CreateFromFrontend(jobject object); |
| 46 | 46 | ||
| 47 | std::string text; | 47 | std::string text; |
| 48 | Service::AM::Applets::SwkbdResult result{}; | 48 | Service::AM::Frontend::SwkbdResult result{}; |
| 49 | }; | 49 | }; |
| 50 | 50 | ||
| 51 | void SubmitNormalText(const ResultData& result) const; | 51 | void SubmitNormalText(const ResultData& result) const; |
diff --git a/src/android/app/src/main/jni/native.cpp b/src/android/app/src/main/jni/native.cpp index 64627db88..1da510b7a 100644 --- a/src/android/app/src/main/jni/native.cpp +++ b/src/android/app/src/main/jni/native.cpp | |||
| @@ -42,14 +42,14 @@ | |||
| 42 | #include "core/frontend/applets/cabinet.h" | 42 | #include "core/frontend/applets/cabinet.h" |
| 43 | #include "core/frontend/applets/controller.h" | 43 | #include "core/frontend/applets/controller.h" |
| 44 | #include "core/frontend/applets/error.h" | 44 | #include "core/frontend/applets/error.h" |
| 45 | #include "core/frontend/applets/general_frontend.h" | 45 | #include "core/frontend/applets/general.h" |
| 46 | #include "core/frontend/applets/mii_edit.h" | 46 | #include "core/frontend/applets/mii_edit.h" |
| 47 | #include "core/frontend/applets/profile_select.h" | 47 | #include "core/frontend/applets/profile_select.h" |
| 48 | #include "core/frontend/applets/software_keyboard.h" | 48 | #include "core/frontend/applets/software_keyboard.h" |
| 49 | #include "core/frontend/applets/web_browser.h" | 49 | #include "core/frontend/applets/web_browser.h" |
| 50 | #include "core/hle/service/am/applet_ae.h" | 50 | #include "core/hle/service/am/applet_ae.h" |
| 51 | #include "core/hle/service/am/applet_oe.h" | 51 | #include "core/hle/service/am/applet_oe.h" |
| 52 | #include "core/hle/service/am/applets/applets.h" | 52 | #include "core/hle/service/am/frontend/applets.h" |
| 53 | #include "core/hle/service/filesystem/filesystem.h" | 53 | #include "core/hle/service/filesystem/filesystem.h" |
| 54 | #include "core/loader/loader.h" | 54 | #include "core/loader/loader.h" |
| 55 | #include "frontend_common/config.h" | 55 | #include "frontend_common/config.h" |
| @@ -226,7 +226,7 @@ Core::SystemResultStatus EmulationSession::InitializeEmulation(const std::string | |||
| 226 | m_system.ApplySettings(); | 226 | m_system.ApplySettings(); |
| 227 | Settings::LogSettings(); | 227 | Settings::LogSettings(); |
| 228 | m_system.HIDCore().ReloadInputDevices(); | 228 | m_system.HIDCore().ReloadInputDevices(); |
| 229 | m_system.SetAppletFrontendSet({ | 229 | m_system.SetFrontendAppletSet({ |
| 230 | nullptr, // Amiibo Settings | 230 | nullptr, // Amiibo Settings |
| 231 | nullptr, // Controller Selector | 231 | nullptr, // Controller Selector |
| 232 | nullptr, // Error Display | 232 | nullptr, // Error Display |
| @@ -809,13 +809,13 @@ jstring Java_org_yuzu_yuzu_1emu_NativeLibrary_getAppletLaunchPath(JNIEnv* env, j | |||
| 809 | 809 | ||
| 810 | void Java_org_yuzu_yuzu_1emu_NativeLibrary_setCurrentAppletId(JNIEnv* env, jclass clazz, | 810 | void Java_org_yuzu_yuzu_1emu_NativeLibrary_setCurrentAppletId(JNIEnv* env, jclass clazz, |
| 811 | jint jappletId) { | 811 | jint jappletId) { |
| 812 | EmulationSession::GetInstance().System().GetAppletManager().SetCurrentAppletId( | 812 | EmulationSession::GetInstance().System().GetFrontendAppletHolder().SetCurrentAppletId( |
| 813 | static_cast<Service::AM::Applets::AppletId>(jappletId)); | 813 | static_cast<Service::AM::AppletId>(jappletId)); |
| 814 | } | 814 | } |
| 815 | 815 | ||
| 816 | void Java_org_yuzu_yuzu_1emu_NativeLibrary_setCabinetMode(JNIEnv* env, jclass clazz, | 816 | void Java_org_yuzu_yuzu_1emu_NativeLibrary_setCabinetMode(JNIEnv* env, jclass clazz, |
| 817 | jint jcabinetMode) { | 817 | jint jcabinetMode) { |
| 818 | EmulationSession::GetInstance().System().GetAppletManager().SetCabinetMode( | 818 | EmulationSession::GetInstance().System().GetFrontendAppletHolder().SetCabinetMode( |
| 819 | static_cast<Service::NFP::CabinetMode>(jcabinetMode)); | 819 | static_cast<Service::NFP::CabinetMode>(jcabinetMode)); |
| 820 | } | 820 | } |
| 821 | 821 | ||