Namespaces | Functions | Variables File Reference
#include "DiskImageUtils.hh"
#include "DiskPartition.hh"
#include "CommandException.hh"
#include "BootBlocks.hh"
#include "endian.hh"
#include "random.hh"
#include <cstring>
#include <cassert>
#include <ctime>
Include dependency graph for

Go to the source code of this file.


 This file implemented 3 utility functions:


bool openmsx::DiskImageUtils::hasPartitionTable (SectorAccessibleDisk &disk)
 Check whether the given disk is partitioned. More...
void openmsx::DiskImageUtils::checkValidPartition (SectorAccessibleDisk &disk, unsigned partition)
 Checks whether the disk is partitioned the specified partition exists throws a CommandException if one of these conditions is false. More...
void openmsx::DiskImageUtils::checkFAT12Partition (SectorAccessibleDisk &disk, unsigned partition)
 Like above, but also check whether partition is of type FAT12. More...
void openmsx::DiskImageUtils::format (SectorAccessibleDisk &disk, bool dos1=false)
 Format the given disk (= a single partition). More...
void openmsx::DiskImageUtils::partition (SectorAccessibleDisk &disk, const std::vector< unsigned > &sizes)
 Write a partition table to the given disk and format each partition. More...


constexpr char openmsx::DiskImageUtils::PARTAB_HEADER [11]