From e753c19da1b621b1e667de85ce5ef60d186f0684 Mon Sep 17 00:00:00 2001 From: ptitSeb Date: Sun, 28 Feb 2021 14:19:04 +0100 Subject: Added some minimal set of source (now box64 compile and say hello at least) --- src/include/fileutils.h | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100755 src/include/fileutils.h (limited to 'src/include/fileutils.h') diff --git a/src/include/fileutils.h b/src/include/fileutils.h new file mode 100755 index 00000000..27256909 --- /dev/null +++ b/src/include/fileutils.h @@ -0,0 +1,23 @@ +#ifndef __FILEUTILS_H_ +#define __FILEUTILS_H_ + +#include "pathcoll.h" + +#define IS_EXECUTABLE (1<<0) +#define IS_FILE (1<<1) + + +// 0 : doesn't exist, 1: Does exist +int FileExist(const char* filename, int flags); + +// find a file, using Path if needed +char* ResolveFile(const char* filename, path_collection_t* paths); + +// 1: if file is an x86 elf, 0: if not (or not found) +int FileIsX64ELF(const char* filename); + +#if defined(RPI) || defined(RK3399) +void sanitize_mojosetup_gtk_background(); +#endif + +#endif //__FILEUTILS_H_ \ No newline at end of file -- cgit 1.4.1