heh the suggestion in the issue i created actually worked, still need more menu tweaking

This commit is contained in:
Nicholas Ricciuti 2022-11-30 20:40:02 -05:00
parent 7a60cea68a
commit 4462cdfebf
No known key found for this signature in database
GPG key ID: CBB28CCF1964C6D1
3 changed files with 15 additions and 11 deletions

View file

@ -48,16 +48,20 @@ fi
else
# TODO: Set aspect ratio to 4:3
if [ "{$CORE}" == "m64p_rice" ]; then
GAMEWIDTH=((($SCREENHEIGHT * 4) / 3))
GAMEWIDTH=$(((SCREENHEIGHT * 4) / 3))
SET_PARAMS="$SET_PARAMS --set Video-General[ScreenWidth]=$GAMEWIDTH --set Video-General[ScreenHeight]=$SCREENHEIGHT"
else
SET_PARAMS="$SET_PARAMS --set Video-General[ScreenWidth]=$SCREENWIDTH --set Video-General[ScreenHeight]=$SCREENHEIGHT --set Video-Glide64mk2[aspect]=0 --set Video-GLideN64[AspectRatio]=1"
SET_PARAMS="$SET_PARAMS --set Video-General[ScreenWidth]=$SCREENWIDTH --set Video-General[ScreenHeight]=$SCREENHEIGHT --set Video-Glide64mk2[aspect]=0 --set Video-GLideN64[AspectRatio]=1"
fi
fi
# Native Res Factor (Upscaling)
if [ "{$CORE}" == "m64p_gliden64" ]; then
sed -i "/UseNativeResolutionFactor/c\UseNativeResolutionFactor = $IRES" /storage/.config/game/configs/mupen64plussa/mupen64plus.cfg
if [ $IRES == "default"]; then
sed -i "/UseNativeResolutionFactor/c\UseNativeResolutionFactor = 1" /tmp/mupen64plussa/mupen64plus.cfg
else
sed -i "/UseNativeResolutionFactor/c\UseNativeResolutionFactor = $IRES" /tmp/mupen64plussa/mupen64plus.cfg
fi
fi
# Input Config
@ -73,13 +77,13 @@ fi
# Show FPS
# Get configuration from system.cfg
if [ "${FPS}" == "true" ]; then
sed -i '/ShowFPS = (False|True)/c\ShowFPS = True' /storage/.config/game/configs/mupen64plussa/mupen64plus.cfg
sed -i '/ShowFPS = [0,1]/c\ShowFPS = 1' /storage/.config/game/configs/mupen64plussa/mupen64plus.cfg
sed -i '/show_fps/c\show_fps = 1' /storage/.config/game/configs/mupen64plussa/mupen64plus.cfg
sed -i '/ShowFPS = (False|True)/c\ShowFPS = True' /tmp/mupen64plussa/mupen64plus.cfg
sed -i '/ShowFPS = [0,1]/c\ShowFPS = 1' /tmp/mupen64plussa/mupen64plus.cfg
sed -i '/show_fps/c\show_fps = 1' /tmp/mupen64plussa/mupen64plus.cfg
else
sed -i '/ShowFPS = (False|True)/c\ShowFPS = False' /storage/.config/game/configs/mupen64plussa/mupen64plus.cfg
sed -i '/ShowFPS = [0,1]/c\ShowFPS = 0' /storage/.config/game/configs/mupen64plussa/mupen64plus.cfg
sed -i '/show_fps/c\show_fps = 0' /storage/.config/game/configs/mupen64plussa/mupen64plus.cfg
sed -i '/ShowFPS = (False|True)/c\ShowFPS = False' /tmp/mupen64plussa/mupen64plus.cfg
sed -i '/ShowFPS = [0,1]/c\ShowFPS = 0' /tmp/mupen64plussa/mupen64plus.cfg
sed -i '/show_fps/c\show_fps = 0' /tmp/mupen64plussa/mupen64plus.cfg
fi
# RSP

View file

@ -40,9 +40,8 @@ make_target() {
export CROSS_COMPILE="${TARGET_PREFIX}"
export V=1
export VC=0
export CXXFLAGS="${CXXFLAGS} -pthread"
./src/getRevision.sh
cmake ${PKG_MAKE_OPTS_TARGET} -DMUPENPLUSAPI=On -DGLIDEN64_BUILD_TYPE=Release -S src -B projects/cmake
cmake ${PKG_MAKE_OPTS_TARGET} -DMUPENPLUSAPI=On -DGLIDEN64_BUILD_TYPE=Release -DCMAKE_C_COMPILER="${CC}" -DCMAKE_CXX_COMPILER="${CXX}" -DCMAKE_C_FLAGS="${CFLAGS}" -DCMAKE_CXX_FLAGS="${CXXFLAGS} -pthread" -S src -B projects/cmake
make clean -C projects/cmake
make -Wno-unused-variable -C projects/cmake
}

View file

@ -13,6 +13,7 @@
<choice name="4x (1080p)" value="4"/>
</feature>
<feature name="rsp plugin">
<choice name="default" value="default"/>
<choice name="fast" value="hle" />
<choice name="accurate" value="mle" />
</feature>