More hfs boilerplate.

This commit is contained in:
dtrg
2022-08-29 13:41:53 +00:00
parent 9c6dc0a2f8
commit 5625cf5254
3 changed files with 14 additions and 2 deletions

View File

@@ -64,12 +64,13 @@ LIBFLUXENGINE_SRCS = \
lib/usb/usb.cc \
lib/usb/usbfinder.cc \
lib/utils.cc \
lib/vfs/brother120fs.cc \
lib/vfs/acorndfs.cc \
lib/vfs/amigaffs.cc \
lib/vfs/brother120fs.cc \
lib/vfs/cpmfs.cc \
lib/vfs/vfs.cc \
lib/vfs/fatfs.cc \
lib/vfs/machfs.cc \
lib/vfs/vfs.cc \
lib/vfs/fluxsectorinterface.cc \
lib/vfs/imagesectorinterface.cc \
@@ -87,5 +88,6 @@ $(LIBFLUXENGINE_OBJS): CFLAGS += $(LIBUSBP_CFLAGS)
$(LIBFLUXENGINE_OBJS): CFLAGS += $(PROTO_CFLAGS)
$(LIBFLUXENGINE_OBJS): CFLAGS += $(FATFS_CFLAGS)
$(LIBFLUXENGINE_OBJS): CFLAGS += $(ADFLIB_CFLAGS)
$(LIBFLUXENGINE_OBJS): CFLAGS += $(HFSUTILS_CFLAGS)
$(call use-pkgconfig, $(LIBFLUXENGINE_LIB), $(LIBFLUXENGINE_OBJS), fmt)

6
lib/vfs/machfs.cc Normal file
View File

@@ -0,0 +1,6 @@
#include "lib/globals.h"
#include "lib/vfs/vfs.h"
#include "lib/config.pb.h"
#include <fmt/format.h>
#include "libhfs.h"

View File

@@ -38,6 +38,9 @@ message CpmFsProto {
message AmigaFfsProto {
}
message MacHfsProto {
}
message FilesystemProto {
oneof filesystem {
AcornDfsProto acorndfs = 1;
@@ -45,6 +48,7 @@ message FilesystemProto {
FatFsProto fatfs = 3;
CpmFsProto cpmfs = 4;
AmigaFfsProto amigaffs = 5;
MacHfsProto machfs = 6;
}
}