mirror of
https://github.com/ptitSeb/box64.git
synced 2025-05-08 07:59:18 +08:00
31 lines
873 B
C
31 lines
873 B
C
#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 FileIsX86ELF(const char* filename);
|
|
int FileIsX64ELF(const char* filename);
|
|
int FileIsShell(const char* filename);
|
|
|
|
// return temp folder (will return /tmp if nothing is correct)
|
|
const char* GetTmpDir();
|
|
|
|
// will lower case the string and return a copy. Nothing fancy here, just A..Z transformed to a..z, rest is untouched
|
|
char* LowerCase(const char* s);
|
|
|
|
#if defined(RPI) || defined(RK3399) || defined(RK3326)
|
|
void sanitize_mojosetup_gtk_background();
|
|
#endif
|
|
|
|
#endif //__FILEUTILS_H_
|