mirror of
https://github.com/tonikelope/megabasterd.git
synced 2025-04-29 22:24:32 +02:00
7.25
Fix https://github.com/tonikelope/megabasterd/issues/229 -DEBUG FILE
This commit is contained in:
parent
d14aa637c5
commit
7550af327e
2
pom.xml
2
pom.xml
@ -3,7 +3,7 @@
|
||||
<modelVersion>4.0.0</modelVersion>
|
||||
<groupId>com.tonikelope</groupId>
|
||||
<artifactId>MegaBasterd</artifactId>
|
||||
<version>7.24</version>
|
||||
<version>7.25</version>
|
||||
<packaging>jar</packaging>
|
||||
<dependencies>
|
||||
<dependency>
|
||||
|
@ -19,7 +19,10 @@ import java.awt.event.ActionListener;
|
||||
import java.awt.event.WindowEvent;
|
||||
import static java.awt.event.WindowEvent.WINDOW_CLOSING;
|
||||
import java.io.File;
|
||||
import java.io.FileNotFoundException;
|
||||
import java.io.FileOutputStream;
|
||||
import java.io.IOException;
|
||||
import java.io.PrintStream;
|
||||
import static java.lang.Integer.parseInt;
|
||||
import static java.lang.System.exit;
|
||||
import java.net.Authenticator;
|
||||
@ -57,7 +60,7 @@ import javax.swing.UIManager;
|
||||
*/
|
||||
public final class MainPanel {
|
||||
|
||||
public static final String VERSION = "7.24";
|
||||
public static final String VERSION = "7.25";
|
||||
public static final boolean FORCE_SMART_PROXY = false; //TRUE FOR DEBUGING SMART PROXY
|
||||
public static final int THROTTLE_SLICE_SIZE = 16 * 1024;
|
||||
public static final int DEFAULT_BYTE_BUFFER_SIZE = 16 * 1024;
|
||||
@ -98,6 +101,24 @@ public final class MainPanel {
|
||||
UIDefaults defaults = UIManager.getLookAndFeelDefaults();
|
||||
defaults.put("nimbusOrange", defaults.get("nimbusFocus"));
|
||||
|
||||
PrintStream fileOut;
|
||||
|
||||
try {
|
||||
fileOut = new PrintStream(new FileOutputStream("./megabasterd_DEBUG.log"));
|
||||
|
||||
System.setOut(fileOut);
|
||||
System.setErr(fileOut);
|
||||
|
||||
} catch (FileNotFoundException ex) {
|
||||
Logger.getLogger(MainPanel.class.getName()).log(Level.SEVERE, null, ex);
|
||||
}
|
||||
|
||||
System.out.println(System.getProperty("os.name"));
|
||||
|
||||
System.out.println(System.getProperty("java.vm.name"));
|
||||
|
||||
System.out.println(System.getProperty("java.version"));
|
||||
|
||||
_app_image = false;
|
||||
|
||||
if (args.length > 0) {
|
||||
|
@ -737,12 +737,12 @@ public class MiscTools {
|
||||
|
||||
public static String cleanFilename(String filename) {
|
||||
|
||||
return (System.getProperty("os.name").toLowerCase().contains("win") ? filename.replaceAll("[<>:\"/\\\\\\|\\?\\*\t]+", "").replaceAll("[ \\.]{1,}/{1,}", "/") : filename).replaceAll("[\\.]{1,}$", "").trim();
|
||||
return (System.getProperty("os.name").toLowerCase().contains("win") ? filename.replaceAll("[<>:\"/\\\\\\|\\?\\*\t]+", "") : filename).replaceAll("\\" + File.separator, "").replaceAll("[\\.]{1,}$", "").trim();
|
||||
}
|
||||
|
||||
public static String cleanFilePath(String path) {
|
||||
|
||||
return !path.equals(".") ? ((System.getProperty("os.name").toLowerCase().contains("win") ? path.replaceAll("[<>:\"\\|\\?\\*\t]+", "").replaceAll("[ \\.]{1,}/{1,}", "/") : path).replaceAll("[\\.]{1,}$", "").trim()) : path;
|
||||
return !path.equals(".") ? ((System.getProperty("os.name").toLowerCase().contains("win") ? path.replaceAll("[<>:\"\\|\\?\\*\t]+", "") : path).replaceAll(" +\\" + File.separator, "\\" + File.separator).replaceAll("[\\.]{1,}$", "").trim()) : path;
|
||||
}
|
||||
|
||||
public static byte[] genRandomByteArray(int length) {
|
||||
|
BIN
src/main/resources/images/ethereum_toni.png
Normal file
BIN
src/main/resources/images/ethereum_toni.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 1.1 KiB |
Binary file not shown.
Before Width: | Height: | Size: 223 KiB After Width: | Height: | Size: 214 KiB |
Loading…
x
Reference in New Issue
Block a user