mirror of
https://github.com/KarolS/millfork.git
synced 2025-01-03 19:31:02 +00:00
Fix tests running in headless JVMs
This commit is contained in:
parent
4e80236a65
commit
5d6be83499
@ -3,6 +3,8 @@ package com.grapeshot.halfnes;
|
||||
import com.grapeshot.halfnes.mappers.Mapper;
|
||||
import millfork.output.MemoryBank;
|
||||
|
||||
import java.util.prefs.Preferences;
|
||||
|
||||
/**
|
||||
* Since the original CPURAM class was a convoluted mess of dependencies,
|
||||
* I overrode it with mine that has only few pieces of junk glue to make it work
|
||||
@ -11,6 +13,11 @@ import millfork.output.MemoryBank;
|
||||
@SuppressWarnings("unused")
|
||||
public class CPURAM {
|
||||
|
||||
static {
|
||||
Preferences preferences = Preferences.userNodeForPackage(NES.class);
|
||||
preferences.putBoolean("soundEnable", false);
|
||||
}
|
||||
|
||||
private final MemoryBank mem;
|
||||
|
||||
// required by the CPU class for some reason
|
||||
|
Loading…
Reference in New Issue
Block a user