1 #include "filesys.h"
2 #include "native/filesys.h"
3 
4 #include "debug.h"
5 #include "settings.h"
6 
7 #include <stdlib.h>
8 
utox_get_file(const char * name,size_t * size,UTOX_FILE_OPTS opts)9 FILE *utox_get_file(const char *name, size_t *size, UTOX_FILE_OPTS opts) {
10     return native_get_file((uint8_t *)name, size, opts, settings.portable_mode);
11 }
12 
utox_get_file_simple(const char * name,UTOX_FILE_OPTS opts)13 FILE *utox_get_file_simple(const char *name, UTOX_FILE_OPTS opts) {
14     return native_get_file_simple(name, opts);
15 }
16 
utox_remove_file(const uint8_t * full_name,size_t length)17 bool utox_remove_file(const uint8_t *full_name, size_t length) {
18     return native_remove_file(full_name, length, settings.portable_mode);
19 }
20 
utox_move_file(const uint8_t * current_name,const uint8_t * new_name)21 bool utox_move_file(const uint8_t *current_name, const uint8_t *new_name) {
22     return native_move_file(current_name, new_name);
23 }
24 
utox_get_filepath(const char * name)25 char *utox_get_filepath(const char *name) {
26     return native_get_filepath(name);
27 }
28