Fixed creation and merging of stella.pro to DefProps.hxx.

This commit is contained in:
Stephen Anthony 2022-05-20 19:07:04 -02:30
parent 264e573cf8
commit 5b788cac1e
6 changed files with 1545 additions and 1544 deletions

View File

@ -12,7 +12,7 @@
Release History Release History
=========================================================================== ===========================================================================
6.6 to 6.7 (May 31, 2002) 6.6 to 6.7 (May 31, 2022)
* Completely reworked the file launcher: * Completely reworked the file launcher:
- Redesigned user interface - Redesigned user interface

View File

@ -70,7 +70,8 @@ namespace {
} }
// - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - // - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
KeyValueRepositoryPropertyFile::KeyValueRepositoryPropertyFile(const FilesystemNode& node) KeyValueRepositoryPropertyFile::KeyValueRepositoryPropertyFile(
const FilesystemNode& node)
: KeyValueRepositoryFile<KeyValueRepositoryPropertyFile>(node) : KeyValueRepositoryFile<KeyValueRepositoryPropertyFile>(node)
{ {
} }
@ -116,6 +117,8 @@ bool KeyValueRepositoryPropertyFile::save(ostream& out, const std::map<string, V
writeQuotedString(out, value.toString()); writeQuotedString(out, value.toString());
out.put('\n'); out.put('\n');
} }
out.put('"'); out.put('"');
out.put('\n'); out.put('\n');
return true; return true;
} }

File diff suppressed because it is too large Load Diff

View File

@ -162,6 +162,8 @@ void Properties::print() const
<< get(PropType::Cart_Sound) << "|" << get(PropType::Cart_Sound) << "|"
<< get(PropType::Cart_StartBank) << "|" << get(PropType::Cart_StartBank) << "|"
<< get(PropType::Cart_Type) << "|" << get(PropType::Cart_Type) << "|"
<< get(PropType::Cart_Highscore) << "|"
<< get(PropType::Cart_Url) << "|"
<< get(PropType::Console_LeftDiff) << "|" << get(PropType::Console_LeftDiff) << "|"
<< get(PropType::Console_RightDiff) << "|" << get(PropType::Console_RightDiff) << "|"
<< get(PropType::Console_TVType) << "|" << get(PropType::Console_TVType) << "|"
@ -179,9 +181,7 @@ void Properties::print() const
<< get(PropType::Display_Format) << "|" << get(PropType::Display_Format) << "|"
<< get(PropType::Display_VCenter) << "|" << get(PropType::Display_VCenter) << "|"
<< get(PropType::Display_Phosphor) << "|" << get(PropType::Display_Phosphor) << "|"
<< get(PropType::Display_PPBlend) << "|" << get(PropType::Display_PPBlend)
<< get(PropType::Cart_Highscore) << "|"
<< get(PropType::Cart_Url)
<< endl; << endl;
} }
@ -223,6 +223,8 @@ void Properties::printHeader()
<< "Cart_Sound|" << "Cart_Sound|"
<< "Cart_StartBank|" << "Cart_StartBank|"
<< "Cart_Type|" << "Cart_Type|"
<< "Cart_Highscore|"
<< "Cart_Url|"
<< "Console_LeftDiff|" << "Console_LeftDiff|"
<< "Console_RightDiff|" << "Console_RightDiff|"
<< "Console_TVType|" << "Console_TVType|"
@ -240,9 +242,7 @@ void Properties::printHeader()
<< "Display_Format|" << "Display_Format|"
<< "Display_VCenter|" << "Display_VCenter|"
<< "Display_Phosphor|" << "Display_Phosphor|"
<< "Display_PPBlend|" << "Display_PPBlend"
<< "Cart_Highscore|"
<< "Cart_Url"
<< endl; << endl;
} }
@ -258,6 +258,8 @@ std::array<string, Properties::NUM_PROPS> Properties::ourDefaultProperties =
"MONO", // Cart.Sound "MONO", // Cart.Sound
"AUTO", // Cart.StartBank "AUTO", // Cart.StartBank
"AUTO", // Cart.Type "AUTO", // Cart.Type
"", // Cart.Highscore
"", // Cart.Url
"B", // Console.LeftDiff "B", // Console.LeftDiff
"B", // Console.RightDiff "B", // Console.RightDiff
"COLOR", // Console.TVType "COLOR", // Console.TVType
@ -275,9 +277,7 @@ std::array<string, Properties::NUM_PROPS> Properties::ourDefaultProperties =
"AUTO", // Display.Format "AUTO", // Display.Format
"0", // Display.VCenter "0", // Display.VCenter
"NO", // Display.Phosphor "NO", // Display.Phosphor
"0", // Display.PPBlend "0" // Display.PPBlend
"", // Cart.Highscore
"" // Cart.Url
}; };
// - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - // - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
@ -292,6 +292,8 @@ std::array<string, Properties::NUM_PROPS> Properties::ourPropertyNames =
"Cart.Sound", "Cart.Sound",
"Cart.StartBank", "Cart.StartBank",
"Cart.Type", "Cart.Type",
"Cart.Highscore",
"Cart.Url",
"Console.LeftDiff", "Console.LeftDiff",
"Console.RightDiff", "Console.RightDiff",
"Console.TVType", "Console.TVType",
@ -309,7 +311,5 @@ std::array<string, Properties::NUM_PROPS> Properties::ourPropertyNames =
"Display.Format", "Display.Format",
"Display.VCenter", "Display.VCenter",
"Display.Phosphor", "Display.Phosphor",
"Display.PPBlend", "Display.PPBlend"
"Cart.Highscore",
"Cart.Url"
}; };

View File

@ -31,6 +31,8 @@ enum class PropType : uInt8 {
Cart_Sound, Cart_Sound,
Cart_StartBank, Cart_StartBank,
Cart_Type, Cart_Type,
Cart_Highscore,
Cart_Url,
Console_LeftDiff, Console_LeftDiff,
Console_RightDiff, Console_RightDiff,
Console_TVType, Console_TVType,
@ -49,8 +51,6 @@ enum class PropType : uInt8 {
Display_VCenter, Display_VCenter,
Display_Phosphor, Display_Phosphor,
Display_PPBlend, Display_PPBlend,
Cart_Highscore,
Cart_Url,
NumTypes NumTypes
}; };

View File

@ -12,40 +12,43 @@ my %prop_type = (
"Cart.Sound" => 6, "Cart.Sound" => 6,
"Cart.StartBank" => 7, "Cart.StartBank" => 7,
"Cart.Type" => 8, "Cart.Type" => 8,
"Console.LeftDiff" => 9, "Cart.Highscore" => 9,
"Console.RightDiff" => 10, "Cart.Url" => 10,
"Console.TVType" => 11, "Console.LeftDiff" => 11,
"Console.SwapPorts" => 12, "Console.RightDiff" => 12,
"Controller.Left" => 13, "Console.TVType" => 13,
"Controller.Left1" => 14, "Console.SwapPorts" => 14,
"Controller.Left2" => 15, "Controller.Left" => 15,
"Controller.Right" => 16, "Controller.Left1" => 16,
"Controller.Right1" => 17, "Controller.Left2" => 17,
"Controller.Right2" => 18, "Controller.Right" => 18,
"Controller.SwapPaddles" => 19, "Controller.Right1" => 19,
"Controller.PaddlesXCenter" => 20, "Controller.Right2" => 20,
"Controller.PaddlesYCenter" => 21, "Controller.SwapPaddles" => 21,
"Controller.MouseAxis" => 22, "Controller.PaddlesXCenter" => 22,
"Display.Format" => 23, "Controller.PaddlesYCenter" => 23,
"Display.VCenter" => 24, "Controller.MouseAxis" => 24,
"Display.Phosphor" => 25, "Display.Format" => 25,
"Display.PPBlend" => 26, "Display.VCenter" => 26,
"Cart.Highscore" => 27, "Display.Phosphor" => 27,
"Cart.Url" => 28 "Display.PPBlend" => 28
); );
my @prop_type_as_string = ( my @prop_type_as_string = (
"Cart.MD5", "Cart.MD5",
"Cart.Manufacturer", "Cart.Manufacturer",
"Cart.ModelNo", "Cart.ModelNo",
"Cart.Name", "Cart.Name",
"Cart.Note", "Cart.Note",
"Cart.Rarity", "Cart.Rarity",
"Cart.Sound", "Cart.Sound",
"Cart.StartBank", "Cart.StartBank",
"Cart.Type", "Cart.Type",
"Console.LeftDiff", "Cart.Highscore",
"Console.RightDiff", "Cart.Url",
"Console.TVType", "Console.LeftDiff",
"Console.RightDiff",
"Console.TVType",
"Console.SwapPorts",
"Controller.Left", "Controller.Left",
"Controller.Left1", "Controller.Left1",
"Controller.Left2", "Controller.Left2",
@ -59,44 +62,39 @@ my @prop_type_as_string = (
"Display.Format", "Display.Format",
"Display.VCenter", "Display.VCenter",
"Display.Phosphor", "Display.Phosphor",
"Display.PPBlend", "Display.PPBlend"
"Cart_Highscore", );
"Cart_Url"
);
my @prop_defaults = ( my @prop_defaults = (
"", # Cart.MD5 "", # Cart.MD5
"", # Cart.Manufacturer "", # Cart.Manufacturer
"", # Cart.ModelNo "", # Cart.ModelNo
"", # Cart.Name "", # Cart.Name
"", # Cart.Note "", # Cart.Note
"", # Cart.Rarity "", # Cart.Rarity
"MONO", # Cart.Sound "MONO", # Cart.Sound
"AUTO", # Cart.StartBank "AUTO", # Cart.StartBank
"AUTO", # Cart.Type "AUTO", # Cart.Type
"B", # Console.LeftDiff "", # Cart.Highscore
"B", # Console.RightDiff "", # Cart.Url
"COLOR", # Console.TVType "B", # Console.LeftDiff
"NO", # Console.SwapPorts "B", # Console.RightDiff
"", # Controller.Left "COLOR", # Console.TVType
"", # Controller.Left1 "NO", # Console.SwapPorts
"", # Controller.Left2 "", # Controller.Left
"", # Controller.Right "", # Controller.Left1
"", # Controller.Right1 "", # Controller.Left2
"", # Controller.Right2 "", # Controller.Right
"NO", # Controller.SwapPaddles "", # Controller.Right1
"0", # Controller.PaddlesXCenter "", # Controller.Right2
"0", # Controller.PaddlesYCenter "NO", # Controller.SwapPaddles
"AUTO", # Controller.MouseAxis "0", # Controller.PaddlesXCenter
"AUTO", # Display.Format "0", # Controller.PaddlesYCenter
"0", # Display.VCenter "AUTO", # Controller.MouseAxis
"NO", # Display.Phosphor "AUTO", # Display.Format
"0", # Display.PPBlend "0", # Display.VCenter
"1", # Cart.Variations "NO", # Display.Phosphor
"", # Cart.Formats "0" # Display.PPBlend
"", # Cart.Addresses
"", # Cart.Highscore
"" # Cart.Url
); );
# Load and parse a properties file into an hash table of property # Load and parse a properties file into an hash table of property