1
0
Fork 0

Move buffer to class for upcomming multiple floppy support (rcblanke). Remove heavy bios_disk dependency from drives.h

Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@3806
This commit is contained in:
Peter Veenstra 2012-12-26 16:14:19 +00:00
parent 7e8381037e
commit 5eb1217cb4
5 changed files with 9 additions and 5 deletions

View file

@ -33,6 +33,7 @@
#include "dos_system.h"
#include "dos_inc.h"
#include "bios.h"
#include "bios_disk.h"
#include "setup.h"
#include "control.h"

View file

@ -27,6 +27,7 @@
#include "support.h"
#include "cross.h"
#include "bios.h"
#include "bios_disk.h"
#define IMGTYPE_FLOPPY 0
#define IMGTYPE_ISO 1
@ -36,9 +37,6 @@
#define FAT16 1
#define FAT32 2
Bit8u fatSectBuffer[1024];
Bit32u curFatSect;
class fatFile : public DOS_File {
public:
fatFile(const char* name, Bit32u startCluster, Bit32u fileLen, fatDrive *useDrive);

View file

@ -24,7 +24,6 @@
#include <sys/types.h>
#include "dos_system.h"
#include "shell.h" /* for DOS_Shell */
#include "bios_disk.h" /* for fatDrive */
bool WildFileCmp(const char * file, const char * wild);
void Set_Label(char const * const input, char * const output, bool cdrom);
@ -142,7 +141,8 @@ struct partTable {
#ifdef _MSC_VER
#pragma pack ()
#endif
//Forward
class imageDisk;
class fatDrive : public DOS_Drive {
public:
fatDrive(const char * sysFilename, Bit32u bytesector, Bit32u cylsector, Bit32u headscyl, Bit32u cylinders, Bit32u startSector);
@ -207,6 +207,9 @@ private:
Bit32u cwdDirCluster;
Bit32u dirPosition; /* Position in directory search */
Bit8u fatSectBuffer[1024];
Bit32u curFatSect;
};

View file

@ -20,6 +20,7 @@
#include "dosbox.h"
#include "callback.h"
#include "bios.h"
#include "bios_disk.h"
#include "regs.h"
#include "mem.h"
#include "dos_inc.h" /* for Drives[] */

View file

@ -21,6 +21,7 @@
#include "shell.h"
#include "callback.h"
#include "regs.h"
#include "bios.h"
#include "../dos/drives.h"
#include "support.h"
#include "control.h"