2023-02-06 05:38:02 +00:00
|
|
|
#ifdef CIDERPRESS
|
2023-02-05 18:49:07 +00:00
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include "asm.h"
|
|
|
|
#include "eval.h"
|
|
|
|
#include "psuedo.h"
|
|
|
|
#include <sys/ioctl.h>
|
|
|
|
#include <unistd.h>
|
|
|
|
#include <string.h>
|
|
|
|
#include "DiskImg.h"
|
|
|
|
|
|
|
|
#define CLASS CiderPress
|
|
|
|
|
2023-02-06 05:38:02 +00:00
|
|
|
enum CIDER_VOLFORMAT {CP_PRODOS,CP_HFS};
|
|
|
|
class CLASS : public TFileProcessor
|
2023-02-05 18:49:07 +00:00
|
|
|
{
|
2023-02-06 05:38:02 +00:00
|
|
|
protected:
|
|
|
|
std::vector<MerlinLine> lines;
|
|
|
|
public:
|
2023-02-07 06:27:19 +00:00
|
|
|
CLASS(ConfigOptions &opt);
|
2023-02-06 05:38:02 +00:00
|
|
|
virtual ~CLASS();
|
|
|
|
int CreateVolume(string OSName, string VolName, uint64_t size, CIDER_VOLFORMAT format);
|
|
|
|
int RunScript(string path);
|
|
|
|
virtual int doline(int lineno, std::string line);
|
|
|
|
virtual void process(void);
|
|
|
|
virtual void complete(void);
|
2023-02-05 18:49:07 +00:00
|
|
|
};
|
|
|
|
|
2023-02-06 05:38:02 +00:00
|
|
|
#undef CLASS
|
|
|
|
#endif
|