-
-
Notifications
You must be signed in to change notification settings - Fork 1.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
GameList: Support adding custom titles and/or regions to files #9330
Conversation
I feel like this is supporting mods in a way. i always thought it would be better to have the actual box title for the games as official alternative. I think our japanese friends would appreciate it if they could see the game's title in their native language that many of them were made in. |
94ba9ca
to
bf6ff87
Compare
Updated to make the title and regions editable out of the box, with new "Restore" buttons that reset a respective custom property. |
Currently works as intended but it would be interesting to have the current game title in the top bar also change to reflect the currently assigned name. |
bf6ff87
to
14953a2
Compare
14953a2
to
c6807e7
Compare
c6807e7
to
8d1542e
Compare
@@ -51,7 +51,7 @@ class SettingsDialog final : public QDialog | |||
|
|||
public: | |||
explicit SettingsDialog(QWidget* parent); | |||
SettingsDialog(QWidget* parent, std::unique_ptr<SettingsInterface> sif, const GameList::Entry* game, std::string serial, u32 disc_crc); | |||
SettingsDialog(QWidget* parent, std::unique_ptr<SettingsInterface> sif, const GameList::Entry* game, std::string serial, u32 disc_crc, QString filename = QString()); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
const QString&
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm std::move
-ing it in so it's intended, same as std::string serial
.
@@ -79,6 +79,8 @@ class SettingsDialog final : public QDialog | |||
void registerWidgetHelp(QObject* object, QString title, QString recommended_value, QString text); | |||
bool eventFilter(QObject* object, QEvent* event) override; | |||
|
|||
void setWindowTitle(const QString& title); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This might cause a shadowing warning (check the CI logs)
8d1542e
to
48e2a95
Compare
Causes crash on Linux upon opening the game properties dialog. Crash Log:
|
48e2a95
to
71e042d
Compare
Largely inspired by PCSX2/pcsx2#9330, but almost entirely rewritten.
Largely inspired by PCSX2/pcsx2#9330, but almost entirely rewritten.
Largely inspired by PCSX2/pcsx2#9330, but almost entirely rewritten.
Description of Changes
This PR adds an ability to override game names and regions on the list, which can be useful when using romhacks. With this change, two previously "identical" entries can be given unique names and/or regions. These attributes are being saved into a new
custom_properties.ini
file, where each section name is a full path to a file.A new "Restore" buttons have been added to the Game Summary which restore the original property. Deleting the custom Title restores the default one.
To-do and/or agree on:
Should this be only possible for titles or also serials and regions?It is titles and regions now.Is an Edit button a good UX? Maybe those fields should just become editable as-is?It is Restore instead now.Rationale behind Changes
Less ambiguity when using romhacks or multiple versions of the same game in general.
Suggested Testing Steps