about summary refs log tree commit diff stats
path: root/src/include
diff options
context:
space:
mode:
authorptitSeb <sebastien.chev@gmail.com>2021-07-12 13:43:00 -0500
committerptitSeb <sebastien.chev@gmail.com>2021-07-12 13:43:00 -0500
commita66bb7453b335975ae0f55a96e3f9665139d8024 (patch)
tree55d579ac559eb10542e20e514fc7660d461d8df6 /src/include
parent5406a040fbf51bec372612a147aea1f80acf97be (diff)
downloadbox64-a66bb7453b335975ae0f55a96e3f9665139d8024.tar.gz
box64-a66bb7453b335975ae0f55a96e3f9665139d8024.zip
Use box86 to launch x86 binary (if box86 is present in same folder as box64)
Diffstat (limited to 'src/include')
-rwxr-xr-xsrc/include/box64context.h1
-rwxr-xr-xsrc/include/fileutils.h1
2 files changed, 2 insertions, 0 deletions
diff --git a/src/include/box64context.h b/src/include/box64context.h
index 0f99d1fe..1fe43d84 100755
--- a/src/include/box64context.h
+++ b/src/include/box64context.h
@@ -82,6 +82,7 @@ typedef struct box64context_s {
 
     char*               fullpath;
     char*               box64path;      // path of current box64 executable
+    char*               box86path;      // path of box86 executable (if present)
 
     uint64_t            stacksz;
     size_t              stackalign;
diff --git a/src/include/fileutils.h b/src/include/fileutils.h
index 546ec9d9..8332681e 100755
--- a/src/include/fileutils.h
+++ b/src/include/fileutils.h
@@ -14,6 +14,7 @@ int FileExist(const char* filename, int flags);
 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);
 
 #if defined(RPI) || defined(RK3399) || defined(RK3326)