1
0
Fork 0

Introduce MountType enum for CDROM_GetMountType

This commit is contained in:
Patryk Obara 2019-12-02 11:35:29 +01:00 committed by Patryk Obara
parent f82a0a46da
commit 28dd59e03e
3 changed files with 16 additions and 17 deletions

View file

@ -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
{