enter racing mode by spec function

This commit is contained in:
WismyYao
2021-01-30 13:39:09 +08:00
parent a933903e6b
commit 744bcab0b9
22 changed files with 61 additions and 23 deletions
+7 -1
View File
@@ -376,7 +376,13 @@ void evalFunctions(const CustomFunctionData * functions, CustomFunctionsContext
case FUNC_SCREENSHOT:
if (!(functionsContext.activeSwitches & switch_mask)) {
mainRequestFlags |= (1 << REQUEST_SCREENSHOT);
mainRequestFlags |= (1u << REQUEST_SCREENSHOT);
}
break;
case FUNC_RACING_MODE:
if (isRacingModeAllowed()) {
newActiveFunctions |= (1u << FUNCTION_RACING_MODE);
}
break;