1
0
Fork 0

Move GetMountType to dos_mscdex file

This was the only user of this function.
This commit is contained in:
Patryk Obara 2019-12-13 02:07:36 +01:00 committed by Patryk Obara
parent 3e6e97bf47
commit d035c2cbd9
3 changed files with 23 additions and 29 deletions

View file

@ -18,24 +18,6 @@
#include "cdrom.h"
#include <sys/types.h>
#include <sys/stat.h>
#include <unistd.h>
#include "support.h"
MountType CDROM_GetMountType(const char *path) {
struct stat file_stat;
if ((stat(path, &file_stat) == 0) && (file_stat.st_mode & S_IFREG))
return MountType::ISO_IMAGE;
else
return MountType::DIRECTORY;
}
// ******************************************************
// Fake CDROM
// ******************************************************
bool CDROM_Interface_Fake :: GetAudioTracks(int& stTrack, int& end, TMSF& leadOut) {
stTrack = end = 1;
leadOut.min = 60;