Skip to content

Commit

Permalink
Merge branch 'hrydgard:master' into master
Browse files Browse the repository at this point in the history
  • Loading branch information
Felipefpl committed Jan 23, 2024
2 parents a899ee0 + 691b377 commit b33cea3
Show file tree
Hide file tree
Showing 363 changed files with 7,820 additions and 3,595 deletions.
10 changes: 5 additions & 5 deletions .github/ISSUE_TEMPLATE/bug.yml
Expand Up @@ -25,10 +25,10 @@ body:
label: What area of the game / PPSSPP
placeholder: |
When I equip a Mythril Bangle, a blue screen appears and it says the game crashed.
Here's a screenshot of the blue screen:
[upload screenshot]
Here's a my savedata with a Mythril Bangle not equipped yet:
[upload zip of savedata]
description: >
Expand All @@ -42,7 +42,7 @@ body:
label: What should happen
placeholder: |
The Mythril Bangle should be equipped without crashing.
My friend also tried this on their actual PSP, and it worked fine. Here's a screenshot right after equipping frmo my savedata:
[upload photo]
description: >
Expand All @@ -61,7 +61,7 @@ body:
attributes:
value: |
## Your device
If you're not sure about any of these questions, check Settings -> Tools -> System Information.
- type: dropdown
Expand All @@ -87,7 +87,7 @@ body:
validations:
required: true
attributes:
label: Mobile phone model or graphics card
label: Mobile device model or graphics card (GPU)
placeholder: Google Pixel 4a or NVIDIA GeForce GTX 1080Ti
description: >
If you don't know, copy what's under 'Driver version' in System Information.
Expand Down
8 changes: 4 additions & 4 deletions .github/ISSUE_TEMPLATE/graphics.yml
Expand Up @@ -36,7 +36,7 @@ body:
placeholder: |
The save point seems to be moving like it should, but the colors all all wrong - it shouldn't be red. Here's what it looks like:
[upload screenshot]
Even when I step into it, it turned black which it shouldn't:
[upload screenshot]
description: >
Expand All @@ -51,7 +51,7 @@ body:
placeholder: |
The save point should look like it does in other places:
[upload screenshot]
My friend also tried this on their actual PSP, where it looks right:
[upload photo]
description: >
Expand All @@ -75,7 +75,7 @@ body:
attributes:
value: |
## Your device
If you're not sure about any of these questions, check Settings -> Tools -> System Information.
- type: dropdown
Expand All @@ -101,7 +101,7 @@ body:
validations:
required: true
attributes:
label: Mobile phone model or graphics card
label: Mobile device model or graphics card (GPU)
placeholder: Google Pixel 4a or NVIDIA GeForce GTX 1080Ti
description: >
If you don't know, copy what's under 'Driver version' in System Information.
Expand Down
6 changes: 3 additions & 3 deletions .github/ISSUE_TEMPLATE/performance.yml
Expand Up @@ -38,7 +38,7 @@ body:
attributes:
value: |
Many performance issues are graphics related. Instructions are available [on the wiki][] to create a frame capture.
Please also include 1 or 2 screenshots during the performance problem while "Show debug statistics" (in Settings) is enabled.
[on the wiki]: https://github.com/hrydgard/ppsspp/wiki/How-to-create-a-frame-dump
Expand All @@ -54,7 +54,7 @@ body:
attributes:
value: |
## Your device
If you're not sure about any of these questions, check Settings -> Tools -> System Information.
- type: dropdown
Expand All @@ -80,7 +80,7 @@ body:
validations:
required: true
attributes:
label: Mobile phone model or graphics card
label: Mobile device model or graphics card (GPU)
placeholder: Google Pixel 4a or NVIDIA GeForce GTX 1080Ti
description: >
If you don't know, copy what's under 'Driver version' in System Information.
Expand Down
2 changes: 1 addition & 1 deletion .github/issue_template.md
Expand Up @@ -13,7 +13,7 @@ They're important. -->
### What are you using?
#### What hardware / device and operating system?

#### What graphics card (GPU) or mobile phone model?
#### What graphics card (GPU) or mobile device model?

#### What PPSSPP version (standalone/official), and did it work before?

Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/manual_generate_apk.yml
@@ -1,4 +1,4 @@
name: Manual Generate APK
name: Manual Generate Android APK
on:
workflow_dispatch:
inputs:
Expand Down Expand Up @@ -28,7 +28,7 @@ jobs:
uses: actions/setup-java@v2
with:
distribution: 'zulu'
java-version: '11'
java-version: '17'

#- name: Setup SDK
# uses: android-actions/setup-android@v2
Expand All @@ -54,7 +54,7 @@ jobs:
cp android/build/*/apk/*/*/android-normal-debug.apk ppsspp/
fi
- name: Upload APK
- name: Upload artifact
uses: actions/upload-artifact@v3
with:
name: android-${{ github.event.inputs.buildVariant }} build
Expand Down
84 changes: 84 additions & 0 deletions .github/workflows/manual_generate_ipa.yml
@@ -0,0 +1,84 @@
name: Manual Generate iOS IPA
on:
workflow_dispatch:
inputs:

buildVariant:
type: choice
description: 'Build Variant'
required: true
default: 'release'
options:
- release
- debug

jobs:

ipa:
name: Generate ${{ github.event.inputs.buildVariant }} IPA
runs-on: macos-latest

steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0
submodules: recursive

#- name: Fetch tags for macOS
# # This is required for git describe --always to work for git-version.cpp.
# run: |
# git fetch --deepen=15000 --no-recurse-submodules --tags || exit 0

- name: Set Env Var(s)
run: |
echo "GIT_VERSION=$(git describe --always)" >> $GITHUB_ENV
- name: Create macOS git-version.cpp & Version.txt
run: |
echo "const char *PPSSPP_GIT_VERSION = \"${GIT_VERSION}\";" > git-version.cpp
echo "#define PPSSPP_GIT_VERSION_NO_UPDATE 1" >> git-version.cpp
# Create Version.txt file (should probably do this during building process)
mkdir build-ios
mkdir build-ios/PPSSPP.app
echo $(echo $GIT_VERSION | cut -c 2-) > build-ios/PPSSPP.app/Version.txt
# Testing values ...
echo "Content of [GITHUB_REF##*/] = ${GITHUB_REF##*/}"
echo $(echo $GIT_VERSION | cut -c 2-)
# Testing file location ...
find . -name "Version.txt"
- name: Setup ccache
uses: hendrikmuhs/ccache-action@main
with:
key: ios
create-symlink: true

- name: Execute build
env:
CC: clang
CXX: clang++
run: |
export PATH="/usr/lib/ccache:/usr/local/opt/ccache/libexec:$PATH"
./b.sh --ios --${{ github.event.inputs.buildVariant }}
- name: Package build
run: |
# Testing file location ...
find . -name "Version.txt"
find . -name "*.app"
mkdir ppsspp
if [ -e build*/PPSSPP.app ]; then
mkdir ppsspp/Payload
cp -a build*/PPSSPP.app ppsspp/Payload
# GitHub Actions zipping kills symlinks and permissions.
cd ppsspp
zip -qry PPSSPP.ipa Payload
rm -rf Payload
cd -
fi
- name: Upload artifact
uses: actions/upload-artifact@v3
with:
name: iOS-${{ github.event.inputs.buildVariant }} build
path: ppsspp/
97 changes: 97 additions & 0 deletions .github/workflows/manual_generate_uwp.yml
@@ -0,0 +1,97 @@
name: Manual Generate UWP MSIX/MSIXBundle
on:
workflow_dispatch:
inputs:

buildConfiguration:
type: choice
description: 'Build Configuration'
required: true
default: 'Release'
options:
- Release
- Debug

buildPlatform:
type: choice
description: 'Build Platform'
required: true
default: 'Bundle'
options:
- Bundle
- x64
- ARM64
- ARM

jobs:

build-uwp:
name: Generate ${{ github.event.inputs.buildConfiguration }} ${{ github.event.inputs.buildPlatform }} UWP
runs-on: windows-latest

steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0
submodules: recursive

- name: Add MSBuild to PATH
uses: microsoft/setup-msbuild@v1.1

#- name: Setup cache # We probably need something like MSBuildCache for MSBuild to be able to use cache properly
# id: cache-uwp
# uses: actions/cache@v3
# with:
# path: |
# UWP/${{ github.event.inputs.buildPlatform }}/${{ github.event.inputs.buildConfiguration }}/**
# key: uwp-${{ github.event.inputs.buildConfiguration }}-${{ github.event.inputs.buildPlatform }}

- name: Testing values
run: |
# Testing values ...
#env
echo "Content of [env.GITHUB_WORKSPACE] = ${env.GITHUB_WORKSPACE}"
echo "Content of [[env.GITHUB_WORKSPACE]] = ${{env.GITHUB_WORKSPACE}}"
echo "Content of [env:GITHUB_WORKSPACE] = ${env:GITHUB_WORKSPACE}"
echo "Content of [github.workspace] = ${github.workspace}"
echo "Content of [[github.workspace]] = ${{github.workspace}}"
echo "double ${{ github.event.inputs.buildConfiguration }}"
echo ${{github.workspace}}
echo "single ${ github.event.inputs.buildConfiguration }"
echo $env:GITHUB_WORKSPACE
- name: Execute MSIX build
working-directory: ${{ github.workspace }}
env:
INCLUDE_SYMBOLS: ${{ github.event.inputs.buildConfiguration == 'Debug' && 'true' || 'false' }}
if: ${{ github.event.inputs.buildPlatform != 'Bundle' }}
run: |
echo "include symbols = ${{ env.INCLUDE_SYMBOLS }}"
msbuild UWP/PPSSPP_UWP.sln /m /p:TrackFileAccess=false /p:Configuration=${{ github.event.inputs.buildConfiguration }} /p:Platform=${{ github.event.inputs.buildPlatform }} /p:IncludeSymbols=${{ env.INCLUDE_SYMBOLS }} /p:AppxSymbolPackageEnabled=${{ env.INCLUDE_SYMBOLS }} /p:AppxPackageSigningEnabled=true /p:PackageCertificateKeyFile=PPSSPP_UWP_TemporaryKey.pfx /p:AppxBundle=Never /p:UapAppxPackageBuildMode=SideloadOnly /p:AppxBundlePlatforms="${{ github.event.inputs.buildPlatform }}"
- name: Execute MSIXBundle build
working-directory: ${{ github.workspace }}
env:
INCLUDE_SYMBOLS: ${{ github.event.inputs.buildConfiguration == 'Debug' && 'true' || 'false' }}
if: ${{ github.event.inputs.buildPlatform == 'Bundle' }}
run: |
echo "include symbols = ${{ env.INCLUDE_SYMBOLS }}"
msbuild UWP/PPSSPP_UWP.sln /m /p:TrackFileAccess=false /p:Configuration=${{ github.event.inputs.buildConfiguration }} /p:Platform=x64 /p:IncludeSymbols=${{ env.INCLUDE_SYMBOLS }} /p:AppxSymbolPackageEnabled=${{ env.INCLUDE_SYMBOLS }} /p:AppxPackageSigningEnabled=true /p:PackageCertificateKeyFile=PPSSPP_UWP_TemporaryKey.pfx /p:AppxBundle=Always /p:UapAppxPackageBuildMode=SideloadOnly /p:AppxBundlePlatforms="x64|ARM64|ARM"
- name: Package build
working-directory: ${{ github.workspace }}
run: |
# Testing file location ...
#find . -name "PPSSPP*.exe"
#find . -name "*.appx*"
#find . -name "*.msix*"
mkdir ppsspp
#ls UWP/AppPackages/PPSSPP_UWP
cp -r UWP/AppPackages/PPSSPP_UWP/*.* ppsspp/
#ls ppsspp
- name: Upload artifact
uses: actions/upload-artifact@v3
with:
name: UWP-${{ github.event.inputs.buildConfiguration }}-${{ github.event.inputs.buildPlatform }} build
path: ppsspp/
6 changes: 6 additions & 0 deletions CMakeLists.txt
Expand Up @@ -1455,6 +1455,8 @@ list(APPEND NativeAppSource
UI/GameScreen.cpp
UI/GameSettingsScreen.h
UI/GameSettingsScreen.cpp
UI/DriverManagerScreen.h
UI/DriverManagerScreen.cpp
UI/GPUDriverTestScreen.h
UI/GPUDriverTestScreen.cpp
UI/TiltAnalogSettingsScreen.h
Expand Down Expand Up @@ -2160,6 +2162,8 @@ add_library(${CoreLibName} ${CoreLinkType}
Core/HLE/sceSfmt19937.h
Core/HLE/sceSha256.cpp
Core/HLE/sceSha256.h
Core/HLE/sceSircs.cpp
Core/HLE/sceSircs.h
Core/HLE/sceSsl.cpp
Core/HLE/sceSsl.h
Core/HLE/sceUmd.cpp
Expand Down Expand Up @@ -2272,6 +2276,8 @@ add_library(${CoreLibName} ${CoreLinkType}
Core/Util/AudioFormat.h
Core/Util/GameManager.cpp
Core/Util/GameManager.h
Core/Util/MemStick.cpp
Core/Util/MemStick.h
Core/Util/GameDB.cpp
Core/Util/GameDB.h
Core/Util/PortManager.cpp
Expand Down
2 changes: 1 addition & 1 deletion Common/ArmEmitter.cpp
Expand Up @@ -537,7 +537,7 @@ void ARMXEmitter::MOVI2R(ARMReg reg, u32 val, bool optimize)
}
}

static const char *armRegStrings[] = {
static const char *const armRegStrings[] = {
"r0","r1","r2","r3",
"r4","r5","r6","r7",
"r8","r9","r10","r11",
Expand Down
7 changes: 7 additions & 0 deletions Common/CPUDetect.h
Expand Up @@ -114,6 +114,13 @@ struct CPUInfo {
bool RiscV_Zbb;
bool RiscV_Zbc;
bool RiscV_Zbs;
bool RiscV_Zcb;
bool RiscV_Zfa;
bool RiscV_Zfh;
bool RiscV_Zfhmin;
bool RiscV_Zicond;
bool RiscV_Zvbb;
bool RiscV_Zvkb;

// LoongArch specific extension flags.
bool LOONGARCH_CPUCFG;
Expand Down

0 comments on commit b33cea3

Please sign in to comment.