File tree 9 files changed +12
-13
lines changed
9 files changed +12
-13
lines changed Original file line number Diff line number Diff line change 67
67
"game.edit.cover-image-delete.label" : " Delete cover image" ,
68
68
"game.edit.cover-image-empty" : " No cover image" ,
69
69
"game.edit.override-settings.label" : " Override emulation settings" ,
70
- "game.edit.cue-enabled.label" : " Enable creation of .cue file" ,
71
70
"game.edit.netplay-enabled.label" : " Netplay enabled" ,
72
71
"game.edit.netplay-require-login.label" : " Require login for netplay" ,
73
72
"game.edit.netplay-open.label" : " Show in open netplay games" ,
228
227
"settings-platform.emulation.threads.label" : " Use threads" ,
229
228
"settings-platform.emulation.disable-vsync.label" : " Disable VSync" ,
230
229
"settings-platform.emulation.disable-browser-db.label" : " Disable browser DB" ,
230
+ "settings-platform.emulation.cue-enabled.label" : " Enable creation of .cue file" ,
231
231
"settings-platform.core.title" : " Core" ,
232
232
"settings-platform.core.empty" : " No options for selected core" ,
233
233
"settings-platform.play.title" : " Play" ,
Original file line number Diff line number Diff line change 67
67
"game.edit.cover-image-delete.label" : " Удалить обложку" ,
68
68
"game.edit.cover-image-empty" : " Нет обложки" ,
69
69
"game.edit.override-settings.label" : " Переопределить настройки эмуляции" ,
70
- "game.edit.cue-enabled.label" : " Включить создание файлов .cue" ,
71
70
"game.edit.netplay-enabled.label" : " Включить сетевую игру" ,
72
71
"game.edit.netplay-require-login.label" : " Требовать вход для сетевой игры" ,
73
72
"game.edit.netplay-open.label" : " Показать в списке открытых сетевых игр" ,
228
227
"settings-platform.emulation.threads.label" : " Использовать потоки" ,
229
228
"settings-platform.emulation.disable-vsync.label" : " Отключить вертикальную синхронизацию" ,
230
229
"settings-platform.emulation.disable-browser-db.label" : " Отключить использование БД браузера" ,
230
+ "settings-platform.emulation.cue-enabled.label" : " Включить создание файлов .cue" ,
231
231
"settings-platform.core.title" : " Ядро" ,
232
232
"settings-platform.core.empty" : " Нет настроек для выбранного ядра" ,
233
233
"settings-platform.play.title" : " Игра" ,
Original file line number Diff line number Diff line change @@ -1110,6 +1110,7 @@ func DefaultEmulatorSettings(systemType string) EmulatorSettings {
1110
1110
settings .Shader = Shaders [0 ].Value
1111
1111
settings .Buttons = DefaultButtons
1112
1112
settings .Controls = [4 ]EmulatorControls {controls }
1113
+ settings .CueEnabled = true
1113
1114
1114
1115
return settings
1115
1116
}
Original file line number Diff line number Diff line change @@ -42,7 +42,6 @@ type Game struct {
42
42
NetplaySessionId string
43
43
NetplayRequireLogin bool
44
44
NetplayOpen bool
45
- CueEnabled bool
46
45
AutoSaveEnabled bool
47
46
AutoSaveInterval int
48
47
AutoSaveCapacity int
@@ -90,6 +89,7 @@ type EmulatorSettings struct {
90
89
Threads bool
91
90
DisableBrowserDB bool
92
91
DisableVSync bool
92
+ CueEnabled bool
93
93
}
94
94
95
95
type EmulatorControls struct {
Original file line number Diff line number Diff line change 54
54
</div >
55
55
</div >
56
56
57
- <div class =" mb-3" >
58
- <div class =" form-check form-switch" >
59
- <input type =" checkbox" id =" cue-enabled" name =" cue-enabled" class =" form-check-input" value =" 1" {% if game .CueEnabled %}checked {% endif %}>
60
- <label for =" cue-enabled" >{{ loc(" game.edit.cue-enabled.label" ) }}</label >
61
- </div >
62
- </div >
63
-
64
57
{% if netplay_enabled %}
65
58
<div class =" mb-3" >
66
59
<div class =" form-check form-switch" >
Original file line number Diff line number Diff line change 33
33
<input type =" checkbox" id =" disable-browser-db" name =" disable-browser-db" class =" form-check-input" value =" 1" {% if settings .DisableBrowserDB %}checked {% endif %}>
34
34
<label for =" disable-browser-db" >{{ loc(" settings-platform.emulation.disable-browser-db.label" ) }}</label >
35
35
</div >
36
+ <div class =" mb-3" >
37
+ <div class =" form-check form-switch" >
38
+ <input type =" checkbox" id =" cue-enabled" name =" cue-enabled" class =" form-check-input" value =" 1" {% if settings .CueEnabled %}checked {% endif %}>
39
+ <label for =" cue-enabled" >{{ loc(" settings-platform.emulation.cue-enabled.label" ) }}</label >
40
+ </div >
41
+ </div >
36
42
</div >
37
43
</div >
Original file line number Diff line number Diff line change 85
85
window .EJS_disableDatabases = true ;
86
86
{% endif %}
87
87
88
- {% if not game .CueEnabled %}
88
+ {% if not emulator_settings .CueEnabled %}
89
89
window .EJS_disableCue = true ;
90
90
{% endif %}
91
91
Original file line number Diff line number Diff line change @@ -66,7 +66,6 @@ func (s *Server) gameUpload(c echo.Context) error {
66
66
OriginalFileExtension : getFileExtension (file .Filename ),
67
67
OriginalFileSize : file .Size ,
68
68
Platform : "" ,
69
- CueEnabled : true ,
70
69
AutoSaveEnabled : false ,
71
70
AutoSaveInterval : 5 * 60 ,
72
71
AutoSaveCapacity : 10 ,
@@ -177,7 +176,6 @@ func (s *Server) gameEditSubmit(c echo.Context) error {
177
176
game .Name = c .FormValue ("name" )
178
177
game .Description = c .FormValue ("description" )
179
178
game .OverrideEmulatorSettings = c .FormValue ("override-settings" ) == "1"
180
- game .CueEnabled = c .FormValue ("cue-enabled" ) == "1"
181
179
game .NetplayEnabled = c .FormValue ("netplay-enabled" ) == "1"
182
180
game .NetplayRequireLogin = c .FormValue ("netplay-require-login" ) == "1"
183
181
game .NetplayOpen = c .FormValue ("netplay-open" ) == "1"
Original file line number Diff line number Diff line change @@ -204,6 +204,7 @@ func settingsCollectFormData(c echo.Context) storage.EmulatorSettings {
204
204
Threads : c .FormValue ("threads" ) == "1" ,
205
205
DisableBrowserDB : c .FormValue ("disable-browser-db" ) == "1" ,
206
206
DisableVSync : c .FormValue ("disable-vsync" ) == "1" ,
207
+ CueEnabled : c .FormValue ("cue-enabled" ) == "1" ,
207
208
Buttons : buttons ,
208
209
Controls : settingsCollectControls (c ),
209
210
CoreOptions : coreOptionsValues ,
You can’t perform that action at this time.
0 commit comments