N64FlashcartMenu
Loading...
Searching...
No Matches
src
utils
fs.h
1
#ifndef UTILS_FS_H__
2
#define UTILS_FS_H__
3
4
5
#include <stdbool.h>
6
#include <stddef.h>
7
#include <stdint.h>
8
9
10
#define FS_SECTOR_SIZE (512)
11
12
13
char
*strip_sd_prefix (
char
*path);
14
15
bool
file_exists (
char
*path);
16
size_t
file_get_size (
char
*path);
17
bool
file_delete (
char
*path);
18
bool
file_allocate (
char
*path,
size_t
size);
19
bool
file_fill (
char
*path, uint8_t value);
20
bool
file_get_sectors (
char
*path,
void
(*callback) (uint32_t sector_count, uint32_t file_sector, uint32_t cluster_sector, uint32_t cluster_size));
21
bool
file_has_extensions (
char
*path,
const
char
*extensions[]);
22
23
bool
directory_exists (
char
*path);
24
bool
directory_delete (
char
*path);
25
bool
directory_create (
char
*path);
26
27
28
#endif
Generated on Sun Jan 7 2024 04:24:56 for N64FlashcartMenu by
1.9.5