mirror of
https://github.com/rvtr/GodMode9i.git
synced 2025-06-18 10:55:31 -04:00
30 lines
818 B
C++
30 lines
818 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(std::move(path)), name(std::move(name)), folder(folder), drive(drive), nitro(nitro) {}
|
|
};
|
|
|
|
extern std::vector<ClipboardFile> clipboard;
|
|
extern bool clipboardOn;
|
|
extern bool clipboardUsed;
|
|
|
|
extern std::string getBytes(int bytes);
|
|
|
|
extern off_t getFileSize(const char *fileName);
|
|
extern bool calculateSHA1(const char *fileName, u8 *sha1);
|
|
extern int fcopy(const char *sourcePath, const char *destinationPath);
|
|
void changeFileAttribs(const DirEntry *entry);
|
|
|
|
#endif // FILE_COPY
|