Introduce MountType enum for CDROM_GetMountType
This commit is contained in:
parent
f82a0a46da
commit
28dd59e03e
3 changed files with 16 additions and 17 deletions
|
@ -56,6 +56,12 @@ typedef struct SCtrl {
|
|||
Bit8u vol[4]; // channel volume (0 to 255)
|
||||
} TCtrl;
|
||||
|
||||
enum class MountType {
|
||||
PHYSICAL_CD,
|
||||
ISO_IMAGE,
|
||||
DIRECTORY,
|
||||
};
|
||||
|
||||
// Conversion function from frames to Minutes/Second/Frames
|
||||
//
|
||||
template<typename T>
|
||||
|
@ -73,7 +79,7 @@ inline int msf_to_frames(int m, int s, int f) {
|
|||
return m * 60 * REDBOOK_FRAMES_PER_SECOND + s * REDBOOK_FRAMES_PER_SECOND + f;
|
||||
}
|
||||
|
||||
extern int CDROM_GetMountType(char* path);
|
||||
MountType CDROM_GetMountType(const char *path);
|
||||
|
||||
class CDROM_Interface
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue