GodMode9i/arm9/source/fileOperations.h
Void 7e7ae6159a
Multi file copy paste support (#63)
* multi file copy paste support

* fix indentation

* fix overflow
2020-07-30 16:15:55 -06:00

30 lines
686 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 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