mirror of
https://git.huckle.dev/Huckles-Minecraft-Archive/jpexs-decompiler.git
synced 2026-06-24 18:36:18 +00:00
cleanup
This commit is contained in:
@@ -55,7 +55,7 @@ public class ApplicationInfo {
|
||||
* URL for checking new updates
|
||||
*/
|
||||
public static String updateCheckUrl = "https://www.free-decompiler.com/flash/update.html?currentVersion=<version>¤tRevision=<revision>¤tVersionMajor=<version.major>¤tVersionMinor=<version.minor>¤tVersionRelease=<version.release>¤tVersionBuild=<version.build>¤tNightly=<nightly>";
|
||||
|
||||
|
||||
/**
|
||||
* URL for doing update
|
||||
*/
|
||||
@@ -86,22 +86,20 @@ public class ApplicationInfo {
|
||||
updateCheckUrl = updateCheckUrl
|
||||
.replace("<revision>", revision)
|
||||
.replace("<version>", version)
|
||||
.replace("<version.major>", ""+version_major)
|
||||
.replace("<version.minor>", ""+version_minor)
|
||||
.replace("<version.release>", ""+version_release)
|
||||
.replace("<version.build>", ""+version_build)
|
||||
.replace("<nightly>", nightly?"1":"0")
|
||||
;
|
||||
.replace("<version.major>", "" + version_major)
|
||||
.replace("<version.minor>", "" + version_minor)
|
||||
.replace("<version.release>", "" + version_release)
|
||||
.replace("<version.build>", "" + version_build)
|
||||
.replace("<nightly>", nightly ? "1" : "0");
|
||||
updateUrl = updateUrl
|
||||
.replace("<revision>", revision)
|
||||
.replace("<version>", version)
|
||||
.replace("<version.major>", ""+version_major)
|
||||
.replace("<version.minor>", ""+version_minor)
|
||||
.replace("<version.release>", ""+version_release)
|
||||
.replace("<version.build>", ""+version_build)
|
||||
.replace("<nightly>", nightly?"1":"0")
|
||||
;
|
||||
applicationVerName = APPLICATION_NAME + " v." + version;
|
||||
.replace("<version.major>", "" + version_major)
|
||||
.replace("<version.minor>", "" + version_minor)
|
||||
.replace("<version.release>", "" + version_release)
|
||||
.replace("<version.build>", "" + version_build)
|
||||
.replace("<nightly>", nightly ? "1" : "0");
|
||||
applicationVerName = APPLICATION_NAME + " v." + version;
|
||||
shortApplicationVerName = SHORT_APPLICATION_NAME + " v." + version;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,16 +1,16 @@
|
||||
/*
|
||||
* Copyright (C) 2010-2015 JPEXS, All rights reserved.
|
||||
*
|
||||
*
|
||||
* This library is free software; you can redistribute it and/or
|
||||
* modify it under the terms of the GNU Lesser General Public
|
||||
* License as published by the Free Software Foundation; either
|
||||
* version 3.0 of the License, or (at your option) any later version.
|
||||
*
|
||||
*
|
||||
* This library is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||
* Lesser General Public License for more details.
|
||||
*
|
||||
*
|
||||
* You should have received a copy of the GNU Lesser General Public
|
||||
* License along with this library.
|
||||
*/
|
||||
@@ -89,7 +89,7 @@ public class BinarySWFBundle implements SWFBundle {
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean putSWF(String key,InputStream is) {
|
||||
public boolean putSWF(String key, InputStream is) {
|
||||
throw new UnsupportedOperationException("Save not supported for this type of bundle");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -42,7 +42,7 @@ public class SWC extends ZippedSWFBundle {
|
||||
}
|
||||
|
||||
@Override
|
||||
protected void initBundle(InputStream is, File filename) throws IOException {
|
||||
protected void initBundle(InputStream is, File filename) throws IOException {
|
||||
super.initBundle(is, filename);
|
||||
keySet.clear();
|
||||
this.is.reset();
|
||||
|
||||
@@ -276,9 +276,6 @@ public final class SWF implements SWFContainerItem, Timelined {
|
||||
|
||||
private static final Logger logger = Logger.getLogger(SWF.class.getName());
|
||||
|
||||
@Internal
|
||||
public SWFBundle bundle;
|
||||
|
||||
@Internal
|
||||
private Timeline timeline;
|
||||
|
||||
|
||||
@@ -1,16 +1,16 @@
|
||||
/*
|
||||
* Copyright (C) 2010-2015 JPEXS, All rights reserved.
|
||||
*
|
||||
*
|
||||
* This library is free software; you can redistribute it and/or
|
||||
* modify it under the terms of the GNU Lesser General Public
|
||||
* License as published by the Free Software Foundation; either
|
||||
* version 3.0 of the License, or (at your option) any later version.
|
||||
*
|
||||
*
|
||||
* This library is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||
* Lesser General Public License for more details.
|
||||
*
|
||||
*
|
||||
* You should have received a copy of the GNU Lesser General Public
|
||||
* License along with this library.
|
||||
*/
|
||||
@@ -37,9 +37,8 @@ public interface SWFBundle {
|
||||
public Map<String, SeekableInputStream> getAll() throws IOException;
|
||||
|
||||
public String getExtension();
|
||||
|
||||
|
||||
public boolean isReadOnly();
|
||||
|
||||
public boolean putSWF(String key,InputStream is) throws IOException;
|
||||
|
||||
|
||||
public boolean putSWF(String key, InputStream is) throws IOException;
|
||||
}
|
||||
|
||||
@@ -30,8 +30,6 @@ import java.util.HashMap;
|
||||
import java.util.HashSet;
|
||||
import java.util.Map;
|
||||
import java.util.Set;
|
||||
import java.util.logging.Level;
|
||||
import java.util.logging.Logger;
|
||||
import java.util.zip.ZipEntry;
|
||||
import java.util.zip.ZipInputStream;
|
||||
import java.util.zip.ZipOutputStream;
|
||||
@@ -44,9 +42,10 @@ public class ZippedSWFBundle implements SWFBundle {
|
||||
|
||||
protected Set<String> keySet = new HashSet<>();
|
||||
|
||||
//private final Map<String, SeekableInputStream> cachedSWFs = new HashMap<>();
|
||||
protected FileInputStream fis;
|
||||
|
||||
protected ReReadableInputStream is;
|
||||
|
||||
protected File filename;
|
||||
|
||||
public ZippedSWFBundle(InputStream is) throws IOException {
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user