From c12f8fa2544dbcfb29416f39f784abefef276ccb Mon Sep 17 00:00:00 2001 From: ptitSeb Date: Tue, 8 Oct 2024 19:44:20 +0200 Subject: [BOX32] Fixed some X11 function so wine launch (and added BOX64_X11SYNC to help debug X11 programs) --- src/core.c | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'src/core.c') diff --git a/src/core.c b/src/core.c index 58acfd30..b95c3e37 100644 --- a/src/core.c +++ b/src/core.c @@ -56,6 +56,7 @@ int box64_cefdisablegpu = 0; int box64_cefdisablegpucompositor = 0; int box64_malloc_hack = 0; int box64_dynarec_test = 0; +int box64_x11sync = 0; path_collection_t box64_addlibs = {0}; int box64_maxcpu = 0; int box64_maxcpu_immutable = 0; @@ -1225,6 +1226,13 @@ void LoadLogEnv() if(box64_ignoreint3) printf_log(LOG_INFO, "Will silently ignore INT3 in the code\n"); } + p = getenv("BOX64_X11SYNC"); + if(p) { + if(strlen(p)==1) { + if(p[0]>='0' && p[0]<='0'+1) + box64_x11sync = p[0]-'0'; + } + } // grab pagesize box64_pagesize = sysconf(_SC_PAGESIZE); if(!box64_pagesize) -- cgit 1.4.1