remove video subtitles preference

This commit is contained in:
sector-a
2025-10-13 11:15:22 -06:00
committed by Hundrec
parent 279b0755ea
commit 54f2e75139
3 changed files with 1 additions and 29 deletions
-21
View File
@@ -267,27 +267,6 @@ class Preferences
return value;
}
#if FEATURE_VIDEO_SUBTITLES
/**
* If enabled, subtitles will be shown on video cutscenes.
* @default `true`
*/
public static var videoSubtitles(get, set):Bool;
static function get_videoSubtitles():Bool
{
return Save?.instance?.options?.videoSubtitles ?? true;
}
static function set_videoSubtitles(value:Bool):Bool
{
var save:Save = Save.instance;
save.options.videoSubtitles = value;
save.flush();
return value;
}
#end
/**
* If enabled, the game will automatically launch in fullscreen on startup.
* @default `true`
+1 -1
View File
@@ -186,7 +186,7 @@ class VideoCutscene
final fileOptions:Array<String> = [];
#if FEATURE_VIDEO_SUBTITLES
if (Preferences.videoSubtitles)
if (Preferences.subtitles)
{
fileOptions.push(':sub-language=$DEFAULT_LANGUAGE');
}
-7
View File
@@ -128,7 +128,6 @@ class Save implements ConsoleClass
hapticsMode: 'All',
hapticsIntensityMultiplier: 1,
autoPause: true,
videoSubtitles: true,
vsyncMode: 'Off',
strumlineBackgroundOpacity: 0,
autoFullscreen: false,
@@ -1643,12 +1642,6 @@ typedef SaveDataOptions =
*/
var autoPause:Bool;
/**
* If enabled, subtitles will be shown on video cutscenes.
* @default `true`
*/
var videoSubtitles:Bool;
/**
* If enabled, the game will utilize VSync (or adaptive VSync) on startup.
* @default `Off`