@@ -140,12 +140,12 @@ public static void Main(string[] args)
140140 }
141141 catch ( Exception e )
142142 {
143- File . WriteAllText ( " CRASH_" + Environment . TickCount + " .txt",
143+ File . WriteAllText ( $@ " { Paths . GetCrashLogDirectory ( ) } \ CRASH_{ Environment . TickCount } .txt",
144144 BuildExceptionString ( e , "SPCODE LOADING" ) ) ;
145145 MessageBox . Show (
146- "An error occured while loading ." + Environment . NewLine +
147- "A crash report was written in the editor-directory. " ,
148- "Error while Loading " ,
146+ "An error occured." + Environment . NewLine +
147+ $ "A crash report was written in { Paths . GetCrashLogDirectory ( ) } ",
148+ "Error" ,
149149 MessageBoxButton . OK ,
150150 MessageBoxImage . Error ) ;
151151 Environment . Exit ( Environment . ExitCode ) ;
@@ -167,11 +167,11 @@ public static void Main(string[] args)
167167 }
168168 catch ( Exception e )
169169 {
170- File . WriteAllText ( " CRASH_" + Environment . TickCount + " .txt",
170+ File . WriteAllText ( $@ " { Paths . GetCrashLogDirectory ( ) } \ CRASH_{ Environment . TickCount } .txt",
171171 BuildExceptionString ( e , "SPCODE MAIN" ) ) ;
172172 MessageBox . Show (
173173 "An error occured." + Environment . NewLine +
174- "A crash report was written in the editor-directory. " ,
174+ $ "A crash report was written in { Paths . GetCrashLogDirectory ( ) } ",
175175 "Error" ,
176176 MessageBoxButton . OK ,
177177 MessageBoxImage . Error ) ;
@@ -258,6 +258,7 @@ private static string BuildExceptionString(Exception e, string SectionName)
258258 var outString = new StringBuilder ( ) ;
259259 outString . AppendLine ( "Section: " + SectionName ) ;
260260 outString . AppendLine ( ".NET Version: " + Environment . Version ) ;
261+ outString . AppendLine ( "Is local installation?: " + _IsLocalInstallation ) ;
261262 outString . AppendLine ( "OS: " + Environment . OSVersion . VersionString ) ;
262263 outString . AppendLine ( "64 bit OS: " + ( Environment . Is64BitOperatingSystem ? "TRUE" : "FALSE" ) ) ;
263264 outString . AppendLine ( "64 bit mode: " + ( Environment . Is64BitProcess ? "TRUE" : "FALSE" ) ) ;
0 commit comments