Separate audio section
This commit is contained in:
parent
08fac83109
commit
dc2d2059ee
18
README.md
18
README.md
@ -41,14 +41,6 @@ auto_ime = false
|
||||
# unlock all songs
|
||||
unlock_songs = true
|
||||
|
||||
[patches.audio]
|
||||
# wasapi shared mode
|
||||
wasapi_shared = true
|
||||
# use asio
|
||||
asio = false
|
||||
# asio driver name
|
||||
asio_driver = ""
|
||||
|
||||
[patches.cn_jun_2023]
|
||||
# sync test mode language to attract etc.
|
||||
fix_language = false
|
||||
@ -58,7 +50,15 @@ unlock_songs = true
|
||||
mode_collabo025 = false
|
||||
# enable ai soshina mode
|
||||
mode_collabo026 = false
|
||||
|
||||
|
||||
[audio]
|
||||
# wasapi shared mode
|
||||
wasapi_shared = true
|
||||
# use asio
|
||||
asio = false
|
||||
# asio driver name
|
||||
asio_driver = ""
|
||||
|
||||
[card_reader]
|
||||
# enable card reader emulation
|
||||
enabled = true
|
||||
|
10
dist/config.toml
vendored
10
dist/config.toml
vendored
@ -14,17 +14,17 @@ vsync = false
|
||||
auto_ime = false
|
||||
unlock_songs = true
|
||||
|
||||
[patches.audio]
|
||||
wasapi_shared = true
|
||||
asio = false
|
||||
asio_driver = ""
|
||||
|
||||
[patches.cn_jun_2023]
|
||||
fix_language = false
|
||||
demo_movie = true
|
||||
mode_collabo025 = false
|
||||
mode_collabo026 = false
|
||||
|
||||
[audio]
|
||||
wasapi_shared = true
|
||||
asio = false
|
||||
asio_driver = ""
|
||||
|
||||
[card_reader]
|
||||
enabled = true
|
||||
|
||||
|
@ -42,14 +42,11 @@ Init () {
|
||||
auto configPath = std::filesystem::current_path () / "config.toml";
|
||||
std::unique_ptr<toml_table_t, void (*) (toml_table_t *)> config_ptr (openConfig (configPath), toml_free);
|
||||
if (config_ptr) {
|
||||
auto patches = openConfigSection (config_ptr.get (), "patches");
|
||||
if (patches) {
|
||||
auto audio = openConfigSection (patches, "audio");
|
||||
if (audio) {
|
||||
wasapiShared = readConfigBool (audio, "wasapi_shared", wasapiShared);
|
||||
asio = readConfigBool (audio, "asio", asio);
|
||||
asioDriver = readConfigString (audio, "asio_driver", asioDriver);
|
||||
}
|
||||
auto audio = openConfigSection (config_ptr.get (), "audio");
|
||||
if (audio) {
|
||||
wasapiShared = readConfigBool (audio, "wasapi_shared", wasapiShared);
|
||||
asio = readConfigBool (audio, "asio", asio);
|
||||
asioDriver = readConfigString (audio, "asio_driver", asioDriver);
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user