Skip to content

Commit 3e3dfb4

Browse files
committed
OS: remove option --escape-bedrock
1 parent f77a9c1 commit 3e3dfb4

File tree

4 files changed

+1
-20
lines changed

4 files changed

+1
-20
lines changed

src/data/help.json

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -104,16 +104,6 @@
104104
"default": true
105105
}
106106
},
107-
{
108-
"long": "escape-bedrock",
109-
"desc": "On Bedrock Linux, whether to escape the bedrock jail",
110-
"remark": "Linux only",
111-
"arg": {
112-
"type": "bool",
113-
"optional": true,
114-
"default": true
115-
}
116-
},
117107
{
118108
"long": "wmi-timeout",
119109
"desc": "Set the timeout (ms) for WMI queries",

src/detection/os/os_linux.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -261,7 +261,7 @@ static void detectOS(FFOSResult* os)
261261
return;
262262
#endif
263263

264-
if(instance.config.general.escapeBedrock && parseOsRelease(FASTFETCH_TARGET_DIR_ROOT "/bedrock" FASTFETCH_TARGET_DIR_ETC "/bedrock-release", os))
264+
if(parseOsRelease(FASTFETCH_TARGET_DIR_ROOT "/bedrock" FASTFETCH_TARGET_DIR_ETC "/bedrock-release", os))
265265
{
266266
if(os->id.length == 0)
267267
ffStrbufAppendS(&os->id, "bedrock");

src/options/general.c

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -31,8 +31,6 @@ const char* ffOptionsParseGeneralJsonConfig(FFOptionsGeneral* options, yyjson_va
3131
options->detectVersion = yyjson_get_bool(val);
3232

3333
#if defined(__linux__) || defined(__FreeBSD__) || defined(__sun) || defined(__OpenBSD__) || defined(__NetBSD__) || defined(__HAIKU__)
34-
else if (ffStrEqualsIgnCase(key, "escapeBedrock"))
35-
options->escapeBedrock = yyjson_get_bool(val);
3634
else if (ffStrEqualsIgnCase(key, "playerName"))
3735
ffStrbufSetS(&options->playerName, yyjson_get_str(val));
3836
else if (ffStrEqualsIgnCase(key, "dsForceDrm"))
@@ -76,8 +74,6 @@ bool ffOptionsParseGeneralCommandLine(FFOptionsGeneral* options, const char* key
7674
options->detectVersion = ffOptionParseBoolean(value);
7775

7876
#if defined(__linux__) || defined(__FreeBSD__) || defined(__sun) || defined(__OpenBSD__) || defined(__NetBSD__) || defined(__HAIKU__)
79-
else if(ffStrEqualsIgnCase(key, "--escape-bedrock"))
80-
options->escapeBedrock = ffOptionParseBoolean(value);
8177
else if(ffStrEqualsIgnCase(key, "--player-name"))
8278
ffOptionParseString(key, value, &options->playerName);
8379
else if(ffStrEqualsIgnCase(key, "--ds-force-drm"))
@@ -107,7 +103,6 @@ void ffOptionsInitGeneral(FFOptionsGeneral* options)
107103
options->detectVersion = true;
108104

109105
#if defined(__linux__) || defined(__FreeBSD__) || defined(__sun) || defined(__OpenBSD__) || defined(__NetBSD__) || defined(__HAIKU__)
110-
options->escapeBedrock = true;
111106
ffStrbufInit(&options->playerName);
112107
options->dsForceDrm = FF_DS_FORCE_DRM_TYPE_FALSE;
113108
#elif defined(_WIN32)
@@ -137,9 +132,6 @@ void ffOptionsGenerateGeneralJsonConfig(FFOptionsGeneral* options, yyjson_mut_do
137132

138133
#if defined(__linux__) || defined(__FreeBSD__) || defined(__sun) || defined(__OpenBSD__) || defined(__NetBSD__) || defined(__HAIKU__)
139134

140-
if (options->escapeBedrock != defaultOptions.escapeBedrock)
141-
yyjson_mut_obj_add_bool(doc, obj, "escapeBedrock", options->escapeBedrock);
142-
143135
if (!ffStrbufEqual(&options->playerName, &defaultOptions.playerName))
144136
yyjson_mut_obj_add_strbuf(doc, obj, "playerName", &options->playerName);
145137

src/options/general.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,6 @@ typedef struct FFOptionsGeneral
1818
// Module options that cannot be put in module option structure
1919
#if defined(__linux__) || defined(__FreeBSD__) || defined(__sun) || defined(__OpenBSD__) || defined(__NetBSD__) || defined(__HAIKU__)
2020
FFstrbuf playerName;
21-
bool escapeBedrock;
2221
FFDsForceDrmType dsForceDrm;
2322
#elif defined(_WIN32)
2423
int32_t wmiTimeout;

0 commit comments

Comments
 (0)