Skip to content

Commit

Permalink
Add version code
Browse files Browse the repository at this point in the history
  • Loading branch information
Tech-FZ committed Sep 18, 2022
1 parent 094d4ce commit 530ba9a
Show file tree
Hide file tree
Showing 13 changed files with 10 additions and 5 deletions.
Binary file modified bin/randopackage/RandochooseMain$1.class
Binary file not shown.
Binary file modified bin/randopackage/RandochooseMain$2.class
Binary file not shown.
Binary file modified bin/randopackage/RandochooseMain$3.class
Binary file not shown.
Binary file modified bin/randopackage/RandochooseMain$4.class
Binary file not shown.
Binary file modified bin/randopackage/RandochooseMain$5.class
Binary file not shown.
Binary file modified bin/randopackage/RandochooseMain$6.class
Binary file not shown.
Binary file modified bin/randopackage/RandochooseMain.class
Binary file not shown.
Binary file modified bin/randopackage/RandochooseUpdate.class
Binary file not shown.
Binary file modified bin/randopackage/RandochooseUpdateStageTwo.class
Binary file not shown.
4 changes: 4 additions & 0 deletions doc/Changelog English.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
Randochoose 0.2.3 Alpha
- Completion: 18th September, 2022
- The update checker got another upgrade: EmuGUI's version code is now included into Randochoose as well. This will allow us to work on "revisions" without altering the version string. Don't worry, I made sure you will still be able to be notified with 0.2.2.

Randochoose 0.2.2 Alpha
- Completion: 20th August, 2022
- It took me long to get into the mood to update Randochoose again, but the only change is that you can now choose if you rather want to get Randochoose from GitHub or from Codeberg.
Expand Down
3 changes: 2 additions & 1 deletion src/randopackage/RandochooseMain.java
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,8 @@ public class RandochooseMain {

public static int majorVer = 0;
public static int minorVer1 = 2;
public static int minorVer2 = 2;
public static int minorVer2 = 3;
public static int verCode = 6;

public static void main(String[] args) {
String link = "https://raw.githubusercontent.com/Tech-FZ/randochoose/main/vercheck.rdc";
Expand Down
4 changes: 2 additions & 2 deletions src/randopackage/RandochooseUpdate.java
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ public void run() {

bout.close();
in.close();
RandochooseUpdateStageTwo.checkStage(RandochooseMain.majorVer, RandochooseMain.minorVer1, RandochooseMain.minorVer2, this.manual);
RandochooseUpdateStageTwo.checkStage(RandochooseMain.majorVer, RandochooseMain.minorVer1, RandochooseMain.minorVer2, RandochooseMain.verCode, this.manual);
}

catch (Exception e) {
Expand All @@ -61,7 +61,7 @@ public void run() {

bout.close();
in.close();
RandochooseUpdateStageTwo.checkStage(RandochooseMain.majorVer, RandochooseMain.minorVer1, RandochooseMain.minorVer2, this.manual);
RandochooseUpdateStageTwo.checkStage(RandochooseMain.majorVer, RandochooseMain.minorVer1, RandochooseMain.minorVer2, RandochooseMain.verCode, this.manual);
}

catch (Exception ex) {
Expand Down
4 changes: 2 additions & 2 deletions src/randopackage/RandochooseUpdateStageTwo.java
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ public class RandochooseUpdateStageTwo {
static String[] newestVer = new String[3];
static int[] newestVerInt = new int[3];

public static void checkStage(int majorVer, int minorVer1, int minorVer2, boolean manual) {
public static void checkStage(int majorVer, int minorVer1, int minorVer2, int verCode, boolean manual) {
File file = new File("vercheck.rdc");

if (!file.canRead() || !file.isFile()) {
Expand Down Expand Up @@ -54,7 +54,7 @@ public static void checkStage(int majorVer, int minorVer1, int minorVer2, boolea
i++;
}

if (minorVer2 < newestVerInt[2] || minorVer1 < newestVerInt[1] || majorVer < newestVerInt[0]) {
if (minorVer2 < newestVerInt[2] || minorVer1 < newestVerInt[1] || majorVer < newestVerInt[0] || verCode < newestVerInt[3]) {
int[] currentVer = {majorVer, minorVer1, minorVer2};
newVerAvailable(currentVer, newestVerInt);
}
Expand Down

0 comments on commit 530ba9a

Please sign in to comment.