summaryrefslogtreecommitdiff
path: root/src/yuzu/configuration/input_profiles.cpp
diff options
context:
space:
mode:
authorMorph <39850852+Morph1984@users.noreply.github.com>2022-09-16 12:47:51 -0400
committerGitHub <noreply@github.com>2022-09-16 12:47:51 -0400
commit44ccec78463ec5b177fa027866b8923a71dbba88 (patch)
treef00144f557a953df761f973d2baaaa34a35d1f3f /src/yuzu/configuration/input_profiles.cpp
parent882dfa36ae25fc6d0167c2c0fbce1e19c1406fae (diff)
parent9dc9e501debda06ff31a3e2fe8875ffa0d94e40b (diff)
Merge pull request #8682 from lat9nq/dumpy
yuzu qt: Add option to create Windows crash dumps
Diffstat (limited to 'src/yuzu/configuration/input_profiles.cpp')
-rw-r--r--src/yuzu/configuration/input_profiles.cpp9
1 files changed, 4 insertions, 5 deletions
diff --git a/src/yuzu/configuration/input_profiles.cpp b/src/yuzu/configuration/input_profiles.cpp
index 20b22e7de..807afbeb2 100644
--- a/src/yuzu/configuration/input_profiles.cpp
+++ b/src/yuzu/configuration/input_profiles.cpp
@@ -27,7 +27,7 @@ std::filesystem::path GetNameWithoutExtension(std::filesystem::path filename) {
} // namespace
-InputProfiles::InputProfiles(Core::System& system_) : system{system_} {
+InputProfiles::InputProfiles() {
const auto input_profile_loc = FS::GetYuzuPath(FS::YuzuPath::ConfigDir) / "input";
if (!FS::IsDir(input_profile_loc)) {
@@ -43,8 +43,8 @@ InputProfiles::InputProfiles(Core::System& system_) : system{system_} {
if (IsINI(filename) && IsProfileNameValid(name_without_ext)) {
map_profiles.insert_or_assign(
- name_without_ext, std::make_unique<Config>(system, name_without_ext,
- Config::ConfigType::InputProfile));
+ name_without_ext,
+ std::make_unique<Config>(name_without_ext, Config::ConfigType::InputProfile));
}
return true;
@@ -80,8 +80,7 @@ bool InputProfiles::CreateProfile(const std::string& profile_name, std::size_t p
}
map_profiles.insert_or_assign(
- profile_name,
- std::make_unique<Config>(system, profile_name, Config::ConfigType::InputProfile));
+ profile_name, std::make_unique<Config>(profile_name, Config::ConfigType::InputProfile));
return SaveProfile(profile_name, player_index);
}