1
0
mirror of https://github.com/TomHarte/CLK.git synced 2024-11-26 08:49:37 +00:00
CLK/Analyser/Static/Acorn/Disk.hpp

34 lines
769 B
C++
Raw Normal View History

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