| 1 | #pragma once |
| 2 | |
| 3 | #include <stdint.h> |
| 4 | #include <stdbool.h> |
| 5 | #include "pt2_header.h" |
| 6 | |
| 7 | enum |
| 8 | { |
| 9 | DISKOP_NO_CACHE = 0, |
| 10 | DISKOP_CACHE = 1 |
| 11 | }; |
| 12 | |
| 13 | #define DISKOP_LINES 10 |
| 14 | |
| 15 | void addSampleFileExt(char *fileName); |
| 16 | void diskOpShowSelectText(void); |
| 17 | void diskOpLoadFile(uint32_t fileEntryRow, bool songModifiedCheck); |
| 18 | void handleEntryJumping(SDL_Keycode jumpToChar); |
| 19 | bool diskOpEntryIsEmpty(int32_t fileIndex); |
| 20 | bool diskOpEntryIsDir(int32_t fileIndex); |
| 21 | char *diskOpGetAnsiEntry(int32_t fileIndex); |
| 22 | UNICHAR *diskOpGetUnicodeEntry(int32_t fileIndex); |
| 23 | bool diskOpSetPath(UNICHAR *path, bool cache); |
| 24 | void diskOpSetInitPath(void); |
| 25 | void diskOpRenderFileList(void); |
| 26 | bool allocDiskOpVars(void); |
| 27 | void freeDiskOpMem(void); |
| 28 | void freeDiskOpEntryMem(void); |
| 29 | void setPathFromDiskOpMode(void); |
| 30 | bool changePathToDesktop(void); |
| 31 | #ifndef _WIN32 |
| 32 | bool changePathToHome(void); |
| 33 | #endif |
| 34 | void renderDiskOpScreen(void); |
| 35 | void updateDiskOp(void); |