| 23 | Recorder* Recorder::instance; |
| 24 | |
| 25 | void Recorder::start(BString directory) { |
| 26 | Recorder::instance = new Recorder(); |
| 27 | instance->directory = directory; |
| 28 | Fs::makeNativeDirs(directory); |
| 29 | instance->file.createNew(BString(directory+"/"+RECORDER_SCRIPT)); |
| 30 | instance->screenShotCount = 0; |
| 31 | instance->out("VERSION=2\r\n"); |
| 32 | } |
| 33 | |
| 34 | void Recorder::out(const char* s) { |
| 35 | file.write(s); |