prosperon/source/engine/resources.h

31 lines
685 B
C
Raw Normal View History

2021-11-30 21:29:18 -06:00
#ifndef RESOURCES_H
#define RESOURCES_H
#include <stdio.h>
struct vec;
extern char *DATA_PATH;
extern char *PREF_PATH;
extern const char *EXT_PREFAB;
extern const char *EXT_LEVEL;
2022-08-24 12:24:21 -05:00
extern const char *EXT_ASSET;
2021-11-30 21:29:18 -06:00
extern int stemlen;
void resources_init();
extern struct vec *prefabs;
void findPrefabs();
2022-01-19 16:43:21 -06:00
void fill_extensions(struct vec *vec, 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
#endif