mirror of
https://github.com/spice2x/spice2x.github.io.git
synced 2026-08-02 06:40:42 -07:00
Compare commits
1 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| f3d887ebcf |
@@ -486,28 +486,28 @@ namespace games::iidx {
|
|||||||
log_fatal("iidx", "BAD MODEL NAME ERROR - TDJ specified, must be LDJ instead");
|
log_fatal("iidx", "BAD MODEL NAME ERROR - TDJ specified, must be LDJ instead");
|
||||||
}
|
}
|
||||||
|
|
||||||
// check -monitor + TDJ mode
|
// check -dxmainadapter + TDJ mode
|
||||||
if (!GRAPHICS_WINDOWED && D3D9_ADAPTER.has_value() && TDJ_MODE) {
|
if (!GRAPHICS_WINDOWED && D3D9_ADAPTER.has_value() && TDJ_MODE) {
|
||||||
IIDX_TDJ_MONITOR_WARNING = true;
|
IIDX_TDJ_MONITOR_WARNING = true;
|
||||||
log_warning(
|
log_warning(
|
||||||
"iidx",
|
"iidx",
|
||||||
"\n\n!!! using -monitor option with TDJ is NOT recommended due to known !!!\n"
|
"\n\n"
|
||||||
"!!! compatibility issues with the game !!!\n"
|
"!!! using -dxmainadapter option with TDJ is NOT recommended !!!\n"
|
||||||
|
"!!! due to known compatibility issues with the game !!!\n"
|
||||||
"!!! !!!\n"
|
"!!! !!!\n"
|
||||||
"!!! * game may launch in wrong resolution or refresh rate !!!\n"
|
"!!! * game may launch in wrong resolution or refresh rate !!!\n"
|
||||||
"!!! * touch / mouse input may stop working in subscreen / overlay !!!\n"
|
"!!! * touch / mouse input may stop working in subscreen / overlay !!!\n"
|
||||||
"!!! !!!\n"
|
"!!! !!!\n"
|
||||||
"!!! recommendation is to NOT use -monitor and instead set the !!!\n"
|
"!!! recommendation is to use the Change Main Monitor (-mainmonitor) !!!\n"
|
||||||
"!!! primary monitor in Windows settings before launching the game !!!\n\n"
|
"!!! option instead of -dxmainadapter !!!\n\n"
|
||||||
);
|
);
|
||||||
|
|
||||||
deferredlogs::defer_error_messages({
|
deferredlogs::defer_error_messages({
|
||||||
"-monitor option is NOT recommended when running with TDJ mode",
|
"-dxmainadapter option is NOT recommended when running with TDJ mode",
|
||||||
" due to known compatibility issues with the game:",
|
" due to known compatibility issues with the game:",
|
||||||
" * game may launch in wrong resolution or refresh rate",
|
" * game may launch in wrong resolution or refresh rate",
|
||||||
" * touch / mouse input may stop working in subscreen / overlay",
|
" * touch / mouse input may stop working in subscreen / overlay",
|
||||||
" recommended fix is to NOT use -monitor and instead set the primary",
|
" use Change Main Monitor (-mainmonitor) option instead"
|
||||||
" monitor in Windows settings before launching the game"
|
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -350,28 +350,28 @@ namespace games::sdvx {
|
|||||||
}
|
}
|
||||||
|
|
||||||
#ifdef SPICE64 // SDVX5+ specific code
|
#ifdef SPICE64 // SDVX5+ specific code
|
||||||
// check -monitor + UFC mode
|
// check -dxmainadapter + UFC mode
|
||||||
if (!GRAPHICS_WINDOWED && D3D9_ADAPTER.has_value() && is_valkyrie_model()) {
|
if (!GRAPHICS_WINDOWED && D3D9_ADAPTER.has_value() && is_valkyrie_model()) {
|
||||||
SHOW_VM_MONITOR_WARNING = true;
|
SHOW_VM_MONITOR_WARNING = true;
|
||||||
log_warning(
|
log_warning(
|
||||||
"sdvx",
|
"iidx",
|
||||||
"\n\n!!! using -monitor option with VM mode is NOT recommended due to !!!\n"
|
"\n\n"
|
||||||
"!!! known compatibility issues with the game !!!\n"
|
"!!! using -dxmainadapter option with Valkyrie mode is NOT !!!\n"
|
||||||
|
"!!! recommended due to known compatibility issues with the game !!!\n"
|
||||||
"!!! !!!\n"
|
"!!! !!!\n"
|
||||||
"!!! * game may launch in wrong resolution or refresh rate !!!\n"
|
"!!! * game may launch in wrong resolution or refresh rate !!!\n"
|
||||||
"!!! * touch / mouse input may stop working in subscreen / overlay !!!\n"
|
"!!! * touch / mouse input may stop working in subscreen / overlay !!!\n"
|
||||||
"!!! !!!\n"
|
"!!! !!!\n"
|
||||||
"!!! recommendation is to NOT use -monitor and instead set the !!!\n"
|
"!!! recommendation is to use the Change Main Monitor (-mainmonitor) !!!\n"
|
||||||
"!!! primary monitor in Windows settings before launching the game !!!\n\n"
|
"!!! option instead of -dxmainadapter !!!\n\n"
|
||||||
);
|
);
|
||||||
|
|
||||||
deferredlogs::defer_error_messages({
|
deferredlogs::defer_error_messages({
|
||||||
"-monitor option is NOT recommended when running with Valkyrie mode",
|
"-dxmainadapter option is NOT recommended when running with Valkyrie mode",
|
||||||
" due to known compatibility issues with the game:",
|
" due to known compatibility issues with the game:",
|
||||||
" * game may launch in wrong resolution or refresh rate",
|
" * game may launch in wrong resolution or refresh rate",
|
||||||
" * touch / mouse input may stop working in subscreen / overlay",
|
" * touch / mouse input may stop working in subscreen / overlay",
|
||||||
" recommended fix is to NOT use -monitor and instead set the primary",
|
" use Change Main Monitor (-mainmonitor) option instead"
|
||||||
" monitor in Windows settings before launching the game"
|
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|||||||
@@ -351,9 +351,9 @@ int main_implementation(int argc, char *argv[]) {
|
|||||||
GRAPHICS_FORCE_SINGLE_ADAPTER = true;
|
GRAPHICS_FORCE_SINGLE_ADAPTER = true;
|
||||||
GRAPHICS_PREVENT_SECONDARY_WINDOW = true;
|
GRAPHICS_PREVENT_SECONDARY_WINDOW = true;
|
||||||
}
|
}
|
||||||
if (options[launcher::Options::DX9DisplayAdapter].is_active() &&
|
if (options[launcher::Options::DXDisplayAdapter].is_active() &&
|
||||||
options[launcher::Options::DX9DisplayAdapter].value_uint32() != D3DADAPTER_DEFAULT) {
|
options[launcher::Options::DXDisplayAdapter].value_uint32() != D3DADAPTER_DEFAULT) {
|
||||||
D3D9_ADAPTER = options[launcher::Options::DX9DisplayAdapter].value_uint32();
|
D3D9_ADAPTER = options[launcher::Options::DXDisplayAdapter].value_uint32();
|
||||||
|
|
||||||
// when we fix up adapter numbers, we only fix the first adapter, and not any subsequent
|
// when we fix up adapter numbers, we only fix the first adapter, and not any subsequent
|
||||||
// adapters, so we can't deal with multi-monitor games
|
// adapters, so we can't deal with multi-monitor games
|
||||||
|
|||||||
@@ -218,11 +218,11 @@ static const std::vector<OptionDefinition> OPTION_DEFINITIONS = {
|
|||||||
.picker = OptionPickerType::Monitor,
|
.picker = OptionPickerType::Monitor,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
// DX9DisplayAdapter
|
// DXDisplayAdapter
|
||||||
.title = "DX9 Primary Display Adapter Override",
|
.title = "DX Primary Display Adapter Override",
|
||||||
.name = "monitor",
|
.name = "monitor",
|
||||||
.display_name = "dx9mainadapter",
|
.display_name = "dxmainadapter",
|
||||||
.aliases = "dx9mainadapter",
|
.aliases = "dxmainadapter",
|
||||||
.desc = "Prefer to use Change Main Monitor option instead of this one.\n\n"
|
.desc = "Prefer to use Change Main Monitor option instead of this one.\n\n"
|
||||||
"Sets the display that the game will be opened in, for multiple monitors.\n\n"
|
"Sets the display that the game will be opened in, for multiple monitors.\n\n"
|
||||||
"0 is the primary monitor, 1 is the second monitor, and so on.\n\n"
|
"0 is the primary monitor, 1 is the second monitor, and so on.\n\n"
|
||||||
|
|||||||
@@ -27,7 +27,7 @@ namespace launcher {
|
|||||||
CaptureCursor,
|
CaptureCursor,
|
||||||
ShowCursor,
|
ShowCursor,
|
||||||
PrimaryMonitor,
|
PrimaryMonitor,
|
||||||
DX9DisplayAdapter,
|
DXDisplayAdapter,
|
||||||
GraphicsForceSingleAdapter,
|
GraphicsForceSingleAdapter,
|
||||||
GraphicsForceRefresh,
|
GraphicsForceRefresh,
|
||||||
FullscreenResolution,
|
FullscreenResolution,
|
||||||
|
|||||||
@@ -14,7 +14,7 @@ namespace overlay::windows {
|
|||||||
if (GRAPHICS_IIDX_WSUB) {
|
if (GRAPHICS_IIDX_WSUB) {
|
||||||
this->disabled_message = "Close this overlay and use the second window. (try ALT+TAB)";
|
this->disabled_message = "Close this overlay and use the second window. (try ALT+TAB)";
|
||||||
} else if (games::iidx::IIDX_TDJ_MONITOR_WARNING) {
|
} else if (games::iidx::IIDX_TDJ_MONITOR_WARNING) {
|
||||||
this->disabled_message = "TDJ mode subscreen overlay is not compatible with -monitor option.";
|
this->disabled_message = "TDJ mode subscreen overlay is not compatible with -dxmainadapter option; use -mainmonitor instead";
|
||||||
}
|
}
|
||||||
|
|
||||||
float size = 0.5f;
|
float size = 0.5f;
|
||||||
|
|||||||
@@ -13,7 +13,7 @@ namespace overlay::windows {
|
|||||||
if (!games::sdvx::is_valkyrie_model()) {
|
if (!games::sdvx::is_valkyrie_model()) {
|
||||||
this->disabled_message = "Valkyrie Model mode is not enabled!";
|
this->disabled_message = "Valkyrie Model mode is not enabled!";
|
||||||
} else if (games::sdvx::SHOW_VM_MONITOR_WARNING) {
|
} else if (games::sdvx::SHOW_VM_MONITOR_WARNING) {
|
||||||
this->disabled_message = "VM mode subscreen overlay is not compatible with -monitor option";
|
this->disabled_message = "VM mode subscreen overlay is not compatible with -dxmainadapter option, use -mainmonitor instead";
|
||||||
} else if (GRAPHICS_WINDOWED) {
|
} else if (GRAPHICS_WINDOWED) {
|
||||||
if (GRAPHICS_PREVENT_SECONDARY_WINDOW) {
|
if (GRAPHICS_PREVENT_SECONDARY_WINDOW) {
|
||||||
this->disabled_message = "Subscreen has been disabled by the user (-sdvxnosub).";
|
this->disabled_message = "Subscreen has been disabled by the user (-sdvxnosub).";
|
||||||
|
|||||||
@@ -38,7 +38,7 @@ namespace unity_utils {
|
|||||||
|
|
||||||
// monitor
|
// monitor
|
||||||
if (D3D9_ADAPTER.has_value()) {
|
if (D3D9_ADAPTER.has_value()) {
|
||||||
args += fmt::format(" -monitor {}", D3D9_ADAPTER.value());
|
args += fmt::format(" -dxmainadapter {}", D3D9_ADAPTER.value());
|
||||||
}
|
}
|
||||||
|
|
||||||
return args;
|
return args;
|
||||||
|
|||||||
Reference in New Issue
Block a user