diff options
author | Juan Linietsky <reduzio@gmail.com> | 2014-02-20 23:01:44 -0300 |
---|---|---|
committer | Juan Linietsky <reduzio@gmail.com> | 2014-02-20 23:01:44 -0300 |
commit | f2a068984c36de1f77940ae9d5dc0d017b8e642d (patch) | |
tree | 870fc023ade48d3817624b32b301105e0b86bb9e /platform/flash/dir_access_flash.h | |
parent | 51c55b237b795fa4c085841dbf935c0bd103d5c7 (diff) |
-run script in editor
-add search docs dialog that returns places string was found
-added flash
Diffstat (limited to 'platform/flash/dir_access_flash.h')
-rw-r--r-- | platform/flash/dir_access_flash.h | 63 |
1 files changed, 63 insertions, 0 deletions
diff --git a/platform/flash/dir_access_flash.h b/platform/flash/dir_access_flash.h new file mode 100644 index 0000000000..09e0b844ce --- /dev/null +++ b/platform/flash/dir_access_flash.h @@ -0,0 +1,63 @@ +/*************************************************/ +/* dir_access_psp.h */ +/*************************************************/ +/* This file is part of: */ +/* GODOT ENGINE */ +/*************************************************/ +/* Source code within this file is: */ +/* (c) 2007-2010 Juan Linietsky, Ariel Manzur */ +/* All Rights Reserved. */ +/*************************************************/ + +#ifndef DIR_ACCESS_FLASH_H +#define DIR_ACCESS_FLASH_H + +#include "core/os/dir_access.h" + +#include <sys/types.h> +#include <sys/stat.h> +#include <unistd.h> +#include <dirent.h> + +class DirAccessFlash : public DirAccess { + + DIR *dir_stream; + + String current_dir; + bool _cisdir; + + static DirAccess* create_flash(); + +public: + + bool list_dir_begin(); ///< This starts dir listing + String get_next(); + bool current_is_dir() const; + + void list_dir_end(); ///< + + int get_drive_count(); + String get_drive(int p_drive); + + Error change_dir(String p_dir); ///< can be relative or absolute, return false on success + String get_current_dir(); ///< return current dir location + + Error make_dir(String p_dir); + + bool file_exists(String p_file); + + size_t get_space_left(); + + uint64_t get_modified_time(String p_file); + + Error rename(String p_from, String p_to); + Error remove(String p_name); + + static void make_default(); + + DirAccessFlash(); + ~DirAccessFlash(); +}; + +#endif // DIR_ACCESS_PSP_H + |