mirror of
https://git.eden-emu.dev/eden-emu/eden
synced 2026-05-17 18:56:59 +02:00
[am] Improve some error messages (#2996)
Reviewed-on: https://git.eden-emu.dev/eden-emu/eden/pulls/2996 Co-authored-by: MaranBr <maranbr@outlook.com> Co-committed-by: MaranBr <maranbr@outlook.com>
This commit is contained in:
parent
42863027e2
commit
7764cdd57e
4 changed files with 7 additions and 9 deletions
|
|
@ -237,7 +237,6 @@ WebBrowser::~WebBrowser() = default;
|
||||||
|
|
||||||
void WebBrowser::Initialize() {
|
void WebBrowser::Initialize() {
|
||||||
if (Settings::values.disable_web_applet) {
|
if (Settings::values.disable_web_applet) {
|
||||||
LOG_INFO(Service_AM, "Web Browser Applet disabled, skipping.");
|
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -305,6 +304,7 @@ void WebBrowser::ExecuteInteractive() {
|
||||||
|
|
||||||
void WebBrowser::Execute() {
|
void WebBrowser::Execute() {
|
||||||
if (Settings::values.disable_web_applet) {
|
if (Settings::values.disable_web_applet) {
|
||||||
|
LOG_WARNING(Service_AM, "(STUBBED) called, Web Browser Applet is disabled");
|
||||||
WebBrowserExit(WebExitReason::EndButtonPressed);
|
WebBrowserExit(WebExitReason::EndButtonPressed);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -229,8 +229,7 @@ std::shared_ptr<FrontendApplet> FrontendAppletHolder::GetApplet(std::shared_ptr<
|
||||||
case AppletId::ProfileSelect:
|
case AppletId::ProfileSelect:
|
||||||
return std::make_shared<ProfileSelect>(system, applet, mode, *frontend.profile_select);
|
return std::make_shared<ProfileSelect>(system, applet, mode, *frontend.profile_select);
|
||||||
case AppletId::SoftwareKeyboard:
|
case AppletId::SoftwareKeyboard:
|
||||||
return std::make_shared<SoftwareKeyboard>(system, applet, mode,
|
return std::make_shared<SoftwareKeyboard>(system, applet, mode, *frontend.software_keyboard);
|
||||||
*frontend.software_keyboard);
|
|
||||||
case AppletId::MiiEdit:
|
case AppletId::MiiEdit:
|
||||||
return std::make_shared<MiiEdit>(system, applet, mode, *frontend.mii_edit);
|
return std::make_shared<MiiEdit>(system, applet, mode, *frontend.mii_edit);
|
||||||
case AppletId::Web:
|
case AppletId::Web:
|
||||||
|
|
@ -244,9 +243,7 @@ std::shared_ptr<FrontendApplet> FrontendAppletHolder::GetApplet(std::shared_ptr<
|
||||||
case AppletId::NetConnect:
|
case AppletId::NetConnect:
|
||||||
return std::make_shared<NetConnect>(system, applet, mode, *frontend.net_connect);
|
return std::make_shared<NetConnect>(system, applet, mode, *frontend.net_connect);
|
||||||
default:
|
default:
|
||||||
UNIMPLEMENTED_MSG(
|
LOG_ERROR(Service_AM, "No backend implementation exists for applet_id={:02X}. Falling back to stub applet", static_cast<u8>(id));
|
||||||
"No backend implementation exists for applet_id={:02X}! Falling back to stub applet.",
|
|
||||||
static_cast<u8>(id));
|
|
||||||
return std::make_shared<StubApplet>(system, applet, id, mode);
|
return std::make_shared<StubApplet>(system, applet, id, mode);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -59,7 +59,7 @@ static Shader::TextureType ConvertTextureType(const Tegra::Texture::TICEntry& en
|
||||||
case Tegra::Texture::TextureType::TextureCubeArray:
|
case Tegra::Texture::TextureType::TextureCubeArray:
|
||||||
return Shader::TextureType::ColorArrayCube;
|
return Shader::TextureType::ColorArrayCube;
|
||||||
default:
|
default:
|
||||||
LOG_ERROR(Shader, "Invalid texture_type={}, falling back to texture_type={}", static_cast<int>(entry.texture_type.Value()), Shader::TextureType::Color2D);
|
LOG_ERROR(Shader, "Invalid texture_type={}. Falling back to texture_type={}", static_cast<int>(entry.texture_type.Value()), Shader::TextureType::Color2D);
|
||||||
return Shader::TextureType::Color2D;
|
return Shader::TextureType::Color2D;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -75,9 +75,10 @@ void ConfigureDebug::SetConfiguration() {
|
||||||
ui->disable_loop_safety_checks->setChecked(Settings::values.disable_shader_loop_safety_checks.GetValue());
|
ui->disable_loop_safety_checks->setChecked(Settings::values.disable_shader_loop_safety_checks.GetValue());
|
||||||
ui->extended_logging->setChecked(Settings::values.extended_logging.GetValue());
|
ui->extended_logging->setChecked(Settings::values.extended_logging.GetValue());
|
||||||
ui->perform_vulkan_check->setChecked(Settings::values.perform_vulkan_check.GetValue());
|
ui->perform_vulkan_check->setChecked(Settings::values.perform_vulkan_check.GetValue());
|
||||||
|
#ifdef YUZU_USE_QT_WEB_ENGINE
|
||||||
ui->disable_web_applet->setChecked(Settings::values.disable_web_applet.GetValue());
|
ui->disable_web_applet->setChecked(Settings::values.disable_web_applet.GetValue());
|
||||||
|
#else
|
||||||
#ifndef YUZU_USE_QT_WEB_ENGINE
|
ui->disable_web_applet->setChecked(true);
|
||||||
ui->disable_web_applet->setVisible(false);
|
ui->disable_web_applet->setVisible(false);
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue