-
Notifications
You must be signed in to change notification settings - Fork 69
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
72e8289
commit 430d83e
Showing
3 changed files
with
8 additions
and
170 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,23 +1,5 @@ | ||
#pragma once | ||
|
||
#include <cstdint> | ||
#include <string> | ||
#include <vector> | ||
#include "fatfs_blit_api.hpp" | ||
|
||
#include "engine/file.hpp" | ||
|
||
bool get_files_open(); | ||
void close_open_files(); | ||
|
||
void *open_file(const std::string &file, int mode); | ||
int32_t read_file(void *fh, uint32_t offset, uint32_t length, char *buffer); | ||
int32_t write_file(void *fh, uint32_t offset, uint32_t length, const char *buffer); | ||
int32_t close_file(void *fh); | ||
uint32_t get_file_length(void *fh); | ||
void list_files(const std::string &path, std::function<void(blit::FileInfo &)> callback); | ||
bool file_exists(const std::string &path); | ||
bool directory_exists(const std::string &path); | ||
bool create_directory(const std::string &path); | ||
bool rename_file(const std::string &old_name, const std::string &new_name); | ||
bool remove_file(const std::string &path); | ||
const char *get_save_path(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters