2016-09-18 21:18:11 -04:00
|
|
|
//
|
|
|
|
// Disk.hpp
|
|
|
|
// Clock Signal
|
|
|
|
//
|
|
|
|
// Created by Thomas Harte on 18/09/2016.
|
2018-05-13 15:19:52 -04:00
|
|
|
// Copyright 2016 Thomas Harte. All rights reserved.
|
2016-09-18 21:18:11 -04:00
|
|
|
//
|
|
|
|
|
2024-01-16 23:34:46 -05:00
|
|
|
#pragma once
|
2016-09-18 21:18:11 -04:00
|
|
|
|
|
|
|
#include "File.hpp"
|
2018-01-24 21:48:44 -05:00
|
|
|
#include "../../../Storage/Disk/Disk.hpp"
|
2016-09-18 21:18:11 -04:00
|
|
|
|
2023-05-10 16:02:18 -05:00
|
|
|
namespace Analyser::Static::Acorn {
|
2016-09-18 21:18:11 -04:00
|
|
|
|
2018-05-13 15:34:31 -04:00
|
|
|
/// Describes a DFS- or ADFS-format catalogue(/directory): the list of files available and the catalogue's boot option.
|
2016-09-19 07:35:02 -04:00
|
|
|
struct Catalogue {
|
2024-02-22 22:19:10 -05:00
|
|
|
bool is_hugo = false;
|
2024-04-17 22:44:55 -04:00
|
|
|
bool has_large_sectors = false;
|
2016-09-19 07:35:02 -04:00
|
|
|
std::string name;
|
2018-01-23 22:18:16 -05:00
|
|
|
std::vector<File> files;
|
2016-09-19 07:35:02 -04:00
|
|
|
enum class BootOption {
|
|
|
|
None,
|
|
|
|
LoadBOOT,
|
|
|
|
RunBOOT,
|
|
|
|
ExecBOOT
|
|
|
|
} bootOption;
|
|
|
|
};
|
|
|
|
|
2024-11-29 21:08:35 -05:00
|
|
|
std::unique_ptr<Catalogue> GetDFSCatalogue(const std::shared_ptr<Storage::Disk::Disk> &);
|
|
|
|
std::unique_ptr<Catalogue> GetADFSCatalogue(const std::shared_ptr<Storage::Disk::Disk> &);
|
2016-09-18 21:18:11 -04:00
|
|
|
|
|
|
|
}
|