Commit graph

15 commits

Author SHA1 Message Date
Bart Trzynadlowski 83144f80b7 Config nodes: added the ability to clear out node values or create empty leaf nodes 2023-03-09 10:34:51 -08:00
Ian Curtis bc774ca10e methods should be marked as noexcept because they cannot throw 2021-12-19 17:48:38 +00:00
SpinDizzy 08d4735ee8 Huge refactor of the Driveboard:
-Separate each possible boards (wheel, joystick, skipad, billboard).
-Defined a Driveboard type in Games.xml for each games.
-Due to the refactoring, Driveboard Savestates have changed (a common base data + a specific board data are saved).
-Backwards compatibility with previous save states is maintained.
-Driveboard rom section is no longer required anymore. This disables Driveboard emulation in case the rom is not found.
-Added Billboard emulation (vf3, vs2, fvipers2, von2). 7 segments and lamps Outputs are redirected to Supermodel outputs.
-Changes project to C++ 17 standard.
2021-02-18 10:29:15 +00:00
Bart Trzynadlowski 9dd2b24729 Fixed behavior of Util::Config::Node when adding nested nodes (only leaf level can be duplicated; e.g., foo/bar and foo/bar will create one foo with two bar children, rather than two foo each with one bar). 2017-04-11 07:03:10 +00:00
Ian Curtis 3fefff36c2 fix multiple default constructors 2017-03-27 18:15:15 +00:00
Bart Trzynadlowski 2efe18b525 Added support for multiple value types in config nodes.
Removed Ptr_t and ConstPtr_t from public interface, moved config tree builders into their own file, and made them pass by reference and value.
Exceptions can be thrown now on lookup failures.
Removed s_empty_node -- failed lookups in [] operator create a permanent "hidden" child.
Updated comment in NewConfig.cpp.
2016-08-21 22:22:45 +00:00
Bart Trzynadlowski 01a6ad1596 Added copy constructor and assignment operator using C++11 move semantics 2016-08-19 00:01:45 +00:00
Bart Trzynadlowski fbeeb3c922 Support for deep copies via assignment operator. This will pave the way for elimination of Ptr_t and ConstPtr_t. 2016-08-18 04:14:36 +00:00
Bart Trzynadlowski 1dc360a8b0 Changes to game loader interface, added 32-bit word swapping utility function 2016-08-11 03:53:19 +00:00
Bart Trzynadlowski 718c237063 Added ValueAsBool(), ValueAsBoolWithDefault(), and ValueAsUnsignedWithDefault() 2016-08-10 03:27:01 +00:00
Bart Trzynadlowski 52d6eac7e5 Added Util::Config::Node::ValueAsUnsigned() with support for base 10 and 16 ('0x' prefix) 2016-07-10 04:25:41 +00:00
Bart Trzynadlowski a84aacf80b Config::Node::Add() now supports nested keys (e.g., Add("foo/bar/baz", "0") will create three nested config nodes) 2016-07-09 15:19:17 +00:00
Bart Trzynadlowski 24c341120a Changed Config::Node::Create() to Add() and added a Set() method (for INI semantics). Turned Test_Config.cpp into a proper unit test reporting pass/fail for each test. 2016-07-09 14:45:48 +00:00
Bart Trzynadlowski 724dc93294 XML parsing support for new config system 2016-07-07 04:59:10 +00:00
Bart Trzynadlowski bcc663d4eb Moved logging functions into OSD/Logger.cpp (eventually logging system will be reworked entirely) and added new config tree structure (not yet used). 2016-07-05 01:15:58 +00:00