-run script in editor
-add search docs dialog that returns places string was found -added flash
This commit is contained in:
parent
51c55b237b
commit
f2a068984c
40 changed files with 25011 additions and 6 deletions
63
platform/flash/dir_access_flash.h
Normal file
63
platform/flash/dir_access_flash.h
Normal file
|
|
@ -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
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue