diff options
author | 2017-12-28 15:40:47 -0700 | |
---|---|---|
committer | 2017-12-28 17:40:47 -0500 | |
commit | 6cde1460c710614824f9f01e301f880c711e7cf5 (patch) | |
tree | 1640335fdbc9542966894c89359371649b11573f /src/emu/config.cpp | |
parent | 70bf7b64399149faa57c36642f9954d2c1daac80 (diff) |
Add verbose logging for CFG files (#2980)
* Basic anchor links for FAQ page
* Add verbose logging for CFG files
We already have verbose logging for INI files that get parsed, so having CFGs get similar treatment is useful.
Diffstat (limited to 'src/emu/config.cpp')
-rw-r--r-- | src/emu/config.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/emu/config.cpp b/src/emu/config.cpp index bb6055fc1d9..3574eb2d12e 100644 --- a/src/emu/config.cpp +++ b/src/emu/config.cpp @@ -68,6 +68,7 @@ int configuration_manager::load_settings() { /* open the config file */ emu_file file(machine().options().ctrlr_path(), OPEN_FLAG_READ); + osd_printf_verbose("Attempting to parse: %s.cfg\n",controller); osd_file::error filerr = file.open(controller, ".cfg"); if (filerr != osd_file::error::NONE) @@ -81,11 +82,13 @@ int configuration_manager::load_settings() /* next load the defaults file */ emu_file file(machine().options().cfg_directory(), OPEN_FLAG_READ); osd_file::error filerr = file.open("default.cfg"); + osd_printf_verbose("Attempting to parse: default.cfg\n"); if (filerr == osd_file::error::NONE) load_xml(file, config_type::DEFAULT); /* finally, load the game-specific file */ filerr = file.open(machine().basename(), ".cfg"); + osd_printf_verbose("Attempting to parse: %s.cfg\n",machine().basename()); if (filerr == osd_file::error::NONE) loaded = load_xml(file, config_type::GAME); @@ -94,7 +97,7 @@ int configuration_manager::load_settings() type.load(config_type::FINAL, nullptr); /* if we didn't find a saved config, return 0 so the main core knows that it */ - /* is the first time the game is run and it should diplay the disclaimer. */ + /* is the first time the game is run and it should display the disclaimer. */ return loaded; } |