Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitd2226d7

Browse files
committed
fix double backslash on download and install path
1 parente27f3ad commitd2226d7

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

‎UnityLauncherPro/Tools.cs‎

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -641,8 +641,12 @@ public static void DownloadAndInstall(string url, string version)
641641
if(DownloadFile(exeURL,tempFile)==true)
642642
{
643643
// get base version, to use for install path
644-
stringoutputVersionFolder="\\"+version.Split('.')[0]+"_"+version.Split('.')[1];
645-
stringtargetPathArgs=" /D="+Properties.Settings.Default.rootFolders[Properties.Settings.Default.rootFolders.Count-1]+outputVersionFolder;;
644+
// FIXME check if have any paths?
645+
stringlastRootFolder=Properties.Settings.Default.rootFolders[Properties.Settings.Default.rootFolders.Count-1];
646+
// check if ends with / or \
647+
if(lastRootFolder.EndsWith("/")==false&&lastRootFolder.EndsWith("\\")==false)lastRootFolder+="/";
648+
stringoutputVersionFolder=version.Split('.')[0]+"_"+version.Split('.')[1];
649+
stringtargetPathArgs=" /D="+lastRootFolder+outputVersionFolder;;
646650

647651
// if user clicks NO to UAC, this fails (so added try-catch)
648652
try

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp