2016-08-24 01:35:59 +00:00
|
|
|
//
|
|
|
|
// StaticAnalyser.hpp
|
|
|
|
// Clock Signal
|
|
|
|
//
|
|
|
|
// Created by Thomas Harte on 23/08/2016.
|
|
|
|
// Copyright © 2016 Thomas Harte. All rights reserved.
|
|
|
|
//
|
|
|
|
|
|
|
|
#ifndef StaticAnalyser_hpp
|
|
|
|
#define StaticAnalyser_hpp
|
|
|
|
|
|
|
|
#include "../Storage/Tape/Tape.hpp"
|
2016-08-27 17:42:51 +00:00
|
|
|
#include "../Storage/Disk/Disk.hpp"
|
2016-08-27 22:26:51 +00:00
|
|
|
#include "../Storage/Cartridge/Cartridge.hpp"
|
|
|
|
|
2016-08-24 01:35:59 +00:00
|
|
|
#include <string>
|
|
|
|
#include <list>
|
|
|
|
#include <vector>
|
|
|
|
|
|
|
|
namespace StaticAnalyser {
|
|
|
|
|
2016-09-08 02:17:19 +00:00
|
|
|
enum class Vic20MemoryModel {
|
|
|
|
Unexpanded,
|
|
|
|
EightKB,
|
|
|
|
ThirtyTwoKB
|
|
|
|
};
|
|
|
|
|
2016-08-28 16:20:40 +00:00
|
|
|
/*!
|
|
|
|
A list of disks, tapes and cartridges plus information about the machine to which to attach them and its configuration,
|
|
|
|
and instructions on how to launch the software attached, plus a measure of confidence in this target's correctness.
|
|
|
|
*/
|
2016-08-24 01:35:59 +00:00
|
|
|
struct Target {
|
2016-08-28 16:20:40 +00:00
|
|
|
enum {
|
|
|
|
Atari2600,
|
|
|
|
Electron,
|
2016-10-11 11:39:48 +00:00
|
|
|
Vic20,
|
|
|
|
Oric
|
2016-08-28 16:20:40 +00:00
|
|
|
} machine;
|
2016-08-24 01:35:59 +00:00
|
|
|
float probability;
|
|
|
|
|
|
|
|
union {
|
2016-08-30 01:10:38 +00:00
|
|
|
struct {
|
2016-09-08 02:17:19 +00:00
|
|
|
Vic20MemoryModel memory_model;
|
2016-08-30 01:10:38 +00:00
|
|
|
bool has_c1540;
|
2016-08-27 18:25:16 +00:00
|
|
|
} vic20;
|
2016-08-24 01:35:59 +00:00
|
|
|
|
2016-08-27 18:25:16 +00:00
|
|
|
struct {
|
2016-08-30 01:10:38 +00:00
|
|
|
bool has_adfs;
|
|
|
|
bool has_dfs;
|
2016-09-25 18:11:22 +00:00
|
|
|
bool should_hold_shift;
|
2016-08-27 18:25:16 +00:00
|
|
|
} acorn;
|
2016-11-15 02:31:47 +00:00
|
|
|
|
|
|
|
struct {
|
|
|
|
bool use_atmos_rom;
|
2016-11-21 12:59:25 +00:00
|
|
|
bool has_microdisc;
|
2016-11-15 02:31:47 +00:00
|
|
|
} oric;
|
2016-08-30 01:10:38 +00:00
|
|
|
};
|
2016-08-24 01:35:59 +00:00
|
|
|
|
|
|
|
std::string loadingCommand;
|
2016-08-27 17:42:51 +00:00
|
|
|
|
2016-08-27 21:15:09 +00:00
|
|
|
std::list<std::shared_ptr<Storage::Disk::Disk>> disks;
|
2016-08-27 21:09:45 +00:00
|
|
|
std::list<std::shared_ptr<Storage::Tape::Tape>> tapes;
|
2016-08-27 22:26:51 +00:00
|
|
|
std::list<std::shared_ptr<Storage::Cartridge::Cartridge>> cartridges;
|
2016-08-24 01:35:59 +00:00
|
|
|
};
|
|
|
|
|
2016-08-28 16:20:40 +00:00
|
|
|
/*!
|
|
|
|
Attempts, through any available means, to return a list of potential targets for the file with the given name.
|
|
|
|
|
|
|
|
@returns The list of potential targets, sorted from most to least probable.
|
|
|
|
*/
|
2016-08-27 17:42:51 +00:00
|
|
|
std::list<Target> GetTargets(const char *file_name);
|
2016-08-24 01:35:59 +00:00
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
#endif /* StaticAnalyser_hpp */
|