Merge branch 'master' into COMBO_BUTTON

This commit is contained in:
ADAS2024 2025-07-31 14:13:20 -04:00 committed by GitHub
commit ec41b6c67d
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
10 changed files with 25 additions and 21 deletions

View File

@ -160,11 +160,11 @@ void Config::ReadValues() {
ReadSetting("Renderer", Settings::values.render_3d); ReadSetting("Renderer", Settings::values.render_3d);
ReadSetting("Renderer", Settings::values.factor_3d); ReadSetting("Renderer", Settings::values.factor_3d);
std::string default_shader = "none (builtin)"; std::string default_shader = "None (builtin)";
if (Settings::values.render_3d.GetValue() == Settings::StereoRenderOption::Anaglyph) if (Settings::values.render_3d.GetValue() == Settings::StereoRenderOption::Anaglyph)
default_shader = "dubois (builtin)"; default_shader = "Dubois (builtin)";
else if (Settings::values.render_3d.GetValue() == Settings::StereoRenderOption::Interlaced) else if (Settings::values.render_3d.GetValue() == Settings::StereoRenderOption::Interlaced)
default_shader = "horizontal (builtin)"; default_shader = "Horizontal (builtin)";
Settings::values.pp_shader_name = Settings::values.pp_shader_name =
sdl2_config->GetString("Renderer", "pp_shader_name", default_shader); sdl2_config->GetString("Renderer", "pp_shader_name", default_shader);
ReadSetting("Renderer", Settings::values.filter_mode); ReadSetting("Renderer", Settings::values.filter_mode);

View File

@ -4,14 +4,14 @@
// Top-level build file where you can add configuration options common to all sub-projects/modules. // Top-level build file where you can add configuration options common to all sub-projects/modules.
plugins { plugins {
id("com.android.application") version "8.8.1" apply false id("com.android.application") version "8.11.1" apply false
id("com.android.library") version "8.8.1" apply false id("com.android.library") version "8.11.1" apply false
id("org.jetbrains.kotlin.android") version "2.0.20" apply false id("org.jetbrains.kotlin.android") version "2.0.20" apply false
id("org.jetbrains.kotlin.plugin.serialization") version "2.0.20" id("org.jetbrains.kotlin.plugin.serialization") version "2.0.20"
} }
tasks.register("clean").configure { tasks.register("clean").configure {
delete(rootProject.buildDir) delete(rootProject.layout.buildDirectory)
} }
buildscript { buildscript {

View File

@ -3,4 +3,4 @@ distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists distributionPath=wrapper/dists
zipStoreBase=GRADLE_USER_HOME zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists zipStorePath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-8.10.2-bin.zip distributionUrl=https\://services.gradle.org/distributions/gradle-8.13-bin.zip

View File

@ -11,7 +11,6 @@ AboutDialog::AboutDialog(QWidget* parent)
: QDialog(parent, Qt::WindowTitleHint | Qt::WindowCloseButtonHint | Qt::WindowSystemMenuHint), : QDialog(parent, Qt::WindowTitleHint | Qt::WindowCloseButtonHint | Qt::WindowSystemMenuHint),
ui(std::make_unique<Ui::AboutDialog>()) { ui(std::make_unique<Ui::AboutDialog>()) {
ui->setupUi(this); ui->setupUi(this);
ui->labelLogo->setPixmap(QIcon::fromTheme(QStringLiteral("azahar")).pixmap(200));
ui->labelBuildInfo->setText(ui->labelBuildInfo->text().arg( ui->labelBuildInfo->setText(ui->labelBuildInfo->text().arg(
QString::fromUtf8(Common::g_build_fullname), QString::fromUtf8(Common::g_scm_branch), QString::fromUtf8(Common::g_build_fullname), QString::fromUtf8(Common::g_scm_branch),
QString::fromUtf8(Common::g_scm_desc), QString::fromUtf8(Common::g_build_date).left(10))); QString::fromUtf8(Common::g_scm_desc), QString::fromUtf8(Common::g_build_date).left(10)));

View File

@ -27,7 +27,7 @@
</sizepolicy> </sizepolicy>
</property> </property>
<property name="text"> <property name="text">
<string>&lt;html&gt;&lt;head/&gt;&lt;body&gt;&lt;p&gt;&lt;img src=&quot;:/icons/azahar.png&quot;/&gt;&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</string> <string>&lt;html&gt;&lt;head/&gt;&lt;body&gt;&lt;p&gt;&lt;img src=&quot;:/icons/default/256x256/azahar.png&quot;/&gt;&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</string>
</property> </property>
</widget> </widget>
</item> </item>

View File

@ -9,6 +9,7 @@
#include <thread> #include <thread>
#include <QFileDialog> #include <QFileDialog>
#include <QFutureWatcher> #include <QFutureWatcher>
#include <QIcon>
#include <QLabel> #include <QLabel>
#include <QMessageBox> #include <QMessageBox>
#include <QPalette> #include <QPalette>
@ -330,8 +331,6 @@ GMainWindow::GMainWindow(Core::System& system_)
ui->setupUi(this); ui->setupUi(this);
statusBar()->hide(); statusBar()->hide();
setWindowIcon(QIcon(QString::fromStdString(":/icons/azahar.png")));
default_theme_paths = QIcon::themeSearchPaths(); default_theme_paths = QIcon::themeSearchPaths();
UpdateUITheme(); UpdateUITheme();
@ -390,6 +389,10 @@ GMainWindow::GMainWindow(Core::System& system_)
LOG_INFO(Frontend, "Host Swap: {:.2f} GiB", mem_info.total_swap_memory / f64{1_GiB}); LOG_INFO(Frontend, "Host Swap: {:.2f} GiB", mem_info.total_swap_memory / f64{1_GiB});
UpdateWindowTitle(); UpdateWindowTitle();
QIcon azahar_icon = QIcon(QString::fromStdString(":/icons/default/256x256/azahar.png"));
render_window->setWindowIcon(azahar_icon);
secondary_window->setWindowIcon(azahar_icon);
show(); show();
#ifdef ENABLE_QT_UPDATE_CHECKER #ifdef ENABLE_QT_UPDATE_CHECKER

View File

@ -1,4 +1,4 @@
// Copyright 2019 Citra Emulator Project // Copyright Citra Emulator Project / Azahar Emulator Project
// Licensed under GPLv2 or any later version // Licensed under GPLv2 or any later version
// Refer to the license.txt file included. // Refer to the license.txt file included.
@ -75,7 +75,7 @@ void ConfigureEnhancements::updateShaders(Settings::StereoRenderOption stereo_op
if (stereo_option == Settings::StereoRenderOption::Interlaced || if (stereo_option == Settings::StereoRenderOption::Interlaced ||
stereo_option == Settings::StereoRenderOption::ReverseInterlaced) { stereo_option == Settings::StereoRenderOption::ReverseInterlaced) {
ui->shader_combobox->addItem(QStringLiteral("horizontal (builtin)")); ui->shader_combobox->addItem(QStringLiteral("Horizontal (builtin)"));
ui->shader_combobox->setCurrentIndex(0); ui->shader_combobox->setCurrentIndex(0);
ui->shader_combobox->setEnabled(false); ui->shader_combobox->setEnabled(false);
return; return;
@ -83,10 +83,10 @@ void ConfigureEnhancements::updateShaders(Settings::StereoRenderOption stereo_op
std::string current_shader; std::string current_shader;
if (stereo_option == Settings::StereoRenderOption::Anaglyph) { if (stereo_option == Settings::StereoRenderOption::Anaglyph) {
ui->shader_combobox->addItem(QStringLiteral("dubois (builtin)")); ui->shader_combobox->addItem(QStringLiteral("Dubois (builtin)"));
current_shader = Settings::values.anaglyph_shader_name.GetValue(); current_shader = Settings::values.anaglyph_shader_name.GetValue();
} else { } else {
ui->shader_combobox->addItem(QStringLiteral("none (builtin)")); ui->shader_combobox->addItem(QStringLiteral("None (builtin)"));
current_shader = Settings::values.pp_shader_name.GetValue(); current_shader = Settings::values.pp_shader_name.GetValue();
} }

View File

@ -566,8 +566,8 @@ struct Values {
Setting<s32> cardboard_y_shift{0, "cardboard_y_shift"}; Setting<s32> cardboard_y_shift{0, "cardboard_y_shift"};
SwitchableSetting<bool> filter_mode{true, "filter_mode"}; SwitchableSetting<bool> filter_mode{true, "filter_mode"};
SwitchableSetting<std::string> pp_shader_name{"none (builtin)", "pp_shader_name"}; SwitchableSetting<std::string> pp_shader_name{"None (builtin)", "pp_shader_name"};
SwitchableSetting<std::string> anaglyph_shader_name{"dubois (builtin)", "anaglyph_shader_name"}; SwitchableSetting<std::string> anaglyph_shader_name{"Dubois (builtin)", "anaglyph_shader_name"};
SwitchableSetting<bool> dump_textures{false, "dump_textures"}; SwitchableSetting<bool> dump_textures{false, "dump_textures"};
SwitchableSetting<bool> custom_textures{false, "custom_textures"}; SwitchableSetting<bool> custom_textures{false, "custom_textures"};

View File

@ -121,8 +121,10 @@ FramebufferLayout SingleFrameLayout(u32 width, u32 height, bool swapped, bool up
width - Settings::values.screen_bottom_leftright_padding.GetValue(), width - Settings::values.screen_bottom_leftright_padding.GetValue(),
height - Settings::values.screen_bottom_topbottom_padding.GetValue()}; height - Settings::values.screen_bottom_topbottom_padding.GetValue()};
} else { } else {
top_screen = top_screen.TranslateY((height - top_screen.GetHeight()) / 2); top_screen = top_screen.TranslateX((width - top_screen.GetWidth()) / 2)
bot_screen = bot_screen.TranslateY((height - bot_screen.GetHeight()) / 2); .TranslateY((height - top_screen.GetHeight()) / 2);
bot_screen = bot_screen.TranslateX((width - bot_screen.GetWidth()) / 2)
.TranslateY((height - bot_screen.GetHeight()) / 2);
} }
#endif #endif

View File

@ -367,7 +367,7 @@ void RendererOpenGL::ReloadShader() {
// Link shaders and get variable locations // Link shaders and get variable locations
std::string shader_data = fragment_shader_precision_OES; std::string shader_data = fragment_shader_precision_OES;
if (Settings::values.render_3d.GetValue() == Settings::StereoRenderOption::Anaglyph) { if (Settings::values.render_3d.GetValue() == Settings::StereoRenderOption::Anaglyph) {
if (Settings::values.anaglyph_shader_name.GetValue() == "dubois (builtin)") { if (Settings::values.anaglyph_shader_name.GetValue() == "Dubois (builtin)") {
shader_data += HostShaders::OPENGL_PRESENT_ANAGLYPH_FRAG; shader_data += HostShaders::OPENGL_PRESENT_ANAGLYPH_FRAG;
} else { } else {
std::string shader_text = OpenGL::GetPostProcessingShaderCode( std::string shader_text = OpenGL::GetPostProcessingShaderCode(
@ -384,7 +384,7 @@ void RendererOpenGL::ReloadShader() {
Settings::StereoRenderOption::ReverseInterlaced) { Settings::StereoRenderOption::ReverseInterlaced) {
shader_data += HostShaders::OPENGL_PRESENT_INTERLACED_FRAG; shader_data += HostShaders::OPENGL_PRESENT_INTERLACED_FRAG;
} else { } else {
if (Settings::values.pp_shader_name.GetValue() == "none (builtin)") { if (Settings::values.pp_shader_name.GetValue() == "None (builtin)") {
shader_data += HostShaders::OPENGL_PRESENT_FRAG; shader_data += HostShaders::OPENGL_PRESENT_FRAG;
} else { } else {
std::string shader_text = OpenGL::GetPostProcessingShaderCode( std::string shader_text = OpenGL::GetPostProcessingShaderCode(