2021-11-30 21:29:18 -06:00
|
|
|
#ifndef RESOURCES_H
|
|
|
|
#define RESOURCES_H
|
|
|
|
|
|
|
|
#include <stdio.h>
|
|
|
|
|
|
|
|
extern int stemlen;
|
|
|
|
|
|
|
|
void resources_init();
|
2023-08-27 21:57:19 -05:00
|
|
|
void fill_extensions(char *paths, const char *path, const char *ext);
|
2021-11-30 21:29:18 -06:00
|
|
|
char *get_filename_from_path(char *path, int extension);
|
|
|
|
char *get_directory_from_path(char *path);
|
2022-08-24 12:24:21 -05:00
|
|
|
char *str_replace_ext(const char *s, const char *newext);
|
2021-11-30 21:29:18 -06:00
|
|
|
FILE *res_open(char *path, const char *tag);
|
2022-02-06 10:14:57 -06:00
|
|
|
FILE *path_open(const char *tag, const char *fmt, ...);
|
|
|
|
char *make_path(const char *file);
|
2021-11-30 21:29:18 -06:00
|
|
|
|
2022-08-25 15:48:15 -05:00
|
|
|
char *strdup(const char *s);
|
|
|
|
|
2023-09-04 09:48:44 -05:00
|
|
|
unsigned char *slurp_file(const char *filename, long *size);
|
|
|
|
char *slurp_text(const char *filename);
|
|
|
|
int slurp_write(const char *txt, const char *filename);
|
|
|
|
|
|
|
|
void pack_engine();
|
|
|
|
|
2021-11-30 21:29:18 -06:00
|
|
|
#endif
|