File tree Expand file tree Collapse file tree 1 file changed +4
-0
lines changed Expand file tree Collapse file tree 1 file changed +4
-0
lines changed Original file line number Diff line number Diff line change @@ -691,6 +691,7 @@ public static void DownloadInitScript(string currentInitScriptFullPath, string c
691
691
{
692
692
// check if file exists
693
693
if ( File . Exists ( currentInitScriptLocationOrURL ) == false ) return ;
694
+
694
695
tempFile = currentInitScriptLocationOrURL ;
695
696
isLocalFile = true ;
696
697
}
@@ -705,6 +706,9 @@ public static void DownloadInitScript(string currentInitScriptFullPath, string c
705
706
var tempContent = File . ReadAllText ( tempFile ) ;
706
707
if ( tempContent . IndexOf ( "public class InitializeProject" ) > 0 && tempContent . IndexOf ( "namespace UnityLauncherProTools" ) > 0 && tempContent . IndexOf ( "public static void Init()" ) > 0 )
707
708
{
709
+ // create scripts folder if missing
710
+ if ( Directory . Exists ( currentInitScriptFolder ) == false ) Directory . CreateDirectory ( currentInitScriptFolder ) ;
711
+
708
712
// move old file as backup
709
713
if ( File . Exists ( currentInitScriptFullPath ) )
710
714
{
You can’t perform that action at this time.
0 commit comments