Add Patch 1001897 by Martin. Disabled modem and ipx networking by default as they depend on libraries not everybody may have. Reduces alarmed firewall people and is nicer on unix hosts as port 23 is a bit tricky
Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@1904
This commit is contained in:
parent
18f13c2b60
commit
02ff2737d7
11 changed files with 1390 additions and 19 deletions
|
@ -21,6 +21,7 @@
|
|||
// SDL CDROM
|
||||
// ******************************************************
|
||||
|
||||
#include <sys/stat.h>
|
||||
#include "SDL.h"
|
||||
#include "support.h"
|
||||
#include "cdrom.h"
|
||||
|
@ -175,8 +176,13 @@ int CDROM_GetMountType(char* path, int forceCD)
|
|||
cdName = SDL_CDName(i);
|
||||
if (strcmp(buffer,cdName)==0) return 0;
|
||||
};
|
||||
// TODO: Detect ISO
|
||||
return 2;
|
||||
|
||||
// Detect ISO
|
||||
struct stat file_stat;
|
||||
stat(path, &file_stat);
|
||||
if (S_ISREG(file_stat.st_mode)) return 1;
|
||||
|
||||
return 2;
|
||||
};
|
||||
|
||||
// ******************************************************
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue