Skip to content

Commit

Permalink
Merge branch 'shadps4-emu:main' into mainBB
Browse files Browse the repository at this point in the history
  • Loading branch information
diegolix29 authored Sep 29, 2024
2 parents 95cf08a + 5e98a3e commit f8189af
Show file tree
Hide file tree
Showing 36 changed files with 117 additions and 127 deletions.
35 changes: 3 additions & 32 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ SPDX-License-Identifier: GPL-2.0-or-later

# General information

shadPS4 is an early **PlayStation 4** emulator for **Windows**, **Linux** and **macOS** written in C++.
**shadPS4** is an early **PlayStation 4** emulator for **Windows**, **Linux** and **macOS** written in C++.

If you encounter problems or have doubts, do not hesitate to look at the [**Quickstart**](https://github.com/shadps4-emu/shadPS4/blob/main/documents/Quickstart/Quickstart.md).

Expand All @@ -44,7 +44,7 @@ To discuss shadPS4 development, suggest ideas or to ask for help, join our [**Di

To get the latest news, go to our [**X (Twitter)**](https://x.com/shadps4) or our [**website**](https://shadps4.net/).

For those who'd like to donate to the project, we now have a [Kofi page!](https://ko-fi.com/shadps4)
For those who'd like to donate to the project, we now have a [**Kofi page**](https://ko-fi.com/shadps4)!

# Status

Expand Down Expand Up @@ -74,38 +74,9 @@ Check the build instructions for [**macOS**](https://github.com/shadps4-emu/shad
> [!IMPORTANT]
> macOS users need at least macOS 15 on Apple Silicon-based Mac devices and at least macOS 11 on Intel-based Mac devices.
## Building status

<details>
<summary><b>Windows</b></summary>

| Windows | Build status |
|--------|--------|
|Windows SDL Build|[![Windows-sdl](https://github.com/shadps4-emu/shadPS4/actions/workflows/windows.yml/badge.svg)](https://github.com/shadps4-emu/shadPS4/actions/workflows/windows.yml)
|Windows Qt Build|[![Windows-qt](https://github.com/shadps4-emu/shadPS4/actions/workflows/windows-qt.yml/badge.svg)](https://github.com/shadps4-emu/shadPS4/actions/workflows/windows-qt.yml)
</details>

<details>
<summary><b>Linux</b></summary>

| Linux | Build status |
|--------|--------|
|Linux SDL Build|[![Linux-sdl](https://github.com/shadps4-emu/shadPS4/actions/workflows/linux.yml/badge.svg)](https://github.com/shadps4-emu/shadPS4/actions/workflows/linux.yml)
|Linux Qt Build|[![Linux-qt](https://github.com/shadps4-emu/shadPS4/actions/workflows/linux-qt.yml/badge.svg)](https://github.com/shadps4-emu/shadPS4/actions/workflows/linux-qt.yml)
</details>

<details>
<summary><b>macOS</b></summary>

| macOS | Build status |
|--------|--------|
|macOS SDL Build|[![macOS-sdl](https://github.com/shadps4-emu/shadPS4/actions/workflows/macos.yml/badge.svg)](https://github.com/shadps4-emu/shadPS4/actions/workflows/macos.yml)
|macOS Qt Build|[![macOS-qt](https://github.com/shadps4-emu/shadPS4/actions/workflows/macos-qt.yml/badge.svg)](https://github.com/shadps4-emu/shadPS4/actions/workflows/macos-qt.yml)
</details>

# Debugging and reporting issues

For more information on how to test, debug and report issues with the emulator or games, read the [Debugging documentation](https://github.com/shadps4-emu/shadPS4/blob/main/documents/Debugging/Debugging.md).
For more information on how to test, debug and report issues with the emulator or games, read the [**Debugging documentation**](https://github.com/shadps4-emu/shadPS4/blob/main/documents/Debugging/Debugging.md).

# Keyboard mapping

Expand Down
Binary file modified src/images/flag_china.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified src/images/flag_eu.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified src/images/flag_jp.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified src/images/flag_us.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified src/images/flag_world.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
21 changes: 20 additions & 1 deletion src/qt_gui/check_update.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@
#include <common/path_util.h>
#include <common/scm_rev.h>
#include <common/version.h>
#include <qprogressbar.h>
#include "check_update.h"

using namespace Common::FS;
Expand Down Expand Up @@ -313,15 +314,32 @@ void CheckUpdate::requestChangelog(const QString& currentRev, const QString& lat
}

void CheckUpdate::DownloadUpdate(const QString& url) {
QProgressBar* progressBar = new QProgressBar(this);
progressBar->setRange(0, 100);
progressBar->setTextVisible(true);
progressBar->setValue(0);

layout()->addWidget(progressBar);

QNetworkRequest request(url);
QNetworkReply* reply = networkManager->get(request);

connect(reply, &QNetworkReply::finished, this, [this, reply, url]() {
connect(reply, &QNetworkReply::downloadProgress, this,
[progressBar](qint64 bytesReceived, qint64 bytesTotal) {
if (bytesTotal > 0) {
int percentage = static_cast<int>((bytesReceived * 100) / bytesTotal);
progressBar->setValue(percentage);
}
});

connect(reply, &QNetworkReply::finished, this, [this, reply, progressBar, url]() {
progressBar->setValue(100);
if (reply->error() != QNetworkReply::NoError) {
QMessageBox::warning(this, tr("Error"),
tr("Network error occurred while trying to access the URL") +
":\n" + url + "\n" + reply->errorString());
reply->deleteLater();
progressBar->deleteLater();
return;
}

Expand All @@ -348,6 +366,7 @@ void CheckUpdate::DownloadUpdate(const QString& url) {
}

reply->deleteLater();
progressBar->deleteLater();
});
}

Expand Down
2 changes: 1 addition & 1 deletion src/qt_gui/main_window.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,12 @@
#include <QKeyEvent>
#include <QProgressDialog>

#include <common/scm_rev.h>
#include "about_dialog.h"
#include "cheats_patches.h"
#include "check_update.h"
#include "common/io_file.h"
#include "common/path_util.h"
#include "common/scm_rev.h"
#include "common/string_util.h"
#include "common/version.h"
#include "core/file_format/pkg.h"
Expand Down
2 changes: 1 addition & 1 deletion src/qt_gui/settings_dialog.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ SettingsDialog::SettingsDialog(std::span<const QString> physical_devices, QWidge
InitializeEmulatorLanguages();
LoadValuesFromConfig();

defaultTextEdit = tr("Point your mouse at an options to display a description in here");
defaultTextEdit = tr("Point your mouse at an option to display it's description.");
ui->descriptionText->setText(defaultTextEdit);

connect(ui->buttonBox, &QDialogButtonBox::rejected, this, &QWidget::close);
Expand Down
6 changes: 3 additions & 3 deletions src/qt_gui/translations/ar.ts
Original file line number Diff line number Diff line change
Expand Up @@ -975,8 +975,8 @@
</message>
<message>
<location filename="../settings_dialog.cpp" line="72"/>
<source>Point your mouse at an options to display a description in here</source>
<translation>وجه مؤشر الفأرة إلى خيار لعرض الوصف هنا</translation>
<source>Point your mouse at an option to display it's description.</source>
<translation>وجّه الماوس نحو خيار لعرض وصفه.</translation>
</message>
<message>
<location filename="../settings_dialog.cpp" line="289"/>
Expand Down Expand Up @@ -1021,7 +1021,7 @@
<message>
<location filename="../settings_dialog.cpp" line="305"/>
<source>updaterGroupBox</source>
<translation>التحديث:\nمستقر: إصدارات رسمية يتم إصدارها شهريًا، قد تكون قديمة جدًا ولكنها أكثر استقرارًا وتم اختبارها.\nغير مستقر: إصدارات التطوير التي تحتوي على أحدث الميزات والإصلاحات، لكنها قد تحتوي على أخطاء وأقل استقرارًا.</translation>
<translation>تحديث: Release: إصدارات رسمية تصدر شهريًا، قد تكون قديمة بعض الشيء، لكنها أكثر استقرارًا واختبارًا. Nightly: إصدارات تطوير تحتوي على أحدث الميزات والإصلاحات، لكنها قد تحتوي على أخطاء وأقل استقرارًا.</translation>
</message>
<message>
<location filename="../settings_dialog.cpp" line="306"/>
Expand Down
6 changes: 3 additions & 3 deletions src/qt_gui/translations/da_DK.ts
Original file line number Diff line number Diff line change
Expand Up @@ -975,8 +975,8 @@
</message>
<message>
<location filename="../settings_dialog.cpp" line="72"/>
<source>Point your mouse at an options to display a description in here</source>
<translation>Placer musen på en indstilling for at vise en beskrivelse her</translation>
<source>Point your mouse at an option to display it's description.</source>
<translation>Peg musen over et valg for at vise dets beskrivelse.</translation>
</message>
<message>
<location filename="../settings_dialog.cpp" line="289"/>
Expand Down Expand Up @@ -1021,7 +1021,7 @@
<message>
<location filename="../settings_dialog.cpp" line="305"/>
<source>updaterGroupBox</source>
<translation>Opdatering:\nStabil: Officielle builds, der frigives månedligt, som kan være meget ældre, men mere stabile og testet.\nUstabil: Udviklerbuilds med de nyeste funktioner og rettelser, men som kan indeholde fejl og være mindre stabile.</translation>
<translation>Opdatering:\nRelease: Officielle builds, der frigives månedligt, som kan være meget ældre, men mere stabile og testet.\nNightly: Udviklerbuilds med de nyeste funktioner og rettelser, men som kan indeholde fejl og være mindre stabile.</translation>
</message>
<message>
<location filename="../settings_dialog.cpp" line="306"/>
Expand Down
6 changes: 3 additions & 3 deletions src/qt_gui/translations/de.ts
Original file line number Diff line number Diff line change
Expand Up @@ -975,8 +975,8 @@
</message>
<message>
<location filename="../settings_dialog.cpp" line="72"/>
<source>Point your mouse at an options to display a description in here</source>
<translation>Zeigen Sie mit der Maus auf eine Option, um hier eine Beschreibung anzuzeigen</translation>
<source>Point your mouse at an option to display it's description.</source>
<translation>Bewege die Maus über eine Option, um deren Beschreibung anzuzeigen.</translation>
</message>
<message>
<location filename="../settings_dialog.cpp" line="289"/>
Expand Down Expand Up @@ -1021,7 +1021,7 @@
<message>
<location filename="../settings_dialog.cpp" line="305"/>
<source>updaterGroupBox</source>
<translation>Update:\nStabil: Offizielle Builds, die monatlich veröffentlicht werden, können viel älter sein, aber stabiler und getestet.\nUnstabil: Entwickler-Builds, die die neuesten Funktionen und Fehlerbehebungen enthalten, aber Fehler enthalten und weniger stabil sein können.</translation>
<translation>Update:\nRelease: Offizielle Builds, die monatlich veröffentlicht werden, können viel älter sein, aber stabiler und getestet.\nNightly: Entwickler-Builds, die die neuesten Funktionen und Fehlerbehebungen enthalten, aber Fehler enthalten und weniger stabil sein können.</translation>
</message>
<message>
<location filename="../settings_dialog.cpp" line="306"/>
Expand Down
6 changes: 3 additions & 3 deletions src/qt_gui/translations/el.ts
Original file line number Diff line number Diff line change
Expand Up @@ -975,8 +975,8 @@
</message>
<message>
<location filename="../settings_dialog.cpp" line="72"/>
<source>Point your mouse at an options to display a description in here</source>
<translation>Τοποθετήστε τον κέρσορα πάνω από μια επιλογή για να εμφανιστεί εδώ η περιγραφή</translation>
<source>Point your mouse at an option to display it's description.</source>
<translation>Τοποθετήστε το ποντίκι σας πάνω σε μια επιλογή για να εμφανίσετε την περιγραφή της.</translation>
</message>
<message>
<location filename="../settings_dialog.cpp" line="289"/>
Expand Down Expand Up @@ -1021,7 +1021,7 @@
<message>
<location filename="../settings_dialog.cpp" line="305"/>
<source>updaterGroupBox</source>
<translation>Ενημερώσεις:\nΣταθερές: Επίσημες εκδόσεις που κυκλοφορούν μηνιαίως, είναι παλαιότερες αλλά πιο σταθερές και δοκιμασμένες.\nΑσταθείς: Εκδόσεις προγραμματιστών με νέες δυνατότητες και διορθώσεις, αλλά μπορεί να περιέχουν σφάλματα και να είναι λιγότερο σταθερές.</translation>
<translation>Ενημερώσεις:\nRelease: Επίσημες εκδόσεις που κυκλοφορούν μηνιαίως, είναι παλαιότερες αλλά πιο σταθερές και δοκιμασμένες.\nNightly: Εκδόσεις προγραμματιστών με νέες δυνατότητες και διορθώσεις, αλλά μπορεί να περιέχουν σφάλματα και να είναι λιγότερο σταθερές.</translation>
</message>
<message>
<location filename="../settings_dialog.cpp" line="306"/>
Expand Down
12 changes: 6 additions & 6 deletions src/qt_gui/translations/en.ts
Original file line number Diff line number Diff line change
Expand Up @@ -975,8 +975,8 @@
</message>
<message>
<location filename="../settings_dialog.cpp" line="72"/>
<source>Point your mouse at an options to display a description in here</source>
<translation>Point your mouse at an options to display a description in here</translation>
<source>Point your mouse at an option to display it's description.</source>
<translation>Point your mouse at an option to display it's description.</translation>
</message>
<message>
<location filename="../settings_dialog.cpp" line="289"/>
Expand Down Expand Up @@ -1021,7 +1021,7 @@
<message>
<location filename="../settings_dialog.cpp" line="305"/>
<source>updaterGroupBox</source>
<translation>Update:\nStable: Official versions released every month that may be very outdated, but are more reliable and tested.\nUnstable: Development versions that have all the latest features and fixes, but may contain bugs and are less stable.</translation>
<translation>Update:\nRelease: Official versions released every month that may be very outdated, but are more reliable and tested.\nNightly: Development versions that have all the latest features and fixes, but may contain bugs and are less stable.</translation>
</message>
<message>
<location filename="../settings_dialog.cpp" line="306"/>
Expand Down Expand Up @@ -1061,17 +1061,17 @@
<message>
<location filename="../settings_dialog.cpp" line="329"/>
<source>debugDump</source>
<translation>Enable Debug Dumping:\nSaves the import and export symbols and file header information of the currently running PS4 program to a directory</translation>
<translation>Enable Debug Dumping:\nSaves the import and export symbols and file header information of the currently running PS4 program to a directory.</translation>
</message>
<message>
<location filename="../settings_dialog.cpp" line="331"/>
<source>vkValidationCheckBox</source>
<translation>Enable Vulkan Validation Layers:\nEnables a system that validates the state of the Vulkan renderer and logs information about it's internal state. This will reduce performance and likely change the behavior of emulation.</translation>
<translation>Enable Vulkan Validation Layers:\nEnables a system that validates the state of the Vulkan renderer and logs information about it's internal state.\nThis will reduce performance and likely change the behavior of emulation.</translation>
</message>
<message>
<location filename="../settings_dialog.cpp" line="333"/>
<source>vkSyncValidationCheckBox</source>
<translation>Enable Vulkan Synchronization Validation:\nEnables a system that validates the timing of Vulkan rendering tasks. This will reduce performance and likely change the behavior of emulation.</translation>
<translation>Enable Vulkan Synchronization Validation:\nEnables a system that validates the timing of Vulkan rendering tasks.\nThis will reduce performance and likely change the behavior of emulation.</translation>
</message>
<message>
<location filename="../settings_dialog.cpp" line="335"/>
Expand Down
6 changes: 3 additions & 3 deletions src/qt_gui/translations/es_ES.ts
Original file line number Diff line number Diff line change
Expand Up @@ -975,8 +975,8 @@
</message>
<message>
<location filename="../settings_dialog.cpp" line="72"/>
<source>Point your mouse at an options to display a description in here</source>
<translation>Apunta con el ratón a una opción para mostrar una descripción aquí</translation>
<source>Point your mouse at an option to display it's description.</source>
<translation>Coloque el mouse sobre una opción para mostrar su descripción.</translation>
</message>
<message>
<location filename="../settings_dialog.cpp" line="289"/>
Expand Down Expand Up @@ -1021,7 +1021,7 @@
<message>
<location filename="../settings_dialog.cpp" line="305"/>
<source>updaterGroupBox</source>
<translation>Actualización:\nEstable: Versiones oficiales lanzadas cada mes que pueden estar muy desactualizadas, pero son más confiables y están probadas.\nInestable: Versiones de desarrollo que tienen todas las últimas funciones y correcciones, pero pueden contener errores y son menos estables.</translation>
<translation>Actualización:\nRelease: Versiones oficiales lanzadas cada mes que pueden estar muy desactualizadas, pero son más confiables y están probadas.\nNightly: Versiones de desarrollo que tienen todas las últimas funciones y correcciones, pero pueden contener errores y son menos estables.</translation>
</message>
<message>
<location filename="../settings_dialog.cpp" line="306"/>
Expand Down
8 changes: 4 additions & 4 deletions src/qt_gui/translations/fa_IR.ts
Original file line number Diff line number Diff line change
Expand Up @@ -975,8 +975,8 @@
</message>
<message>
<location filename="../settings_dialog.cpp" line="72"/>
<source>Point your mouse at an options to display a description in here</source>
<translation>Point your mouse at an options to display a description in here</translation>
<source>Point your mouse at an option to display it's description.</source>
<translation>ماوس خود را بر روی یک گزینه قرار دهید تا توضیحات آن نمایش داده شود.</translation>
</message>
<message>
<location filename="../settings_dialog.cpp" line="289"/>
Expand Down Expand Up @@ -1021,7 +1021,7 @@
<message>
<location filename="../settings_dialog.cpp" line="305"/>
<source>updaterGroupBox</source>
<translation>Update:\nStable: Official versions released every month that may be very outdated, but are more reliable and tested.\nUnstable: Development versions that have all the latest features and fixes, but may contain bugs and are less stable.</translation>
<translation>Update:\nRelease: Official versions released every month that may be very outdated, but are more reliable and tested.\nNightly: Development versions that have all the latest features and fixes, but may contain bugs and are less stable.</translation>
</message>
<message>
<location filename="../settings_dialog.cpp" line="306"/>
Expand Down Expand Up @@ -1061,7 +1061,7 @@
<message>
<location filename="../settings_dialog.cpp" line="329"/>
<source>debugDump</source>
<translation>Enable Debug Dumping:\nSaves the import and export symbols and file header information of the currently running PS4 program to a directory</translation>
<translation>Enable Debug Dumping:\nSaves the import and export symbols and file header information of the currently running PS4 program to a directory.</translation>
</message>
<message>
<location filename="../settings_dialog.cpp" line="331"/>
Expand Down
6 changes: 3 additions & 3 deletions src/qt_gui/translations/fi.ts
Original file line number Diff line number Diff line change
Expand Up @@ -975,8 +975,8 @@
</message>
<message>
<location filename="../settings_dialog.cpp" line="72"/>
<source>Point your mouse at an options to display a description in here</source>
<translation>Vie hiiri valinnan päälle näyttääksesi kuvauksen tähän</translation>
<source>Point your mouse at an option to display it's description.</source>
<translation>Siirrä hiiri vaihtoehdon päälle näyttämään sen kuvaus.</translation>
</message>
<message>
<location filename="../settings_dialog.cpp" line="289"/>
Expand Down Expand Up @@ -1021,7 +1021,7 @@
<message>
<location filename="../settings_dialog.cpp" line="305"/>
<source>updaterGroupBox</source>
<translation>Päivitys:\nVakaa: Viralliset versiot, jotka julkaistaan joka kuukausi ja voivat olla hyvin vanhoja, mutta ovat luotettavampia ja testatumpia.\nEpävakaa: Kehitysversiot, joissa on kaikki uusimmat ominaisuudet ja korjaukset, mutta ne voivat sisältää bugeja ja ovat vähemmän vakaita.</translation>
<translation>Päivitys:\nRelease: Viralliset versiot, jotka julkaistaan joka kuukausi ja voivat olla hyvin vanhoja, mutta ovat luotettavampia ja testatumpia.\nNightly: Kehitysversiot, joissa on kaikki uusimmat ominaisuudet ja korjaukset, mutta ne voivat sisältää bugeja ja ovat vähemmän vakaita.</translation>
</message>
<message>
<location filename="../settings_dialog.cpp" line="306"/>
Expand Down
Loading

0 comments on commit f8189af

Please sign in to comment.