use zip name for atmosphere mods

Signed-off-by: crueter <crueter@eden-emu.dev>
This commit is contained in:
crueter 2026-06-01 21:28:02 -04:00
parent 5ba2b06306
commit 4ecfe99201
No known key found for this signature in database
GPG key ID: 425ACD2D4830EBC6

View file

@ -33,7 +33,10 @@ QStringList GetModFolders(const QString& root, const QString& fallbackName) {
std_path = paths[0];
QString default_name;
if (!paths.empty())
// If this is an atmosphere-packed mod, the default name will end up as the game's title ID.
// So in this case ignore it and use the zip name instead
if (!paths.empty() && std_path.string().find("atmosphere") == std::string::npos)
default_name = QString::fromStdString(std_path.filename().string());
else if (!fallbackName.isEmpty())
default_name = fallbackName;