mirror of
https://github.com/joel16/VITAlbum.git
synced 2024-11-26 21:10:25 +00:00
23 lines
897 B
C++
23 lines
897 B
C++
#pragma once
|
|
|
|
#include <psp2/io/dirent.h>
|
|
#include <psp2/types.h>
|
|
#include <string>
|
|
#include <vector>
|
|
|
|
namespace FS {
|
|
bool FileExists(const std::string &path);
|
|
bool DirExists(const std::string &path);
|
|
int MakeDir(const std::string &path);
|
|
int GetFileSize(const std::string &path, SceOff &size);
|
|
std::string GetFileExt(const std::string &filename);
|
|
bool IsImageType(const std::string &filename);
|
|
int GetDirList(const std::string &path, std::vector<SceIoDirent> &entries);
|
|
int ChangeDirNext(const std::string &path, std::vector<SceIoDirent> &entries);
|
|
int ChangeDirPrev(std::vector<SceIoDirent> &entries);
|
|
const std::string BuildPath(SceIoDirent &entry);
|
|
int CreateFile(const std::string &path);
|
|
int ReadFile(const std::string &path, unsigned char **buffer, SceOff &size);
|
|
int WriteFile(const std::string &path, const void *data, SceSize size);
|
|
}
|