1
0
mirror of https://github.com/KarolS/millfork.git synced 2024-05-29 04:41:30 +00:00

Fix tests running in headless JVMs

This commit is contained in:
Karol Stasiak 2018-01-20 22:43:12 +01:00
parent 4e80236a65
commit 5d6be83499

View File

@ -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