Removed Localization Stuff.
Added Logging Option. Logging of Exceptions is now done via AELogger
This commit is contained in:
@@ -178,8 +178,7 @@ public class Profiler implements Runnable
|
||||
File d = new File( BaseB + "org-openide-util.jar" );
|
||||
File e = new File( BaseB + "org-openide-util-lookup.jar" );
|
||||
|
||||
ClassLoader cl = URLClassLoader.newInstance( new URL[] { a.toURI().toURL(), b.toURI().toURL(), c.toURI().toURL(), d.toURI().toURL(),
|
||||
e.toURI().toURL() } );
|
||||
ClassLoader cl = URLClassLoader.newInstance( new URL[] { a.toURI().toURL(), b.toURI().toURL(), c.toURI().toURL(), d.toURI().toURL(), e.toURI().toURL() } );
|
||||
|
||||
ProfilingSettingsPresets = cl.loadClass( "org.netbeans.lib.profiler.common.ProfilingSettingsPresets" );
|
||||
ProfilingSettings = cl.loadClass( "org.netbeans.lib.profiler.common.ProfilingSettings" );
|
||||
@@ -239,8 +238,8 @@ public class Profiler implements Runnable
|
||||
|
||||
Object CPUResultsSnapshot_Instance = createSnapshot.invoke( StackTraceSnapshotBuilder_Instance, System.currentTimeMillis() );
|
||||
|
||||
Object LoadedSnapshot_Instance = LoadedSnapshot_Constructor.newInstance( CPUResultsSnapshot_Instance,
|
||||
createCPUPreset.invoke( ProfilingSettingsPresets ), null, null );
|
||||
Object LoadedSnapshot_Instance = LoadedSnapshot_Constructor.newInstance( CPUResultsSnapshot_Instance, createCPUPreset.invoke( ProfilingSettingsPresets ), null,
|
||||
null );
|
||||
|
||||
FileOutputStream bout = new FileOutputStream( new File( "ae-latest-profile.nps" ) );
|
||||
DataOutputStream out = new DataOutputStream( bout );
|
||||
@@ -251,7 +250,7 @@ public class Profiler implements Runnable
|
||||
catch (Throwable t)
|
||||
{
|
||||
AELog.severe( "Error while profiling" );
|
||||
t.printStackTrace();
|
||||
AELog.error( t );
|
||||
profile = false;
|
||||
return;
|
||||
}
|
||||
|
||||
@@ -9,6 +9,7 @@ import java.util.regex.Matcher;
|
||||
import java.util.regex.Pattern;
|
||||
|
||||
import net.minecraft.crash.CallableMinecraftVersion;
|
||||
import appeng.core.AELog;
|
||||
import appeng.core.Configuration;
|
||||
|
||||
public class VersionChecker implements Runnable
|
||||
@@ -44,8 +45,8 @@ public class VersionChecker implements Runnable
|
||||
URL url = new URL( "http://ae-mod.info/releases/?latest" );
|
||||
|
||||
URLConnection yc = url.openConnection();
|
||||
yc.setRequestProperty( "User-Agent", "AE2/" + Configuration.VERSION + " (Channel:" + Configuration.CHANNEL
|
||||
+ ",Minecraft:" + ((new CallableMinecraftVersion( null )).minecraftVersion()) + ")" );
|
||||
yc.setRequestProperty( "User-Agent", "AE2/" + Configuration.VERSION + " (Channel:" + Configuration.CHANNEL + ",Minecraft:"
|
||||
+ ((new CallableMinecraftVersion( null )).minecraftVersion()) + ")" );
|
||||
|
||||
BufferedReader in = new BufferedReader( new InputStreamReader( yc.getInputStream() ) );
|
||||
|
||||
@@ -77,7 +78,7 @@ public class VersionChecker implements Runnable
|
||||
}
|
||||
catch (InterruptedException e1)
|
||||
{
|
||||
e1.printStackTrace();
|
||||
AELog.error( e );
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user