We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 874c0c6 commit 65cb616Copy full SHA for 65cb616
1 file changed
libretro/core/libretro-core.cpp
@@ -213,9 +213,29 @@ void update_prefs_retrocfg(void)
213
if (environ_cb(RETRO_ENVIRONMENT_GET_VARIABLE, &var) && var.value)
214
{
215
if (strcmp(var.value, "none") == 0)
216
+ {
217
mainMenu_throttle = 0;
- else
218
- mainMenu_throttle = atoi(var.value/20);
+ }
219
+ if (strcmp(var.value, "20") == 0)
220
221
+ mainMenu_throttle = 1;
222
223
+ if (strcmp(var.value, "40") == 0)
224
225
+ mainMenu_throttle = 2;
226
227
+ if (strcmp(var.value, "60") == 0)
228
229
+ mainMenu_throttle = 3;
230
231
+ if (strcmp(var.value, "80") == 0)
232
233
+ mainMenu_throttle = 4;
234
235
+ if (strcmp(var.value, "100") == 0)
236
237
+ mainMenu_throttle = 5;
238
239
240
}
241
0 commit comments