feat(libSceSystemService): name auto in the invalid ANYPS5_LANGUAGE error

A value that is neither a console language number from 0 to 30 nor auto still
stops the game at its first language query with an error that names the
variable, which now lists auto as the other accepted value.
This commit is contained in:
MarcZX10 committed 2026-10-29 08:51:17 +00:00
1 parent 0706e41394
commit d01ee0435f
1 file changed
+1 -1
@@ -60,7 +60,7 @@ inline int SystemServiceConsoleLanguage(std::string_view caller) {
if (error != std::errc{} || end != text.data() + text.size() || language < SYSTEM_SERVICE_PARAM_LANG_JAPANESE || language > SYSTEM_SERVICE_PARAM_LANG_UKRAINIAN) {
throw std::runtime_error(std::string(caller) + ": ANYPS5_LANGUAGE must be a console language number from " +
std::to_string(SYSTEM_SERVICE_PARAM_LANG_JAPANESE) + " to " + std::to_string(SYSTEM_SERVICE_PARAM_LANG_UKRAINIAN) +
", not \"" + std::string(text) + "\"");
" or auto, not \"" + std::string(text) + "\"");
}
return language;
}