Classes | Namespaces | Functions
DiskImageUtils.hh File Reference
#include "openmsx.hh"
#include "AlignedBuffer.hh"
#include "endian.hh"
#include "alignof.hh"
#include <vector>
Include dependency graph for DiskImageUtils.hh:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.


struct  openmsx::MSXBootSector
struct  openmsx::MSXDirEntry
struct  openmsx::Partition
struct  openmsx::PartitionTable
union  openmsx::SectorBuffer


 Thanks to enen for testing this on a real cartridge:


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...
bool openmsx::DiskImageUtils::hasPartitionTable (SectorAccessibleDisk &disk)
 Check whether the given disk is partitioned. 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...