mirror of
https://github.com/FEX-Emu/FEX.git
synced 2026-10-07 10:00:16 +02:00
In the case of multiple dozens of tests running, they will end up loading and saving the config files dozens of times. This was causing the configuration system to load in half saved files that were causing common crashes in the posix unit tests. Theoretically this could have happened at any time but it looks like with the posix unit tests added, it is just more likely to happen. Makes it so loading the configuration file is much more robust and verbose on failure. Makes it so saving the config file first saves to a temporary and then moves in to the correct location. This causes the config saving to be atomic in a sense so the unit tests won't corrupt other processes of FEX trying to load the config file.