diff --git a/Analyser/Static/StaticAnalyser.cpp b/Analyser/Static/StaticAnalyser.cpp index 8cc0954de..97160fe37 100644 --- a/Analyser/Static/StaticAnalyser.cpp +++ b/Analyser/Static/StaticAnalyser.cpp @@ -59,6 +59,7 @@ // State Snapshots #include "../../Storage/State/SNA.hpp" +#include "../../Storage/State/Z80.hpp" // Tapes #include "../../Storage/Tape/Formats/CAS.hpp" @@ -200,7 +201,6 @@ static Media GetMediaAndPlatforms(const std::string &file_name, TargetPlatform:: #undef TryInsert #undef InsertInstance - return result; } @@ -226,6 +226,7 @@ TargetList Analyser::Static::GetTargets(const std::string &file_name) { } Format("sna", SNA); + Format("z80", Z80); #undef TryInsert diff --git a/OSBindings/Mac/Clock Signal.xcodeproj/project.pbxproj b/OSBindings/Mac/Clock Signal.xcodeproj/project.pbxproj index 05d2ef9b4..7d908b13d 100644 --- a/OSBindings/Mac/Clock Signal.xcodeproj/project.pbxproj +++ b/OSBindings/Mac/Clock Signal.xcodeproj/project.pbxproj @@ -481,6 +481,8 @@ 4B8DD3682633B2D400B3C866 /* SpectrumVideoContentionTests.mm in Sources */ = {isa = PBXBuildFile; fileRef = 4B8DD3672633B2D400B3C866 /* SpectrumVideoContentionTests.mm */; }; 4B8DD3862634D37E00B3C866 /* SNA.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 4B8DD3842634D37E00B3C866 /* SNA.cpp */; }; 4B8DD3872634D37E00B3C866 /* SNA.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 4B8DD3842634D37E00B3C866 /* SNA.cpp */; }; + 4B8DD39726360DDF00B3C866 /* Z80.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 4B8DD39526360DDF00B3C866 /* Z80.cpp */; }; + 4B8DD39826360DDF00B3C866 /* Z80.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 4B8DD39526360DDF00B3C866 /* Z80.cpp */; }; 4B8DF4D825465B7500F3433C /* IIgsMemoryMapTests.mm in Sources */ = {isa = PBXBuildFile; fileRef = 4B8DF4D725465B7500F3433C /* IIgsMemoryMapTests.mm */; }; 4B8DF4F9254E36AE00F3433C /* Video.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 4B8DF4F7254E36AD00F3433C /* Video.cpp */; }; 4B8DF4FA254E36AE00F3433C /* Video.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 4B8DF4F7254E36AD00F3433C /* Video.cpp */; }; @@ -1435,6 +1437,8 @@ 4B8DD3842634D37E00B3C866 /* SNA.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = SNA.cpp; sourceTree = ""; }; 4B8DD3852634D37E00B3C866 /* SNA.hpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.h; path = SNA.hpp; sourceTree = ""; }; 4B8DD3912635A72F00B3C866 /* State.hpp */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.cpp.h; path = State.hpp; sourceTree = ""; }; + 4B8DD39526360DDF00B3C866 /* Z80.cpp */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.cpp.cpp; path = Z80.cpp; sourceTree = ""; }; + 4B8DD39626360DDF00B3C866 /* Z80.hpp */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.cpp.h; path = Z80.hpp; sourceTree = ""; }; 4B8DF4D62546561300F3433C /* MemoryMap.hpp */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.cpp.h; path = MemoryMap.hpp; sourceTree = ""; }; 4B8DF4D725465B7500F3433C /* IIgsMemoryMapTests.mm */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.cpp.objcpp; path = IIgsMemoryMapTests.mm; sourceTree = ""; }; 4B8DF4ED254B840B00F3433C /* AppleClock.hpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.h; path = AppleClock.hpp; sourceTree = ""; }; @@ -3261,6 +3265,8 @@ children = ( 4B8DD3842634D37E00B3C866 /* SNA.cpp */, 4B8DD3852634D37E00B3C866 /* SNA.hpp */, + 4B8DD39526360DDF00B3C866 /* Z80.cpp */, + 4B8DD39626360DDF00B3C866 /* Z80.hpp */, ); path = State; sourceTree = ""; @@ -5268,6 +5274,7 @@ 4B055AC81FAE9AFB0060FFFF /* C1540.cpp in Sources */, 4B055A8F1FAE85A90060FFFF /* FileHolder.cpp in Sources */, 4B055A911FAE85B50060FFFF /* Cartridge.cpp in Sources */, + 4B8DD39826360DDF00B3C866 /* Z80.cpp in Sources */, 4B894525201967B4007DE474 /* Tape.cpp in Sources */, 4B055ACD1FAE9B030060FFFF /* Keyboard.cpp in Sources */, 4B055AB21FAE860F0060FFFF /* CommodoreTAP.cpp in Sources */, @@ -5364,6 +5371,7 @@ 4BE211FF253FC80900435408 /* StaticAnalyser.cpp in Sources */, 4B0F1BE22602FF9C00B85C66 /* ZX8081.cpp in Sources */, 4B8334951F5E25B60097E338 /* C1540.cpp in Sources */, + 4B8DD39726360DDF00B3C866 /* Z80.cpp in Sources */, 4BEDA40C25B2844B000C2DBD /* Decoder.cpp in Sources */, 4B89453C201967B4007DE474 /* StaticAnalyser.cpp in Sources */, 4B595FAD2086DFBA0083CAA8 /* AudioToggle.cpp in Sources */, diff --git a/OSBindings/Mac/Clock Signal/Info.plist b/OSBindings/Mac/Clock Signal/Info.plist index aac5bb5fd..b37475e53 100644 --- a/OSBindings/Mac/Clock Signal/Info.plist +++ b/OSBindings/Mac/Clock Signal/Info.plist @@ -598,7 +598,27 @@ sna CFBundleTypeName - ZX Spectrum SNA image + ZX Spectrum SNA snapshot + CFBundleTypeOSTypes + + ???? + + CFBundleTypeRole + Viewer + LSHandlerRank + Owner + LSTypeIsPackage + + NSDocumentClass + $(PRODUCT_MODULE_NAME).MachineDocument + + + CFBundleTypeExtensions + + z80 + + CFBundleTypeName + ZX Spectrum Z80 snapshot CFBundleTypeOSTypes ???? diff --git a/Storage/State/Z80.cpp b/Storage/State/Z80.cpp new file mode 100644 index 000000000..16aeaf81a --- /dev/null +++ b/Storage/State/Z80.cpp @@ -0,0 +1,15 @@ +// +// Z80.cpp +// Clock Signal +// +// Created by Thomas Harte on 25/04/2021. +// Copyright © 2021 Thomas Harte. All rights reserved. +// + +#include "Z80.hpp" + +using namespace Storage::State; + +std::unique_ptr Z80::load(const std::string &file_name) { + return nullptr; +} diff --git a/Storage/State/Z80.hpp b/Storage/State/Z80.hpp new file mode 100644 index 000000000..062089fca --- /dev/null +++ b/Storage/State/Z80.hpp @@ -0,0 +1,24 @@ +// +// Z80.hpp +// Clock Signal +// +// Created by Thomas Harte on 25/04/2021. +// Copyright © 2021 Thomas Harte. All rights reserved. +// + +#ifndef Z80_hpp +#define Z80_hpp + +#include "../../Analyser/Static/StaticAnalyser.hpp" + +namespace Storage { +namespace State { + +struct Z80 { + static std::unique_ptr load(const std::string &file_name); +}; + +} +} + +#endif /* Z80_hpp */