Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/ClusterM/nes-containers.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexey 'Cluster' Avdyukhin <clusterrr@clusterrr.com>2021-01-09 15:57:51 +0300
committerAlexey 'Cluster' Avdyukhin <clusterrr@clusterrr.com>2021-01-09 15:57:51 +0300
commitcdaad6e922bde2a5421e37177608bd59ecff2320 (patch)
tree69302e836afd867a39a1be3f35c84939c4cba37c
parent46610e9effd868eb0d15234495c8f397c4871f79 (diff)
Trainer fixes
-rw-r--r--NesFile.cs2
1 files changed, 1 insertions, 1 deletions
diff --git a/NesFile.cs b/NesFile.cs
index 1b4d631..51f1760 100644
--- a/NesFile.cs
+++ b/NesFile.cs
@@ -803,7 +803,7 @@ namespace com.clusterrr.Famicom.Containers
if (Battery)
header[6] |= (1 << 1);
// 512-byte Trainer
- if (Trainer != null)
+ if (trainer.Length > 0)
header[6] |= (1 << 2);
// Hard-wired four-screen mode
if (Mirroring == MirroringType.FourScreenVram)