GodMode9i/arm9/source/fileOperations.h
Pk11 18e66033dc
Add removing items from clipboard & auto version number (#70)
* Add removing from clipboard

* Automatically get verison number

* Clear clipboard if remoing last item
2020-09-12 22:08:06 -06:00

30 lines
766 B
C++

#include <nds.h>
#include "file_browse.h"
#ifndef FILE_COPY
#define FILE_COPY
struct ClipboardFile {
std::string path;
std::string name;
bool folder;
int drive; // 0 == SD card, 1 == Flashcard, 2 == RAMdrive 1, 3 == RAMdrive 2
bool nitro;
ClipboardFile(std::string path, std::string name, bool folder, int drive, bool nitro) : path(path), name(name), folder(folder), drive(drive), nitro(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