Mercurial > foo_out_sdl
diff foosdk/sdk/foobar2000/SDK/config_io_callback.cpp @ 1:20d02a178406 default tip
*: check in everything else
yay
| author | Paper <paper@tflc.us> |
|---|---|
| date | Mon, 05 Jan 2026 02:15:46 -0500 |
| parents | |
| children |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/foosdk/sdk/foobar2000/SDK/config_io_callback.cpp Mon Jan 05 02:15:46 2026 -0500 @@ -0,0 +1,16 @@ +#include "foobar2000-sdk-pch.h" +#include "filesystem.h" +#include "config_io_callback.h" + +static filesystem::ptr defaultFS() { + return filesystem::get( core_api::get_profile_path() ); +} + +void config_io_callback_v3::on_quicksave() { + this->on_quicksave_v3(defaultFS()); +} +void config_io_callback_v3::on_write(bool bReset) { + auto fs = defaultFS(); + if (bReset) this->on_reset_v3(fs); + else this->on_write_v3(fs); +}
