summaryrefslogtreecommitdiffstats
path: root/nebu/filesystem/filesystem.c
blob: 4576087152177eed4f63232a11638937d5d721f8 (plain)
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;
}