- Create `Include/` folder for all main projects - Fix some issues here and there (found while moving things) - All includes are now in `Tactility/` subfolder and must be included with that prefix. This fixes issues with clashing POSIX headers (e.g. `<semaphore.h>` versus Tactility's `Semaphore.h`)
27 lines
503 B
C++
27 lines
503 B
C++
#pragma once
|
|
|
|
#include <Tactility/hal/SdCard.h>
|
|
|
|
using namespace tt::hal;
|
|
|
|
class SimulatorSdCard : public SdCard {
|
|
private:
|
|
State state;
|
|
public:
|
|
SimulatorSdCard() : SdCard(MountBehaviour::AtBoot), state(State::Unmounted) {}
|
|
|
|
bool mount(const char* mountPath) override {
|
|
state = State::Mounted;
|
|
return true;
|
|
}
|
|
bool unmount() override {
|
|
state = State::Unmounted;
|
|
return true;
|
|
}
|
|
|
|
State getState() const override {
|
|
return state;
|
|
}
|
|
};
|
|
|