mirror of
https://gitlab.com/Mr_Goldberg/goldberg_emulator.git
synced 2025-12-06 04:04:53 +01:00
Add fs utility functions for overlay use.
As we need to add a file chooser to the overlay, we need the backend functions for it to use. This commit adds: Local_Storage::get_parent_directory(). Local_Storage::is_directory(). Local_Storage::get_user_pictures_path(). Local_Storage::get_drive_list(). Posix version of DirectoryExists().
This commit is contained in:
parent
d493e30b98
commit
1fa0f4d4d5
2 changed files with 126 additions and 0 deletions
|
|
@ -60,7 +60,11 @@ private:
|
|||
public:
|
||||
static std::string get_program_path();
|
||||
static std::string get_game_settings_path();
|
||||
static std::string get_user_pictures_path();
|
||||
static std::string get_user_appdata_path();
|
||||
static std::string get_parent_directory(std::string &path);
|
||||
static std::vector<std::string> get_drive_list();
|
||||
static bool is_directory(std::string &path);
|
||||
Local_Storage(std::string save_directory);
|
||||
static int get_file_data(std::string full_path, char *data, unsigned int max_length, unsigned int offset=0);
|
||||
void setAppId(uint32 appid);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue