mirror of
https://github.com/spice2x/spice2x.github.io.git
synced 2026-08-02 06:40:42 -07:00
loveplus: add printer options (#325)
## Link to GitHub Issue, if one exists n/a ## Description of change Add the same options as SDVX printer. ## Testing Tested all options with LP.
This commit is contained in:
@@ -662,21 +662,42 @@ int main_implementation(int argc, char *argv[]) {
|
||||
if (options[launcher::Options::SDVXPrinterEmulation].value_bool()) {
|
||||
attach_cpusbxpkm_printer = true;
|
||||
}
|
||||
if (options[launcher::Options::SDVXPrinterOutputOverwrite].value_bool()) {
|
||||
|
||||
// printer overwrite
|
||||
if (options[launcher::Options::SDVXPrinterOutputOverwrite].value_bool() ||
|
||||
options[launcher::Options::LovePlusPrinterOutputOverwrite].value_bool()) {
|
||||
games::shared::PRINTER_OVERWRITE_FILE = true;
|
||||
}
|
||||
|
||||
// printer output path
|
||||
for (auto &path : options[launcher::Options::SDVXPrinterOutputPath].values_text()) {
|
||||
games::shared::PRINTER_PATH.push_back(path);
|
||||
}
|
||||
for (auto &path : options[launcher::Options::LovePlusPrinterOutputPath].values_text()) {
|
||||
games::shared::PRINTER_PATH.push_back(path);
|
||||
}
|
||||
|
||||
// printer file format
|
||||
for (auto &path : options[launcher::Options::SDVXPrinterOutputFormat].values_text()) {
|
||||
games::shared::PRINTER_FORMAT.push_back(path);
|
||||
}
|
||||
for (auto &path : options[launcher::Options::LovePlusPrinterOutputFormat].values_text()) {
|
||||
games::shared::PRINTER_FORMAT.push_back(path);
|
||||
}
|
||||
|
||||
// printer JPG quality
|
||||
if (options[launcher::Options::SDVXPrinterJPGQuality].is_active()) {
|
||||
games::shared::PRINTER_JPG_QUALITY = options[launcher::Options::SDVXPrinterJPGQuality].value_uint32();
|
||||
} else if (options[launcher::Options::LovePlusPrinterJPGQuality].is_active()) {
|
||||
games::shared::PRINTER_JPG_QUALITY = options[launcher::Options::LovePlusPrinterJPGQuality].value_uint32();
|
||||
}
|
||||
if (options[launcher::Options::SDVXPrinterOutputClear].value_bool()) {
|
||||
|
||||
// printer output clear
|
||||
if (options[launcher::Options::SDVXPrinterOutputClear].value_bool() ||
|
||||
options[launcher::Options::LovePlusPrinterOutputClear].value_bool()) {
|
||||
games::shared::PRINTER_CLEAR = true;
|
||||
}
|
||||
|
||||
if (options[launcher::Options::HTTP11].is_active()) {
|
||||
avs::ea3::HTTP11 = options[launcher::Options::HTTP11].value_uint32();
|
||||
}
|
||||
|
||||
@@ -694,7 +694,7 @@ static const std::vector<OptionDefinition> OPTION_DEFINITIONS = {
|
||||
{
|
||||
.title = "SDVX Printer Output Format",
|
||||
.name = "printerformat",
|
||||
.desc = "Path to folder where images will be stored",
|
||||
.desc = "File format for printer output",
|
||||
.type = OptionType::Text,
|
||||
.setting_name = "(png/bmp/tga/jpg)",
|
||||
.game_name = "Sound Voltex",
|
||||
@@ -2258,7 +2258,49 @@ static const std::vector<OptionDefinition> OPTION_DEFINITIONS = {
|
||||
.type = OptionType::Bool,
|
||||
.game_name = "LovePlus",
|
||||
.category = "Game Options",
|
||||
}
|
||||
},
|
||||
{
|
||||
.title = "LovePlus Printer Output Path",
|
||||
.name = "lpprinterpath",
|
||||
.desc = "Path to folder where images will be stored",
|
||||
.type = OptionType::Text,
|
||||
.game_name = "LovePlus",
|
||||
.category = "Game Options (Advanced)",
|
||||
},
|
||||
{
|
||||
.title = "LovePlus Printer Output Clear",
|
||||
.name = "lpprinterclear",
|
||||
.desc = "Clean up saved images in the output directory on startup",
|
||||
.type = OptionType::Bool,
|
||||
.game_name = "LovePlus",
|
||||
.category = "Game Options (Advanced)",
|
||||
},
|
||||
{
|
||||
.title = "LovePlus Printer Output Overwrite",
|
||||
.name = "lpprinteroverwrite",
|
||||
.desc = "Always overwrite the same file in output directory",
|
||||
.type = OptionType::Bool,
|
||||
.game_name = "LovePlus",
|
||||
.category = "Game Options (Advanced)",
|
||||
},
|
||||
{
|
||||
.title = "LovePlus Printer Output Format",
|
||||
.name = "lpprinterformat",
|
||||
.desc = "File format for printer output",
|
||||
.type = OptionType::Text,
|
||||
.setting_name = "(png/bmp/tga/jpg)",
|
||||
.game_name = "LovePlus",
|
||||
.category = "Game Options (Advanced)",
|
||||
},
|
||||
{
|
||||
.title = "LovePlus Printer JPG Quality",
|
||||
.name = "lpprinterjpgquality",
|
||||
.desc = "Quality setting in percent if JPG format is used",
|
||||
.type = OptionType::Integer,
|
||||
.setting_name = "(0-100)",
|
||||
.game_name = "LovePlus",
|
||||
.category = "Game Options (Advanced)",
|
||||
},
|
||||
};
|
||||
|
||||
const std::vector<std::string> &launcher::get_categories(Options::OptionsCategory category) {
|
||||
|
||||
@@ -241,6 +241,11 @@ namespace launcher {
|
||||
SDVXWindowedSubscreenBorderless,
|
||||
SDVXWindowedSubscreenAlwaysOnTop,
|
||||
LovePlusCamEnable,
|
||||
LovePlusPrinterOutputPath,
|
||||
LovePlusPrinterOutputClear,
|
||||
LovePlusPrinterOutputOverwrite,
|
||||
LovePlusPrinterOutputFormat,
|
||||
LovePlusPrinterJPGQuality,
|
||||
};
|
||||
|
||||
enum class OptionsCategory {
|
||||
|
||||
Reference in New Issue
Block a user