Fixes: Automatic added fix for unity games

This commit is contained in:
2025-09-16 23:53:08 +05:00
parent 9a820c35f4
commit 9c45d80949

View File

@@ -2473,7 +2473,7 @@ pw_init_db () {
if [[ "${PW_WINE_CPU_TOPOLOGY}" == "disabled" ]] && [[ -n "${WINE_CPU_TOPOLOGY}" ]] ; then
export PW_WINE_CPU_TOPOLOGY="${WINE_CPU_TOPOLOGY}"
fi
if lsbash "${PATH_TO_GAME}"/*_Data/Resources/ --grep "unity" &>/dev/null \
if compgen -G "${PATH_TO_GAME}/*_Data/Resources/*unity*" &>/dev/null \
&& [[ "${PW_WINE_CPU_TOPOLOGY}" == "disabled" ]] \
&& [[ $(grep -c ^"processor" /proc/cpuinfo) -gt "8" ]]
then