Add Goldleaf v0.10 support. Remove jenkins malware, add Drone, update readme, increment version. Shifting code to the safer place. Update dependencies.

Fix #94: Just doing as @Fatih120 said
Fix #124: Implement updated Spanish translation by @Uzi-Oni
This commit is contained in:
Dmitry Isaenko 2022-07-26 18:25:26 +03:00
parent 0b8092077a
commit 5ed2167e9d
26 changed files with 1447 additions and 217 deletions

View file

@ -27,7 +27,7 @@ public class AppPreferences {
private final Preferences preferences;
private final Locale locale;
public static final String[] goldleafSupportedVersions = {"v0.5", "v0.7.x", "v0.8-0.9"};
public static final String[] goldleafSupportedVersions = {"v0.5", "v0.7.x", "v0.8-0.9", "v0.10"};
private AppPreferences(){
this.preferences = Preferences.userRoot().node("NS-USBloader");

View file

@ -32,7 +32,7 @@ import java.util.ResourceBundle;
public class NSLMain extends Application {
public static final String appVersion = "v5.2";
public static String appVersion;
public static boolean isCli;
@Override
@ -41,6 +41,7 @@ public class NSLMain extends Application {
Locale userLocale = AppPreferences.getInstance().getLocale();
ResourceBundle rb = ResourceBundle.getBundle("locale", userLocale);
NSLMain.appVersion = ResourceBundle.getBundle("app").getString("_version");
loader.setResources(rb);
Parent root = loader.load();

File diff suppressed because it is too large Load diff

View file

@ -197,7 +197,7 @@ class TinFoil extends TransferModule {
ae.printStackTrace();
return true;
} catch (NullPointerException npe){
print("NullPointerException (in some moment application didn't find something. Something important.):" +
print("Application didn't find something important. Make sure you have enough space on medium!" +
"\n "+npe.getMessage(), EMsgType.FAIL);
npe.printStackTrace();
return true;

View file

@ -49,7 +49,7 @@ public class UsbCommunications extends CancellableRunnable {
@Override
public void run() {
print("\tStart", EMsgType.INFO);
print("\tStart");
UsbConnect usbConnect = UsbConnect.connectHomebrewMode(logPrinter);
@ -66,6 +66,9 @@ public class UsbCommunications extends CancellableRunnable {
case "TinFoil":
module = new TinFoil(handler, nspMap, this, logPrinter);
break;
case "GoldLeafv0.10":
module = new GoldLeaf_010(handler, nspMap, this, logPrinter, nspFilterForGl);
break;
case "GoldLeafv0.8-0.9":
module = new GoldLeaf_08(handler, nspMap, this, logPrinter, nspFilterForGl);
break;
@ -87,12 +90,12 @@ public class UsbCommunications extends CancellableRunnable {
*/
private void close(EFileStatus status){
logPrinter.update(nspMap, status);
print("\tEnd", EMsgType.INFO);
print("\tEnd");
logPrinter.close();
}
private void print(String message, EMsgType type){
private void print(String message){
try {
logPrinter.print(message, type);
logPrinter.print(message, EMsgType.INFO);
}
catch (InterruptedException ie){
ie.printStackTrace();