- [NEW] Executant la versió de debug amb el paràmeter "--new" crea un projecte nou en eixe directori. - [NEW] Nou sistema de log - [FIX] Amb el tema de usar std::vector no s'estava inicialitzant la surface de pantalla correctament. - [FIX] Proteccions per a que no pete quan s'intenta usar funcions que els fa falta una surface de oritge, pero no hi ha ninguna seleccionada. - [NEW] file_createFolder() (ATENCIÓ: No funcionarà en Windows encara)
24 lines
852 B
C
24 lines
852 B
C
#pragma once
|
|
#include <stdio.h>
|
|
|
|
#define SOURCE_FILE 0
|
|
#define SOURCE_FOLDER 1
|
|
|
|
void file_setconfigfolder(const char *foldername);
|
|
const char *file_getconfigfolder();
|
|
|
|
void file_setresourcefilename(const char *str);
|
|
void file_setresourcefolder(const char *str);
|
|
void file_setsource(const int src);
|
|
|
|
FILE *file_getfilepointer(const char *resourcename, int& filesize, const bool binary=false);
|
|
char *file_getfilebuffer(const char *resourcename, int& filesize, const bool zero_terminate=false);
|
|
|
|
FILE *file_getfilepointerex(const char *filename, int& filesize, const bool binary=false);
|
|
char *file_getfilebufferex(const char *filename, int& filesize, const bool zero_terminate=false);
|
|
|
|
const char* file_getconfigvalue(const char *key);
|
|
void file_setconfigvalue(const char* key, const char* value);
|
|
|
|
bool file_createFolder(const char* name);
|