From b409c88c50261797a86b76d0cc56cc16c8569fc9 Mon Sep 17 00:00:00 2001 From: Asnivor Date: Mon, 5 Mar 2018 16:40:36 +0000 Subject: [PATCH] Fixed .tap system detection. was causing an exception due to shocking bit of anti-logic (on my part) when opening from zip files --- BizHawk.Emulation.Common/Database/Database.cs | 2 +- BizHawk.Emulation.Cores/Computers/SinclairSpectrum/readme.md | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/BizHawk.Emulation.Common/Database/Database.cs b/BizHawk.Emulation.Common/Database/Database.cs index 9364aac02d..d106a5e91a 100644 --- a/BizHawk.Emulation.Common/Database/Database.cs +++ b/BizHawk.Emulation.Common/Database/Database.cs @@ -309,7 +309,7 @@ namespace BizHawk.Emulation.Common case ".TAP": - byte[] head = File.ReadAllBytes(fileName).Take(8).ToArray(); + byte[] head = romData.Take(8).ToArray(); if (System.Text.Encoding.Default.GetString(head).Contains("C64-TAPE")) game.System = "C64"; else diff --git a/BizHawk.Emulation.Cores/Computers/SinclairSpectrum/readme.md b/BizHawk.Emulation.Cores/Computers/SinclairSpectrum/readme.md index f4f78dd4fc..7b2345b74c 100644 --- a/BizHawk.Emulation.Cores/Computers/SinclairSpectrum/readme.md +++ b/BizHawk.Emulation.Cores/Computers/SinclairSpectrum/readme.md @@ -16,11 +16,11 @@ At the moment this is very experimental and is still actively being worked on. * Most tape protection/loading schemes that I've tested are currently working (see caveat below) * IStatable * ISettable core settings +* Tape auto-loading routines (as a setting) ### Work in progress * Exact emulator timings * Floating memory bus emulation -* Tape auto-loading routines (currently you have to manually start and stop the virtual tape device) * TASStudio (need to verify that this works as it should) ### Not working