#5736
gizmo98
Participant

Hi whise,

I did not run ppsspp till now. Retropie already has an ppsspp installation option. There are some minor differences between your solution and the retropie_setup script.

# install PSP emulator PPSSPP
function em_install_ppsspp()
{
    printMsg "Installing PPSSPP emulator"    
    if [[ -d "$rootdir/emulators/ppsspp" ]]; then
        rm -rf "$rootdir/emulators/ppsspp"
    fi        
    gitPullOrClone "$rootdir/emulators/ppsspp" git://github.com/hrydgard/ppsspp.git
    git submodule update --init    
    # generate default Makefile
    cmake . 
    sed -i -e "s/ARM:BOOL=OFF/ARM:BOOL=ON/g" CMakeCache.txt
    sed -i -e "s/X86:BOOL=ON/X86:BOOL=OFF/g" CMakeCache.txt
    sed -i -e "s/CMAKE_BUILD_TYPE:STRING=/CMAKE_BUILD_TYPE:STRING=Release/g" CMakeCache.txt
    # enabled arm, disabled x86, built with release flags.
    cmake .
    make    
    mkdir -p "$rootdir/emulators/ppsspp/assets/lang"
    cp $rootdir/emulators/ppsspp/lang/* $rootdir/emulators/ppsspp/assets/lang/
    if [[ ! -f "$rootdir/emulators/ppsspp/PPSSPPSDL" ]]; then
        __ERRMSGS="$__ERRMSGS Could not successfully compile PPSSPP."
    fi      
    popd
}