|
|
@ -1334,13 +1334,10 @@ void GMainWindow::BootGame(const QString& filename, std::size_t program_index) {
|
|
|
|
|
|
|
|
|
|
|
|
if (!(loader == nullptr || loader->ReadProgramId(title_id) != Loader::ResultStatus::Success)) {
|
|
|
|
if (!(loader == nullptr || loader->ReadProgramId(title_id) != Loader::ResultStatus::Success)) {
|
|
|
|
// Load per game settings
|
|
|
|
// Load per game settings
|
|
|
|
if (title_id == 0) {
|
|
|
|
const auto config_file_name = title_id == 0
|
|
|
|
Config per_game_config(Common::FS::GetFilename(filename.toStdString()),
|
|
|
|
? Common::FS::GetFilename(filename.toStdString())
|
|
|
|
Config::ConfigType::PerGameConfig);
|
|
|
|
: fmt::format("{:016X}", title_id);
|
|
|
|
} else {
|
|
|
|
Config per_game_config(config_file_name, Config::ConfigType::PerGameConfig);
|
|
|
|
Config per_game_config(fmt::format("{:016X}", title_id),
|
|
|
|
|
|
|
|
Config::ConfigType::PerGameConfig);
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
ConfigureVibration::SetAllVibrationDevices();
|
|
|
|
ConfigureVibration::SetAllVibrationDevices();
|
|
|
@ -1850,15 +1847,11 @@ void GMainWindow::RemoveTransferableShaderCache(u64 program_id) {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
void GMainWindow::RemoveCustomConfiguration(u64 program_id, std::string_view game_path) {
|
|
|
|
void GMainWindow::RemoveCustomConfiguration(u64 program_id, std::string_view game_path) {
|
|
|
|
std::string custom_config_file_path;
|
|
|
|
const auto config_file_name = program_id == 0
|
|
|
|
if (program_id == 0) {
|
|
|
|
? fmt::format("{:s}.ini", Common::FS::GetFilename(game_path))
|
|
|
|
custom_config_file_path = Common::FS::GetYuzuPath(Common::FS::YuzuPath::ConfigDir) /
|
|
|
|
: fmt::format("{:016X}.ini", program_id);
|
|
|
|
"custom" /
|
|
|
|
const auto custom_config_file_path =
|
|
|
|
fmt::format("{:s}.ini", Common::FS::GetFilename(game_path));
|
|
|
|
Common::FS::GetYuzuPath(Common::FS::YuzuPath::ConfigDir) / "custom" / config_file_name;
|
|
|
|
} else {
|
|
|
|
|
|
|
|
custom_config_file_path = Common::FS::GetYuzuPath(Common::FS::YuzuPath::ConfigDir) /
|
|
|
|
|
|
|
|
"custom" / fmt::format("{:016X}.ini", program_id);
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if (!Common::FS::Exists(custom_config_file_path)) {
|
|
|
|
if (!Common::FS::Exists(custom_config_file_path)) {
|
|
|
|
QMessageBox::warning(this, tr("Error Removing Custom Configuration"),
|
|
|
|
QMessageBox::warning(this, tr("Error Removing Custom Configuration"),
|
|
|
|