Mercurial > foo_out_sdl
annotate 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 |
| rev | line source |
|---|---|
| 1 | 1 #include "foobar2000-sdk-pch.h" |
| 2 #include "filesystem.h" | |
| 3 #include "config_io_callback.h" | |
| 4 | |
| 5 static filesystem::ptr defaultFS() { | |
| 6 return filesystem::get( core_api::get_profile_path() ); | |
| 7 } | |
| 8 | |
| 9 void config_io_callback_v3::on_quicksave() { | |
| 10 this->on_quicksave_v3(defaultFS()); | |
| 11 } | |
| 12 void config_io_callback_v3::on_write(bool bReset) { | |
| 13 auto fs = defaultFS(); | |
| 14 if (bReset) this->on_reset_v3(fs); | |
| 15 else this->on_write_v3(fs); | |
| 16 } |
