diff --git a/data_from_portwine/img/gui/mw.png b/data_from_portwine/img/gui/mw.png new file mode 100644 index 00000000..e300fca0 Binary files /dev/null and b/data_from_portwine/img/gui/mw.png differ diff --git a/data_from_portwine/scripts/portwine_db/MW.sh b/data_from_portwine/scripts/portwine_db/MW.sh new file mode 100644 index 00000000..5c425782 --- /dev/null +++ b/data_from_portwine/scripts/portwine_db/MW.sh @@ -0,0 +1,12 @@ +#!/usr/bin/env bash +#Author: ValoKarDin +#launcher.exe +#Rating=5 +export PW_COMMENT_DB="Modern Warships" +################################################ +export PW_VULKAN_USE=2 #dxvk, vkd3d or 0 for OpenGL +export PW_DLL_INSTALL="lucida" # Install DLL in port prefix (used winetricks) +export PW_USE_D3D_EXTRAS="1" +export PW_USE_EAC_AND_BE="0" +export PW_PREFIX_NAME="MW" +export PW_USE_SHADER_CACHE="1" diff --git a/data_from_portwine/scripts/pw_autoinstall/PW_MW b/data_from_portwine/scripts/pw_autoinstall/PW_MW new file mode 100644 index 00000000..7f176285 --- /dev/null +++ b/data_from_portwine/scripts/pw_autoinstall/PW_MW @@ -0,0 +1,23 @@ +#!/usr/bin/env bash +# Author: ValoKarDin +######################################################################## +export LAUNCH_PARAMETERS=("/VERYSILENT") +export PW_AUTOINSTALL_EXE="${PW_USER_TEMP}/.exe" +export PW_PREFIX_NAME="MW" + +start_portwine + +if try_download_game "https://gdn.gaijin.net/launcher/current.php?id=ModernWarshipsLauncher" "${PW_AUTOINSTALL_EXE}" +then + pw_start_progress_bar_block "Starting Modern Warships installation..." + pw_kill_autostart launcher.exe & + pw_run "${PW_AUTOINSTALL_EXE}" + portwine_exe="$WINEPREFIX/drive_c/users/steamuser/AppData/Local/ModernWarships/launcher.exe" + export PORTWINE_CREATE_SHORTCUT_NAME="Modern Warships" + try_remove_file "${PW_AUTOINSTALL_EXE}" + try_remove_file "${portwine_exe}.ppdb" + kill_portwine + portwine_create_shortcut +fi + +stop_portwine diff --git a/data_from_portwine/scripts/start.sh b/data_from_portwine/scripts/start.sh index 4b93cbfa..23d732b4 100755 --- a/data_from_portwine/scripts/start.sh +++ b/data_from_portwine/scripts/start.sh @@ -817,6 +817,7 @@ else --field=" STALCRAFT"!"$PW_GUI_ICON_PATH/stalcraft.png"!"":"FBTN" '@bash -c "button_click PW_STALCRAFT"' \ --field=" CONTRACT WARS"!"$PW_GUI_ICON_PATH/cwc.png"!"":"FBTN" '@bash -c "button_click PW_CWC"' \ --field=" Stalker Online"!"$PW_GUI_ICON_PATH/so.png"!"":"FBTN" '@bash -c "button_click PW_SO"' \ + --field=" Modern Warships"!"$PW_GUI_ICON_PATH/mw.png"!"":"FBTN" '@bash -c "button_click PW_MW"' \ --field=" Metal War Online"!"$PW_GUI_ICON_PATH/mwo.png"!"":"FBTN" '@bash -c "button_click PW_MWO"' \ --field=" Ankama Launcher"!"$PW_GUI_ICON_PATH/ankama.png"!"":"FBTN" '@bash -c "button_click PW_ANKAMA"' \ --field=" Indiegala Client"!"$PW_GUI_ICON_PATH/igclient.png"!"":"FBTN" '@bash -c "button_click PW_IGCLIENT"' \