mirror of
https://github.com/spice2x/spice2x.github.io.git
synced 2026-08-02 06:40:42 -07:00
ddr: automatically register codecs on launch (#351)
## Link to GitHub Issue, if one exists #345 ## Description of change On launch of spice.exe / spice64.exe, call `regsvr32` on known codecs in the `com` directory. Add an option to skip this (`-ddrnocodec`) as a chicken bit. ## Testing Tested 32 and 64 bit DDR.
This commit is contained in:
@@ -629,6 +629,9 @@ int main_implementation(int argc, char *argv[]) {
|
||||
if (options[launcher::Options::DDR43Mode].value_bool()) {
|
||||
games::ddr::SDMODE = true;
|
||||
}
|
||||
if (options[launcher::Options::DDRSkipCodecRegisteration].value_bool()) {
|
||||
games::ddr::NO_CODEC_REGISTRATION = true;
|
||||
}
|
||||
if (options[launcher::Options::LoadSteelChronicleModule].value_bool()) {
|
||||
attach_sc = true;
|
||||
}
|
||||
|
||||
@@ -809,6 +809,15 @@ static const std::vector<OptionDefinition> OPTION_DEFINITIONS = {
|
||||
.game_name = "Dance Dance Revolution",
|
||||
.category = "Game Options",
|
||||
},
|
||||
{
|
||||
// DDRSkipCodecRegisteration
|
||||
.title = "DDR Skip Codec Registration",
|
||||
.name = "ddrnocodec",
|
||||
.desc = "Prevent automatic registration of codecs in the com folder",
|
||||
.type = OptionType::Bool,
|
||||
.game_name = "Dance Dance Revolution",
|
||||
.category = "Game Options (Advanced)",
|
||||
},
|
||||
{
|
||||
.title = "Force Load Pop'n Music Module",
|
||||
.name = "pnm",
|
||||
|
||||
@@ -86,6 +86,7 @@ namespace launcher {
|
||||
spice2x_SDVXSubRedraw,
|
||||
LoadDDRModule,
|
||||
DDR43Mode,
|
||||
DDRSkipCodecRegisteration,
|
||||
LoadPopnMusicModule,
|
||||
PopnMusicForceHDMode,
|
||||
PopnMusicForceSDMode,
|
||||
|
||||
Reference in New Issue
Block a user