GodMode9i/arm9/source/fileOperations.h
Pk11 5437be1a2e
Add save file restoring (#68)
* Remove `using namespace std`

* Improve extension function and use more

* Add save restoring

and remove fstream to save ~300KB
2020-08-20 19:09:20 -06:00

30 lines
691 B
C++

#include <nds.h>
#include "file_browse.h"
#ifndef FILE_COPY
#define FILE_COPY
struct ClipboardFile {
char path[256];
char name[256];
bool folder;
int drive; // 0 == SD card, 1 == Flashcard, 2 == RAMdrive 1, 3 == RAMdrive 2
bool nitro;
ClipboardFile(const char *path, const char *name, bool folder, int drive, bool nitro);
};
extern std::vector<ClipboardFile> clipboard;
extern bool clipboardOn;
extern bool clipboardUsed;
extern void printBytes(int bytes);
extern void printBytesAlign(int bytes);
extern off_t getFileSize(const char *fileName);
extern int fcopy(const char *sourcePath, const char *destinationPath);
void changeFileAttribs(DirEntry* entry);
#endif // FILE_COPY