From cd3bd090b030440a76c5776d31e0e2cc5454b940 Mon Sep 17 00:00:00 2001 From: Yang Liu Date: Sat, 27 Dec 2025 22:55:17 +0800 Subject: [PATCH] [RCFILE] Removed some obsolete env. var. These are specific to Linux Steam, but they're not needed anymore. --- docs/USAGE.md | 14 -------------- docs/box64.pod | 16 ---------------- docs/gen/usage.json | 36 ------------------------------------ src/core.c | 8 -------- src/include/env.h | 2 -- 5 files changed, 76 deletions(-) diff --git a/docs/USAGE.md b/docs/USAGE.md index 4d8a02242..70b523eb2 100644 --- a/docs/USAGE.md +++ b/docs/USAGE.md @@ -255,20 +255,6 @@ Arguments to pass to the guest program, only valid if there is no existing argum * XXXX: Pass argument XXXX to the program. * XXXX YYYY ZZZZ: Pass arguments XXXX, YYYY and ZZZZ to the guest program. -### BOX64_CEFDISABLEGPU - -Add -cef-disable-gpu argument to the guest program. - - * 0: Does nothing. [Default] - * 1: Add -cef-disable-gpu argument to the guest program. - -### BOX64_CEFDISABLEGPUCOMPOSITING - -Add -cef-disable-gpu-compositing argument to the guest program. - - * 0: Does nothing. [Default] - * 1: Add -cef-disable-gpu-compositing argument to the guest program. - ### BOX64_INSERT_ARGS Prepend arguments to the command line. diff --git a/docs/box64.pod b/docs/box64.pod index 3a817ad76..6a0ae1d23 100644 --- a/docs/box64.pod +++ b/docs/box64.pod @@ -107,22 +107,6 @@ Path to the bash executable. * XXXX : Use bash executable at path XXXX. -=item B =I<0|1> - -Add -cef-disable-gpu argument to the guest program. - - * 0 : Does nothing. [Default] - * 1 : Add -cef-disable-gpu argument to the guest program. - - -=item B =I<0|1> - -Add -cef-disable-gpu-compositing argument to the guest program. - - * 0 : Does nothing. [Default] - * 1 : Add -cef-disable-gpu-compositing argument to the guest program. - - =item B =I<0|1> Specify the CPU type to emulate. Available in WowBox64. diff --git a/docs/gen/usage.json b/docs/gen/usage.json index ad1bda0b0..a7ddaa420 100644 --- a/docs/gen/usage.json +++ b/docs/gen/usage.json @@ -135,42 +135,6 @@ } ] }, - { - "name": "BOX64_CEFDISABLEGPU", - "description": "Add -cef-disable-gpu argument to the guest program.", - "category": "Arguments", - "wine": false, - "options": [ - { - "key": "0", - "description": "Does nothing.", - "default": true - }, - { - "key": "1", - "description": "Add -cef-disable-gpu argument to the guest program.", - "default": false - } - ] - }, - { - "name": "BOX64_CEFDISABLEGPUCOMPOSITING", - "description": "Add -cef-disable-gpu-compositing argument to the guest program.", - "category": "Arguments", - "wine": false, - "options": [ - { - "key": "0", - "description": "Does nothing.", - "default": true - }, - { - "key": "1", - "description": "Add -cef-disable-gpu-compositing argument to the guest program.", - "default": false - } - ] - }, { "name": "BOX64_CPUTYPE", "description": "Specify the CPU type to emulate.", diff --git a/src/core.c b/src/core.c index cf221e194..575de802d 100644 --- a/src/core.c +++ b/src/core.c @@ -1078,14 +1078,6 @@ int initialize(int argc, const char **argv, char** env, x64emu_t** emulator, elf { add_argv("--in-process-gpu"); } - if(BOX64ENV(cefdisablegpu)) - { - add_argv("-cef-disable-gpu"); - } - if(BOX64ENV(cefdisablegpucompositing)) - { - add_argv("-cef-disable-gpu-compositing"); - } // add new args only if there is no args already if(BOX64ENV(args)) { char tmp[256]; diff --git a/src/include/env.h b/src/include/env.h index d899938ad..1bb3d6829 100644 --- a/src/include/env.h +++ b/src/include/env.h @@ -44,8 +44,6 @@ extern char* ftrace_name; STRING(BOX64_ARGS, args, 0) \ STRING(BOX64_BASH, bash, 0) \ STRING(BOX64_PYTHON3, python3, 0) \ - BOOLEAN(BOX64_CEFDISABLEGPU, cefdisablegpu, 0, 0) \ - BOOLEAN(BOX64_CEFDISABLEGPUCOMPOSITING, cefdisablegpucompositing, 0, 0) \ INTEGER(BOX64_CPUTYPE, cputype, 0, 0, 1, 1) \ BOOLEAN(BOX64_CRASHHANDLER, dummy_crashhandler, 1, 0) \ BOOLEAN(BOX64_DLSYM_ERROR, dlsym_error, 0, 0) \