Play! - PlayStation 2 Emulator
Clone or download
Permalink
Failed to load latest commit information.
Source Moved check for symbol ref type. Sep 30, 2018
build_android Update Gradle build configuration. Jul 24, 2018
build_cmake Update build scripts. Mar 7, 2018
icons Added some icons. Apr 8, 2015
installer_android Deploy builds on S3. Apr 9, 2017
installer_ios Fix script permissions (again). Sep 26, 2018
installer_macosx Fix macOS installer path. Sep 21, 2018
installer_win32 Update Installer & CI Paths Mar 2, 2018
tools Add basic support for directory read functions in IOMAN. Sep 26, 2018
.clang-format Update clang-format. Apr 30, 2018
.gitattributes Updated git settings for Android build. Mar 10, 2015
.gitignore Remove reference to deleted directory in .gitignore. Mar 5, 2018
.travis.sh Copy IPA file for deployment on S3. Sep 26, 2018
.travis.yml Build using Travis's trusty image. Sep 24, 2018
CMakeLists.txt Initial QT OSX support May 23, 2018
CONTRIBUTING.md Add contribution guide. Nov 9, 2016
License.txt Added proper license. Feb 23, 2014
README.md Update compatibility info source in README. May 9, 2018
Readme.html CPU instruction set warning Aug 18, 2017
Settings.md Updated settings description file. Apr 11, 2016
appveyor.yml Copy installers to commit output directory. Mar 26, 2018
changelog.html Added a changelog and updated installer scripts. May 30, 2011
ee_functions.xml Added a function pattern matcher to allow finding common library func… Mar 25, 2012
games.db Move games.db location. Nov 17, 2017
patches.xml Update patches.xml Sep 5, 2017

README.md

Play!

Play! is an attempt to create a PlayStation 2 emulator for Windows, macOS, UNIX, Android & iOS platforms.

Compatibility information is available on the official Compatibility Tracker. If a specific game doesn't work with the emulator, please create a new issue there.

For more information, please visit purei.org.

Project Dependencies

External Libraries

Repositories

Building

General Setup

You can get almost everything needed to build the emulator by using the Play! Build project. You can also checkout every repository individually if you wish to do so, but make sure your working copies share the same parent folder.

In the end, your setup should look like this:

C:\Projects

  • CodeGen
  • Dependencies
  • Framework
  • Nuanceur
  • Play

Common Building Instructions

First you'd need to clone Play-Build which provides you with the needed subprojects required to build Play!. Then setup the submodules and the dependency submodule(s) too.

git clone https://github.com/jpd002/Play-Build.git
cd Play-Build
git submodule update -q --init --recursive
git submodule foreach "git checkout -q master"
cd Dependencies
git submodule update --init
cd ..

Building for Windows

To build for Windows you will need to have CMake installed on your system.

cd Play
mkdir build
cd build
# Not specifying -G would automatically generate 32-bit projects.
cmake .. -G"Visual Studio 15 2017 Win64"
cmake --build . --config Release

Building for macOS & iOS

If you don't have CMake installed on your system, you can install it using brew with the following command: brew install cmake.

There are two ways to generate a build for macOS, either by using makefiles or by using Xcode.

cd Play
mkdir build
cd build
# Not specifying -G would automatically pick Makefiles
cmake .. -G"Unix Makefiles" -DCMAKE_BUILD_TYPE=Release
cmake --build .
# OR
cmake .. -G"Xcode" -DCMAKE_BUILD_TYPE=Release
cmake --build . --config Release

To generate a build for iOS, you will need to add the following parameters to the CMake invocation: -DCMAKE_TOOLCHAIN_FILE=../../../Dependencies/cmake-ios/ios.cmake -DTARGET_IOS=ON

Example: cmake .. -G"Xcode" -DCMAKE_TOOLCHAIN_FILE=../../../Dependencies/cmake-ios/ios.cmake -DTARGET_IOS=ON

Building for UNIX

if you dont have cmake or openal lib installed, you'll also require Qt (preferably version 5.6) you can install it using your OS packaging tool, e.g ubuntu apt install cmake libalut-dev on UNIX systems there is 3 ways to setup a build, using qt creator, makefile or Ninja

  • QT Creator

    • Open Project -> Play/CMakeLists.txt
  • Makefile/Ninja

cd Play
mkdir build
cd build
# Not specifying -G would automatically pick Makefiles
cmake .. -G"Unix Makefiles" -DCMAKE_BUILD_TYPE=Release -DCMAKE_PREFIX_PATH=/opt/qt56/
cmake --build .
# OR
cmake .. -G"Ninja" -DCMAKE_PREFIX_PATH=/opt/qt56/
cmake --build . --config Release

Note CMAKE_PREFIX_PATH refers to the qt directory containing bin/libs folder, the above example uses a backport repo to install qt5.6 on trusty, if you install qt from qt offical website, your CMAKE_PREFIX_PATH might look like this ~/Qt5.6.0/5.6/gcc_64/

Building for Android

Building for Android has been tested on macOS and UNIX environments. Android can be built using Android Studio or through Gradle.

  • Android Studio:
    • Files->Open Projects->Directory To Play/build_android
    • Install NDK using sdk manager
    • edit/create Play/build_android/local.properties
      • OSX: add a newline ndk.dir=/Users/USER_NAME/Library/Android/sdk/ndk-bundle replacing USER_NAME with your macOS username
      • UNIX: add a newline ndk.dir=~/Android/Sdk/ndk-bundle
      • Windows: add a newline C:\Users\USER_NAME\AppData\Local\Android\sdk\ndk-bundle
      • Please Leave an empty new line at the end of the file

Note, these examples are only valid if you installed NDK through Android Studio's SDK manager. Otherwise you must specify the correct location to Android NDK. Once this is done, you can start the build.

  • Gradle: Prerequisite Android SDK & NDK (Both can be installed through Android Studio)
    • edit/create Play/build_android/local.properties
      • OSX:
        • add a newline sdk.dir=/Users/USER_NAME/Library/Android/sdk replacing USER_NAME with your macOS username
        • add a newline ndk.dir=/Users/USER_NAME/Library/Android/sdk/ndk-bundle replacing USER_NAME with your macOS username
      • UNIX:
        • add a newline sdk.dir=~/Android/Sdk
        • add a newline ndk.dir=~/Android/Sdk/ndk-bundle
      • Windows:
        • add a newline sdk.dir=C:\Users\USER_NAME\AppData\Local\Android\sdk
        • add a newline ndk.dir=C:\Users\USER_NAME\AppData\Local\Android\sdk\ndk-bundle
      • Please Leave an empty new line at the end of the file

Note, these examples are only valid if you installed NDK through Android Studio's SDK manager. Otherwise you must specify the correct location to Android NDK. Once this is done, you can start the build.

cd Play/build_android
sh gradlew assembleDebug
about Release/Signed builds.

Building through Android Studio, you have the option to “Generate Signed APK”.

Building through Gradle, you must create a text file Play/build_android/keystore.properties and add the following properties to it, storeFile,storePassword,keyAlias,keyPassword. E.g of keystore.properties

storeFile=/location/to/my/key.jks
storePassword=mysuperhardpassword
keyAlias=myalias
keyPassword=myevenharderpassword

Please Leave an empty new line at the end of the file

cd Play/build_android
sh gradlew assembleRelease
# or on Windows
gradlew.bat assembleRelease