mirror of
https://github.com/shadps4-emu/shadPS4.git
synced 2025-08-04 16:32:39 +00:00
Always Show Changelog
This commit is contained in:
parent
823da22e66
commit
e48b72704a
@ -55,6 +55,7 @@ static bool isDebugDump = false;
|
||||
static bool isShaderDebug = false;
|
||||
static bool isShowSplash = false;
|
||||
static bool isAutoUpdate = false;
|
||||
static bool isAlwaysShowChangelog = false;
|
||||
static bool isNullGpu = false;
|
||||
static bool shouldCopyGPUBuffers = false;
|
||||
static bool shouldDumpShaders = false;
|
||||
@ -237,6 +238,10 @@ bool autoUpdate() {
|
||||
return isAutoUpdate;
|
||||
}
|
||||
|
||||
bool alwaysShowChangelog() {
|
||||
return isAlwaysShowChangelog;
|
||||
}
|
||||
|
||||
bool nullGpu() {
|
||||
return isNullGpu;
|
||||
}
|
||||
@ -337,6 +342,10 @@ void setAutoUpdate(bool enable) {
|
||||
isAutoUpdate = enable;
|
||||
}
|
||||
|
||||
void setAlwaysShowChangelog(bool enable) {
|
||||
isAlwaysShowChangelog = enable;
|
||||
}
|
||||
|
||||
void setNullGpu(bool enable) {
|
||||
isNullGpu = enable;
|
||||
}
|
||||
@ -678,6 +687,7 @@ void load(const std::filesystem::path& path) {
|
||||
}
|
||||
isShowSplash = toml::find_or<bool>(general, "showSplash", true);
|
||||
isAutoUpdate = toml::find_or<bool>(general, "autoUpdate", false);
|
||||
isAlwaysShowChangelog = toml::find_or<bool>(general, "alwaysShowChangelog", false);
|
||||
separateupdatefolder = toml::find_or<bool>(general, "separateUpdateEnabled", false);
|
||||
compatibilityData = toml::find_or<bool>(general, "compatibilityEnabled", false);
|
||||
checkCompatibilityOnStartup =
|
||||
@ -811,6 +821,7 @@ void save(const std::filesystem::path& path) {
|
||||
data["General"]["chooseHomeTab"] = chooseHomeTab;
|
||||
data["General"]["showSplash"] = isShowSplash;
|
||||
data["General"]["autoUpdate"] = isAutoUpdate;
|
||||
data["General"]["alwaysShowChangelog"] = isAlwaysShowChangelog;
|
||||
data["General"]["separateUpdateEnabled"] = separateupdatefolder;
|
||||
data["General"]["compatibilityEnabled"] = compatibilityData;
|
||||
data["General"]["checkCompatibilityOnStartup"] = checkCompatibilityOnStartup;
|
||||
@ -932,6 +943,7 @@ void setDefaultValues() {
|
||||
isShaderDebug = false;
|
||||
isShowSplash = false;
|
||||
isAutoUpdate = false;
|
||||
isAlwaysShowChangelog = false;
|
||||
isNullGpu = false;
|
||||
shouldDumpShaders = false;
|
||||
vblankDivider = 1;
|
||||
|
@ -57,6 +57,7 @@ bool debugDump();
|
||||
bool collectShadersForDebug();
|
||||
bool showSplash();
|
||||
bool autoUpdate();
|
||||
bool alwaysShowChangelog();
|
||||
bool nullGpu();
|
||||
bool copyGPUCmdBuffers();
|
||||
bool dumpShaders();
|
||||
@ -68,6 +69,7 @@ void setDebugDump(bool enable);
|
||||
void setCollectShaderForDebug(bool enable);
|
||||
void setShowSplash(bool enable);
|
||||
void setAutoUpdate(bool enable);
|
||||
void setAlwaysShowChangelog(bool enable);
|
||||
void setNullGpu(bool enable);
|
||||
void setAllowHDR(bool enable);
|
||||
void setCopyGPUCmdBuffers(bool enable);
|
||||
|
@ -271,6 +271,15 @@ void CheckUpdate::setupUI(const QString& downloadUrl, const QString& latestDate,
|
||||
adjustSize();
|
||||
}
|
||||
});
|
||||
|
||||
if (Config::alwaysShowChangelog()) {
|
||||
QString updateChannel = QString::fromStdString(Config::getUpdateChannel());
|
||||
requestChangelog(currentRev, latestRev, downloadUrl, latestDate, currentDate);
|
||||
textField->setVisible(true);
|
||||
toggleButton->setText(tr("Hide Changelog"));
|
||||
adjustSize();
|
||||
textField->setFixedWidth(textField->width() + 20);
|
||||
}
|
||||
}
|
||||
|
||||
connect(yesButton, &QPushButton::clicked, this, [this, downloadUrl]() {
|
||||
|
@ -137,9 +137,15 @@ SettingsDialog::SettingsDialog(std::span<const QString> physical_devices,
|
||||
#if (QT_VERSION < QT_VERSION_CHECK(6, 7, 0))
|
||||
connect(ui->updateCheckBox, &QCheckBox::stateChanged, this,
|
||||
[](int state) { Config::setAutoUpdate(state == Qt::Checked); });
|
||||
|
||||
connect(ui->changelogCheckBox, &QCheckBox::stateChanged, this,
|
||||
[](int state) { Config::setAlwaysShowChangelog(state == Qt::Checked); });
|
||||
#else
|
||||
connect(ui->updateCheckBox, &QCheckBox::checkStateChanged, this,
|
||||
[](Qt::CheckState state) { Config::setAutoUpdate(state == Qt::Checked); });
|
||||
|
||||
connect(ui->changelogCheckBox, &QCheckBox::checkStateChanged, this,
|
||||
[](Qt::CheckState state) { Config::setAlwaysShowChangelog(state == Qt::Checked); });
|
||||
#endif
|
||||
|
||||
connect(ui->updateComboBox, &QComboBox::currentTextChanged, this,
|
||||
@ -391,6 +397,8 @@ void SettingsDialog::LoadValuesFromConfig() {
|
||||
|
||||
#ifdef ENABLE_UPDATER
|
||||
ui->updateCheckBox->setChecked(toml::find_or<bool>(data, "General", "autoUpdate", false));
|
||||
ui->changelogCheckBox->setChecked(
|
||||
toml::find_or<bool>(data, "General", "alwaysShowChangelog", false));
|
||||
std::string updateChannel = toml::find_or<std::string>(data, "General", "updateChannel", "");
|
||||
if (updateChannel != "Release" && updateChannel != "Nightly") {
|
||||
if (Common::isRelease) {
|
||||
@ -651,6 +659,7 @@ void SettingsDialog::UpdateSettings() {
|
||||
Config::setCollectShaderForDebug(ui->collectShaderCheckBox->isChecked());
|
||||
Config::setCopyGPUCmdBuffers(ui->copyGPUBuffersCheckBox->isChecked());
|
||||
Config::setAutoUpdate(ui->updateCheckBox->isChecked());
|
||||
Config::setAlwaysShowChangelog(ui->changelogCheckBox->isChecked());
|
||||
Config::setUpdateChannel(ui->updateComboBox->currentText().toStdString());
|
||||
Config::setChooseHomeTab(ui->chooseHomeTabComboBox->currentText().toStdString());
|
||||
Config::setCompatibilityEnabled(ui->enableCompatibilityCheckBox->isChecked());
|
||||
|
@ -74,7 +74,7 @@
|
||||
<x>0</x>
|
||||
<y>0</y>
|
||||
<width>946</width>
|
||||
<height>535</height>
|
||||
<height>536</height>
|
||||
</rect>
|
||||
</property>
|
||||
<layout class="QVBoxLayout" name="generalTabVLayout" stretch="0">
|
||||
@ -346,7 +346,7 @@
|
||||
<property name="title">
|
||||
<string>Update</string>
|
||||
</property>
|
||||
<layout class="QVBoxLayout" name="UpdateLayout" stretch="0,0,0">
|
||||
<layout class="QVBoxLayout" name="UpdateLayout" stretch="0,0,0,0">
|
||||
<property name="spacing">
|
||||
<number>6</number>
|
||||
</property>
|
||||
@ -465,6 +465,13 @@
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item>
|
||||
<widget class="QCheckBox" name="changelogCheckBox">
|
||||
<property name="text">
|
||||
<string>Always Show Changelog</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
</layout>
|
||||
</widget>
|
||||
</item>
|
||||
@ -488,7 +495,7 @@
|
||||
<x>0</x>
|
||||
<y>0</y>
|
||||
<width>946</width>
|
||||
<height>535</height>
|
||||
<height>536</height>
|
||||
</rect>
|
||||
</property>
|
||||
<layout class="QVBoxLayout" name="guiTabVLayout" stretch="0">
|
||||
@ -937,7 +944,7 @@
|
||||
<x>0</x>
|
||||
<y>0</y>
|
||||
<width>946</width>
|
||||
<height>535</height>
|
||||
<height>536</height>
|
||||
</rect>
|
||||
</property>
|
||||
<layout class="QVBoxLayout" name="graphicsTabVLayout" stretch="0,0">
|
||||
@ -1181,7 +1188,7 @@
|
||||
<x>0</x>
|
||||
<y>0</y>
|
||||
<width>946</width>
|
||||
<height>535</height>
|
||||
<height>536</height>
|
||||
</rect>
|
||||
</property>
|
||||
<layout class="QVBoxLayout" name="userTabVLayout" stretch="0,0,1">
|
||||
@ -1325,7 +1332,7 @@
|
||||
<x>0</x>
|
||||
<y>0</y>
|
||||
<width>946</width>
|
||||
<height>535</height>
|
||||
<height>536</height>
|
||||
</rect>
|
||||
</property>
|
||||
<layout class="QVBoxLayout" name="inputTabVLayout" stretch="0,0">
|
||||
@ -1609,7 +1616,7 @@
|
||||
<x>0</x>
|
||||
<y>0</y>
|
||||
<width>946</width>
|
||||
<height>535</height>
|
||||
<height>536</height>
|
||||
</rect>
|
||||
</property>
|
||||
<layout class="QVBoxLayout" name="pathsTabLayout">
|
||||
@ -1699,7 +1706,7 @@
|
||||
<x>0</x>
|
||||
<y>0</y>
|
||||
<width>946</width>
|
||||
<height>535</height>
|
||||
<height>536</height>
|
||||
</rect>
|
||||
</property>
|
||||
<layout class="QVBoxLayout" name="debugTabVLayout" stretch="0,0">
|
||||
|
@ -728,6 +728,10 @@
|
||||
<source>Check for Updates at Startup</source>
|
||||
<translation>Tjek for opdateringer ved start</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Always Show Changelog</source>
|
||||
<translation>Vis altid changelog</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Update Channel</source>
|
||||
<translation>Opdateringskanal</translation>
|
||||
|
@ -752,6 +752,10 @@
|
||||
<source>Check for Updates at Startup</source>
|
||||
<translation>Beim Start nach Updates suchen</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Always Show Changelog</source>
|
||||
<translation>Changelog immer anzeigen</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Update Channel</source>
|
||||
<translation>Update-Kanal</translation>
|
||||
|
@ -728,6 +728,10 @@
|
||||
<source>Check for Updates at Startup</source>
|
||||
<translation>Έλεγχος για ενημερώσεις κατά την εκκίνηση</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Always Show Changelog</source>
|
||||
<translation>Πάντα εμφάνιση ιστορικού αλλαγών</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Update Channel</source>
|
||||
<translation>Κανάλι Ενημέρωσης</translation>
|
||||
|
@ -740,6 +740,10 @@
|
||||
<source>Check for Updates at Startup</source>
|
||||
<translation>Check for Updates at Startup</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Always Show Changelog</source>
|
||||
<translation>Always Show Changelog</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Update Channel</source>
|
||||
<translation>Update Channel</translation>
|
||||
|
@ -728,6 +728,10 @@
|
||||
<source>Check for Updates at Startup</source>
|
||||
<translation>Buscar actualizaciones al iniciar</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Always Show Changelog</source>
|
||||
<translation>Mostrar siempre el registro de cambios</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Update Channel</source>
|
||||
<translation>Canal de Actualización</translation>
|
||||
|
@ -728,6 +728,10 @@
|
||||
<source>Check for Updates at Startup</source>
|
||||
<translation>بررسی بهروزرسانیها در زمان راهاندازی</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Always Show Changelog</source>
|
||||
<translation>نمایش دائم تاریخچه تغییرات</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Update Channel</source>
|
||||
<translation>کانال بهروزرسانی</translation>
|
||||
|
@ -728,6 +728,10 @@
|
||||
<source>Check for Updates at Startup</source>
|
||||
<translation>Tarkista Päivitykset Käynnistäessä</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Always Show Changelog</source>
|
||||
<translation>Näytä aina muutoshistoria</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Update Channel</source>
|
||||
<translation>Päivityskanava</translation>
|
||||
|
@ -728,6 +728,10 @@
|
||||
<source>Check for Updates at Startup</source>
|
||||
<translation>Vérif. maj au démarrage</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Always Show Changelog</source>
|
||||
<translation>Afficher toujours le changelog</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Update Channel</source>
|
||||
<translation>Canal de Mise à Jour</translation>
|
||||
|
@ -728,6 +728,10 @@
|
||||
<source>Check for Updates at Startup</source>
|
||||
<translation>Frissítések keresése indításkor</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Always Show Changelog</source>
|
||||
<translation>Mindig mutasd a változásnaplót</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Update Channel</source>
|
||||
<translation>Frissítési Csatorna</translation>
|
||||
|
@ -728,6 +728,10 @@
|
||||
<source>Check for Updates at Startup</source>
|
||||
<translation>Periksa pembaruan saat mulai</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Always Show Changelog</source>
|
||||
<translation>Selalu Tampilkan Riwayat Perubahan</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Update Channel</source>
|
||||
<translation>Saluran Pembaruan</translation>
|
||||
|
@ -728,6 +728,10 @@
|
||||
<source>Check for Updates at Startup</source>
|
||||
<translation>Verifica aggiornamenti all’avvio</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Always Show Changelog</source>
|
||||
<translation>Mostra sempre il changelog</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Update Channel</source>
|
||||
<translation>Canale di Aggiornamento</translation>
|
||||
|
@ -728,6 +728,10 @@
|
||||
<source>Check for Updates at Startup</source>
|
||||
<translation>起動時に更新確認</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Always Show Changelog</source>
|
||||
<translation>常に変更履歴を表示</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Update Channel</source>
|
||||
<translation>アップデートチャネル</translation>
|
||||
|
@ -728,6 +728,10 @@
|
||||
<source>Check for Updates at Startup</source>
|
||||
<translation>Check for Updates at Startup</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Always Show Changelog</source>
|
||||
<translation>항상 변경 사항 표시</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Update Channel</source>
|
||||
<translation>Update Channel</translation>
|
||||
|
@ -728,6 +728,10 @@
|
||||
<source>Check for Updates at Startup</source>
|
||||
<translation>Tikrinti naujinimus paleidus</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Always Show Changelog</source>
|
||||
<translation>Visada rodyti pakeitimų žurnalą</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Update Channel</source>
|
||||
<translation>Atnaujinimo Kanalas</translation>
|
||||
|
@ -728,6 +728,10 @@
|
||||
<source>Check for Updates at Startup</source>
|
||||
<translation>Bij opstart op updates controleren</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Always Show Changelog</source>
|
||||
<translation>Altijd changelog tonen</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Update Channel</source>
|
||||
<translation>Updatekanaal</translation>
|
||||
|
@ -728,6 +728,10 @@
|
||||
<source>Check for Updates at Startup</source>
|
||||
<translation>Sprawdź aktualizacje przy starcie</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Always Show Changelog</source>
|
||||
<translation>Zawsze pokazuj dziennik zmian</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Update Channel</source>
|
||||
<translation>Kanał Aktualizacji</translation>
|
||||
|
@ -728,6 +728,10 @@
|
||||
<source>Check for Updates at Startup</source>
|
||||
<translation>Verificar Atualizações ao Iniciar</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Always Show Changelog</source>
|
||||
<translation>Sempre Mostrar o Changelog</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Update Channel</source>
|
||||
<translation>Canal de Atualização</translation>
|
||||
|
@ -728,6 +728,10 @@
|
||||
<source>Check for Updates at Startup</source>
|
||||
<translation>Verifică actualizări la pornire</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Always Show Changelog</source>
|
||||
<translation>Arată întotdeauna jurnalul modificărilor</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Update Channel</source>
|
||||
<translation>Canal de Actualizare</translation>
|
||||
|
@ -796,6 +796,10 @@
|
||||
<source>Check for Updates at Startup</source>
|
||||
<translation>Проверка при запуске</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Always Show Changelog</source>
|
||||
<translation>Всегда показывать журнал изменений</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Update Channel</source>
|
||||
<translation>Канал обновления</translation>
|
||||
|
@ -736,6 +736,10 @@
|
||||
<source>Check for Updates at Startup</source>
|
||||
<translation>Kontrollo për përditësime në nisje</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Always Show Changelog</source>
|
||||
<translation>Shfaq gjithmonë regjistrin e ndryshimeve</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Update Channel</source>
|
||||
<translation>Kanali i përditësimit</translation>
|
||||
|
@ -1423,6 +1423,10 @@
|
||||
<source>Check for Updates at Startup</source>
|
||||
<translation>Leta efter uppdateringar vid uppstart</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Always Show Changelog</source>
|
||||
<translation>Visa alltid ändringsloggen</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Update Channel</source>
|
||||
<translation>Uppdateringskanal</translation>
|
||||
|
@ -728,6 +728,10 @@
|
||||
<source>Check for Updates at Startup</source>
|
||||
<translation>Başlangıçta güncellemeleri kontrol et</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Always Show Changelog</source>
|
||||
<translation>Her zaman değişiklik günlüğünü göster</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Update Channel</source>
|
||||
<translation>Güncelleme Kanalı</translation>
|
||||
|
@ -793,6 +793,10 @@
|
||||
<source>Check for Updates at Startup</source>
|
||||
<translation>Перевіряти оновлення під час запуску</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Always Show Changelog</source>
|
||||
<translation>Завжди показувати журнал змін</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Update Channel</source>
|
||||
<translation>Канал оновлення</translation>
|
||||
|
@ -728,6 +728,10 @@
|
||||
<source>Check for Updates at Startup</source>
|
||||
<translation>Kiểm tra cập nhật khi khởi động</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Always Show Changelog</source>
|
||||
<translation>Luôn hiển thị nhật ký thay đổi</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Update Channel</source>
|
||||
<translation>Kênh Cập Nhật</translation>
|
||||
|
@ -728,7 +728,6 @@
|
||||
<source>Guest Debug Markers</source>
|
||||
<translation>Geust 调试标记</translation>
|
||||
</message>
|
||||
|
||||
<message>
|
||||
<source>Update</source>
|
||||
<translation>更新</translation>
|
||||
@ -737,6 +736,10 @@
|
||||
<source>Check for Updates at Startup</source>
|
||||
<translation>启动时检查更新</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Always Show Changelog</source>
|
||||
<translation>始终显示变更日志</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Update Channel</source>
|
||||
<translation>更新频道</translation>
|
||||
|
@ -728,6 +728,10 @@
|
||||
<source>Check for Updates at Startup</source>
|
||||
<translation>啟動時檢查更新</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Always Show Changelog</source>
|
||||
<translation>始終顯示變更紀錄</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Update Channel</source>
|
||||
<translation>更新頻道</translation>
|
||||
|
Loading…
Reference in New Issue
Block a user