mirror of
https://github.com/CalcProgrammer1/OpenRGB.git
synced 2026-03-24 08:51:07 -04:00
ProfileManager: trunc flag to file overwrite
This commit is contained in:
committed by
Adam Honse
parent
bca9407f70
commit
75a14f2250
@@ -52,7 +52,7 @@ bool ProfileManager::SaveProfile(std::string profile_name, bool sizes)
|
||||
/*---------------------------------------------------------*\
|
||||
| Open an output file in binary mode |
|
||||
\*---------------------------------------------------------*/
|
||||
std::ofstream controller_file(configuration_directory + filename, std::ios::out | std::ios::binary);
|
||||
std::ofstream controller_file(configuration_directory + filename, std::ios::out | std::ios::binary | std::ios::trunc);
|
||||
|
||||
/*---------------------------------------------------------*\
|
||||
| Write header |
|
||||
|
||||
Reference in New Issue
Block a user