mirror of
https://github.com/cyberarm/w3d_hub_linux_launcher.git
synced 2026-03-21 19:56:14 +00:00
Improve missing wine error message, add link to wiki on settings page, fix crash when saving settings due to disabling winetricks options
This commit is contained in:
@@ -183,7 +183,8 @@ class W3DHub
|
|||||||
# Wine present?
|
# Wine present?
|
||||||
if W3DHub.unix?
|
if W3DHub.unix?
|
||||||
wine_present = W3DHub.command("which #{Store.settings[:wine_command]}")
|
wine_present = W3DHub.command("which #{Store.settings[:wine_command]}")
|
||||||
fail!("FAIL FAST: `which #{Store.settings[:wine_command]}` command failed, wine is not installed. Will be unable to create prefixes or launch games.") unless wine_present
|
fail!("FAIL FAST: `which #{Store.settings[:wine_command]}` command failed, wine is not installed.\n\n"\
|
||||||
|
"Will be unable to launch game.\n\nCheck wine options in launcher's settings.") unless wine_present
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|||||||
@@ -53,6 +53,10 @@ class W3DHub
|
|||||||
end
|
end
|
||||||
para "Leave empty to use default global prefix.", margin_left: 16
|
para "Leave empty to use default global prefix.", margin_left: 16
|
||||||
|
|
||||||
|
link "Wiki: Getting Started With Wine", tip: "https://github.com/cyberarm/w3d_hub_linux_launcher/wiki/Getting-Started-With-Wine", margin_top: 16, margin_left: 16, border_color_bottom: 0xff_777777 do
|
||||||
|
W3DHub.url("https://github.com/cyberarm/w3d_hub_linux_launcher/wiki/Getting-Started-With-Wine")
|
||||||
|
end
|
||||||
|
|
||||||
# TODO: support winetricks stuff
|
# TODO: support winetricks stuff
|
||||||
# tagline "Winetricks", margin_top: 16
|
# tagline "Winetricks", margin_top: 16
|
||||||
# caption "Winetricks Command", margin_left: 16
|
# caption "Winetricks Command", margin_left: 16
|
||||||
@@ -130,7 +134,7 @@ class W3DHub
|
|||||||
Store.settings[:wine_command] = @wine_command_input.value
|
Store.settings[:wine_command] = @wine_command_input.value
|
||||||
Store.settings[:wine_prefix] = @wine_prefix_input.value
|
Store.settings[:wine_prefix] = @wine_prefix_input.value
|
||||||
|
|
||||||
Store.settings[:winetricks_command] = @winetricks_command_input.value
|
Store.settings[:winetricks_command] = @winetricks_command_input.value if @winetricks_command_input
|
||||||
|
|
||||||
Store.settings.save_settings
|
Store.settings.save_settings
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user