blob: 47bd6a26172bfe4f5ec5255521d573d63b06436f (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
|
// license:BSD-3-Clause
// copyright-holders:Aaron Giles,R. Belmont
/***************************************************************************
dvdrom.h
Generic MAME dvd-rom implementation
***************************************************************************/
#ifndef MAME_LIB_UTIL_DVDROM_H
#define MAME_LIB_UTIL_DVDROM_H
#pragma once
#include "chd.h"
#include "ioprocs.h"
#include "osdcore.h"
class dvdrom_file {
public:
dvdrom_file(chd_file *chd);
dvdrom_file(std::string_view inputfile);
~dvdrom_file();
uint32_t get_sector_count() const { return sector_count; }
/* core read access */
std::error_condition read_data(uint32_t lbasector, void *buffer);
private:
/** @brief The chd, when there's one */
chd_file * chd; /* CHD file */
/** @brief The raw file, when there isn't */
util::random_read_write * fhandle; // file if not a CHD
/** @brief Size of the dvd image in sectors */
uint32_t sector_count;
};
#endif // MAME_LIB_UTIL_DVDROM_H
|