Skip to content

Commit 579aad7

Browse files
author
Federico Berti
committed
history, fix npe, minor stuff
1 parent 3c4347a commit 579aad7

File tree

5 files changed

+37
-7
lines changed

5 files changed

+37
-7
lines changed

HISTORY.md

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,18 @@
1+
#25.0203
2+
32x: fifa hack (disabled)
3+
32x: reads to cache purge behave like writes
4+
32x: hack for COMM race conditions, fixes Brutal
5+
gg: always 60fps
6+
helios: {pwm, pcm} can be muted
7+
helios: initial TowerOfPower (MegaCd_S32x) support
8+
helios: fix an issue with stuck keys
9+
helios: improve multi-screen behaviour
10+
infra: update to gradle 8
11+
mcd: lots of fixes, still WIP
12+
md: parse supported devices from rom header
13+
md: ignore byte-wide ioWrites on even address, fix read timeControl area
14+
sms: change default z80 SP value
15+
116
#24.0720
217
helios: fix setByteInWordBE
318
helios: show rom info dialog, show region flag

build.gradle

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,15 @@
11
def dateString = getDate()
22
group 'com.fbdev.helios'
33

4+
5+
def javaVersion = JavaVersion.VERSION_17;
6+
47
//version dateString
58
version dateString + '-SNAPSHOT'
69
def jarNameHead = rootProject.name + "-" + version
710

811
String packageDir = getLayout().getBuildDirectory().dir("packageDir").get()
912

10-
assert JavaVersion.current().isCompatibleWith(JavaVersion.VERSION_17) : "Java 17 or newer is required"
11-
1213
apply plugin: 'java'
1314

1415
repositories {
@@ -51,6 +52,13 @@ def static getDate() {
5152
date.substring(0,2) + "." + date.substring(2)
5253
}
5354

55+
// Java
56+
java.toolchain {
57+
languageVersion.set(JavaLanguageVersion.of(javaVersion.getMajorVersion()))
58+
assert JavaVersion.current().isCompatibleWith(javaVersion): "Java " + javaVersion + " or newer is required"
59+
println("Java version: " + JavaVersion.current())
60+
}
61+
5462
//create a single Jar with all dependencies
5563
tasks.register('fatJar', Jar) {
5664
manifest {
@@ -78,7 +86,7 @@ tasks.register('copyRes') {
7886
include "res/**"
7987
}
8088
into packageDir
81-
exclude "**/*.col", "**/bios.sms", "**/site/**", "**/misc/**", "**/sms/**", "**/mcd/**"
89+
exclude "**/*.col", "**/bios.sms", "**/site/**", "**/misc/**", "**/sms/**", "**/mcd/**", "**/32x_bios_?.bin"
8290
}
8391
copy {
8492
from {

src/main/java/omegadrive/ui/DisplayWindow.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,8 +40,8 @@ public interface DisplayWindow {
4040
class DisplayContext {
4141
public int[] data;
4242
public VideoMode videoMode;
43-
public Optional<String> label;
44-
public Optional<Integer> megaCdLedState;
43+
public Optional<String> label = Optional.empty();
44+
public Optional<Integer> megaCdLedState = Optional.empty();
4545
}
4646

4747

src/main/java/omegadrive/ui/SwingWindow.java

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -250,7 +250,13 @@ public void renderScreenLinear(DisplayContext dc) {
250250
dcCopy.megaCdLedState = dc.megaCdLedState;
251251
dcCopy.label = dc.label;
252252
dcCopy.videoMode = dc.videoMode;
253-
previousFrame = executorService.submit(() -> renderScreenLinearInternal(pixelsSrc, dcCopy));
253+
previousFrame = executorService.submit(() -> {
254+
try {
255+
renderScreenLinearInternal(pixelsSrc, dcCopy);
256+
} catch (Exception e) {
257+
e.printStackTrace();
258+
}
259+
});
254260
} else {
255261
renderScreenLinearInternal(pixelsSrc, dc);
256262
}

src/main/java/s32x/util/MarsLauncherHelper.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,8 @@ public class MarsLauncherHelper {
3838
static final boolean masterDebug = Boolean.parseBoolean(System.getProperty("sh2.master.debug", "false"));
3939
static final boolean slaveDebug = Boolean.parseBoolean(System.getProperty("sh2.slave.debug", "false"));
4040

41-
static final boolean homebrewBios = Boolean.parseBoolean(System.getProperty("32x.use.homebrew.bios", "true"));
41+
//TODO cd32x requires official 32x bios, as the homebrew bioses do not support boot from CD
42+
static final boolean homebrewBios = Boolean.parseBoolean(System.getProperty("32x.use.homebrew.bios", "false"));
4243

4344
static String biosBasePath = "res/bios/";
4445

0 commit comments

Comments
 (0)