Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fallback to clink_[x86|x64].exe if clink.bat Script is Renamed #357

Merged
merged 1 commit into from
Dec 20, 2015
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 11 additions & 2 deletions clink/loader/clink.bat
Original file line number Diff line number Diff line change
Expand Up @@ -64,15 +64,24 @@ goto :eof
:loader_x86
if exist "%~dpn0_x86.exe" (
"%~dpn0_x86.exe" %*
)
) else if exist "%~dp0clink_x86.exe" (
"%~dp0clink_x86.exe" %*
)
exit /b 0

:loader_x64
if exist "%~dpn0_x64.exe" (
"%~dpn0_x64.exe" %*
) else if exist "%~dp0clink_x64.exe" (
"%~dp0clink_x64.exe" %*
)
exit /b 0

:launch
start "" cmd.exe /s /k ""%~dpnx0" inject %clink_profile_arg% && title Clink"
if exist "%~dpn0*.exe" (
start "" cmd.exe /s /k ""%~dpnx0" inject %clink_profile_arg% && title Clink"
)
else (
start "" cmd.exe /s /k "%~dp0clink inject %clink_profile_arg% && title Clink"
)
exit /b 0