mirror of
https://github.com/cemu-project/Cemu.git
synced 2024-11-23 11:29:53 +00:00
Input: Assign profile name correctly on save (#1217)
This commit is contained in:
parent
149fe10a4e
commit
aadd2f4a1a
@ -472,15 +472,12 @@ bool InputManager::save(size_t player_index, std::string_view filename)
|
|||||||
emulated_controller->type_string()
|
emulated_controller->type_string()
|
||||||
}.c_str());
|
}.c_str());
|
||||||
|
|
||||||
|
if(!is_default_file)
|
||||||
|
emulated_controller->m_profile_name = std::string{filename};
|
||||||
|
|
||||||
if (emulated_controller->has_profile_name())
|
if (emulated_controller->has_profile_name())
|
||||||
emulated_controller_node.append_child("profile").append_child(pugi::node_pcdata).set_value(
|
emulated_controller_node.append_child("profile").append_child(pugi::node_pcdata).set_value(
|
||||||
emulated_controller->get_profile_name().c_str());
|
emulated_controller->get_profile_name().c_str());
|
||||||
else if (!is_default_file)
|
|
||||||
{
|
|
||||||
emulated_controller->m_profile_name = std::string{filename};
|
|
||||||
emulated_controller_node.append_child("profile").append_child(pugi::node_pcdata).set_value(
|
|
||||||
emulated_controller->get_profile_name().c_str());
|
|
||||||
}
|
|
||||||
|
|
||||||
// custom settings
|
// custom settings
|
||||||
emulated_controller->save(emulated_controller_node);
|
emulated_controller->save(emulated_controller_node);
|
||||||
|
Loading…
Reference in New Issue
Block a user