Skip to content

Commit

Permalink
update install bat
Browse files Browse the repository at this point in the history
  • Loading branch information
hzqst committed Feb 15, 2024
1 parent 171ee94 commit 405a64e
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 1 deletion.
18 changes: 18 additions & 0 deletions Build/svencoop/vgui2ext/resource/GameConsoleDialog.res
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
"Resource\GameConsoleDialog.res"
{
"GameConsole"
{
"ControlName" "CGameConsoleDialog"
"fieldName" "GameConsole"
"xpos" "40"
"ypos" "40"
"wide" "560"
"tall" "400"
"autoResize" "3"
"pinCorner" "0"
"visible" "1"
"enabled" "1"
"tabPosition" "0"
"title" "#GameUI_Console"
}
}
9 changes: 8 additions & 1 deletion scripts/install-helper-CreateShortcut.bat
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,15 @@

cd /d "%SolutionDir%"

powershell $shell = New-Object -ComObject WScript.Shell;$shortcut = $shell.CreateShortcut(\"MetaHook for %ShortGameName%.lnk\");$shortcut.TargetPath = \"%GameDir%\%LauncherExe%\";$shortcut.WorkingDirectory = \"%GameDir%\";$shortcut.Arguments = \"-insecure -steam -game %LauncherMod%\";$shortcut.Save();
if exist "%SolutionDir%Build\MetaHook.exe" (

powershell $shell = New-Object -ComObject WScript.Shell;$shortcut = $shell.CreateShortcut(\"MetaHook for %ShortGameName%.lnk\");$shortcut.TargetPath = \"%GameDir%\%LauncherExe%\";$shortcut.WorkingDirectory = \"%GameDir%\";$shortcut.Arguments = \"-insecure -steam -game %LauncherMod%\";$shortcut.Save();

) else (

powershell $shell = New-Object -ComObject WScript.Shell;$shortcut = $shell.CreateShortcut(\"MetaHook for %ShortGameName%.lnk\");$shortcut.TargetPath = \"%GameDir%\%LauncherExe%\";$shortcut.WorkingDirectory = \"%GameDir%\";$shortcut.Arguments = \"-insecure -game %LauncherMod%\";$shortcut.Save();

)
echo -----------------------------------------------------
echo Please launch game from shortcut "MetaHook for %ShortGameName%"

Expand Down

0 comments on commit 405a64e

Please sign in to comment.