mirror of
https://github.com/sudoxnym/open-hyperion.git
synced 2026-04-14 11:36:31 +00:00
Save and load json to plugins directory
This commit is contained in:
parent
2339f3a813
commit
cb0cbf6946
1 changed files with 2 additions and 2 deletions
|
|
@ -722,7 +722,7 @@ void OpenRGBE131ReceiverDialog::on_ButtonSaveMap_clicked()
|
|||
/*-----------------------------------------------------*\
|
||||
| Write out the JSON structure to a file |
|
||||
\*-----------------------------------------------------*/
|
||||
std::ofstream universe_file("E131UniverseMap.json", std::ios::out | std::ios::binary);
|
||||
std::ofstream universe_file(resource_manager->GetConfigurationDirectory() + "/plugins/E131UniverseMap.json", std::ios::out | std::ios::binary);
|
||||
|
||||
if(universe_file)
|
||||
{
|
||||
|
|
@ -749,7 +749,7 @@ void OpenRGBE131ReceiverDialog::on_ButtonLoadMap_clicked()
|
|||
/*---------------------------------------------------------*\
|
||||
| Open input file in binary mode |
|
||||
\*---------------------------------------------------------*/
|
||||
std::ifstream universe_file("E131UniverseMap.json", std::ios::in | std::ios::binary);
|
||||
std::ifstream universe_file(resource_manager->GetConfigurationDirectory() + "/plugins/E131UniverseMap.json", std::ios::in | std::ios::binary);
|
||||
|
||||
/*---------------------------------------------------------*\
|
||||
| Read settings into JSON store |
|
||||
|
|
|
|||
Loading…
Reference in a new issue