1
0
mirror of https://github.com/mist-devel/mist-firmware.git synced 2026-04-17 16:22:33 +00:00

Stupid stupid

This commit is contained in:
Gyorgy Szombathelyi
2022-01-13 19:39:05 +01:00
parent 915a6b01d3
commit 4449d16271
2 changed files with 2 additions and 1 deletions

View File

@@ -44,7 +44,7 @@ static char settings_setup(ini_cfg_t *ini, char global) {
if(global) {
ini->filename = "/MISTCFG.INI";
} else {
if(user_io_core_type == CORE_TYPE_8BIT &&
if(user_io_core_type() == CORE_TYPE_8BIT &&
!user_io_create_config_name(s, "CFG", CONFIG_ROOT)) {
ini->filename = s;
} else {

View File

@@ -160,6 +160,7 @@ char virtual_joystick_remap(char *s, char action, int tag) {
joystick_mappers[i].vid = vid;
joystick_mappers[i].pid = pid;
joystick_mappers[i].tag = tag;
// default assignment for directions
joystick_mappers[i].mapping[0] = JOY_RIGHT;
joystick_mappers[i].mapping[1] = JOY_LEFT;