1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
#include "filesystem/nebu_filesystem.h" #include <stdio.h> void initFilesystem(int argc, const char *argv[]) { dirSetup(argv[0]); } int fileExists(const char *path) { FILE *f; if((f = fopen(path, "r"))) { fclose(f); return 1; } return 0; }