Skip to content

Commit

Permalink
Initial commit
Browse files Browse the repository at this point in the history
  • Loading branch information
igor725 committed Mar 13, 2024
0 parents commit 01ba2cd
Show file tree
Hide file tree
Showing 40 changed files with 1,960 additions and 0 deletions.
57 changes: 57 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,57 @@
name: build

on:
pull_request:
types: [opened, reopened, synchronize]
paths:
- '.github/workflows/build.yml'
- 'Makefile'
- '**.cpp'
- '**.h'

push:
paths:
- '.github/workflows/build.yml'
- 'Makefile'
- '**.cpp'
- '**.h'

jobs:
build:
name: Build project
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
with:
fetch-depth: 0

- name: Update things
run: |
sudo apt update
sudo apt upgrade
wget http://archive.ubuntu.com/ubuntu/pool/main/o/openssl1.0/libssl1.0.0_1.0.2n-1ubuntu5_amd64.deb
sudo dpkg -i libssl1.0.0_1.0.2n-1ubuntu5_amd64.deb
- name: Download OpenOrbis
run: |
wget https://github.com/OpenOrbis/OpenOrbis-PS4-Toolchain/releases/download/v0.5.2/v0.5.2.tar.gz
tar xvf v0.5.2.tar.gz
- name: Build
run: |
export OO_PS4_TOOLCHAIN=./OpenOrbis/PS4Toolchain
export DOTNET_SYSTEM_GLOBALIZATION_INVARIANT=1
make -j4
- name: Upload artifacts
uses: actions/upload-artifact@v4
with:
name: ps4-input
path: |
assets
input
sce_module
sce_sys
eboot.bin
*.pkg
5 changes: 5 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
input/x64/
eboot.bin
param.sfo
pkg.gp4
*.pkg
15 changes: 15 additions & 0 deletions .vscode/c_cpp_properties.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
{
"configurations": [
{
"name": "Win32",
"includePath": [
"${workspaceFolder}/**",
"C:/OpenOrbis/PS4Toolchain/include/**"
],
"compilerPath": "cl.exe",
"cStandard": "c17",
"cppStandard": "c++17"
}
],
"version": 4
}
17 changes: 17 additions & 0 deletions .vscode/launch.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
{
"configurations": [
{
"name": "(Windows) Launch",
"type": "cppvsdbg",
"request": "launch",
"program": "${config:ps4emu.exe}",
"args": ["-f", "${workspaceRoot}\\..\\", "-e", "${workspaceRoot}\\..\\eboot.bin", "-pad", "sdl2"],
"stopAtEntry": false,
"cwd": "${config:ps4emu.path}",
"environment": [],
"console": "integratedTerminal",
"preLaunchTask": "Build"
}

]
}
23 changes: 23 additions & 0 deletions .vscode/tasks.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
{
"version": "2.0.0",
"tasks": [
{
"label": "Build",
"type": "shell",
"command": "build.bat",
"options": {
"cwd": "${workspaceRoot}/input"
},
"args": [
"x64\\Debug\\",
"input",
"C:\\OpenOrbis\\PS4Toolchain\\samples\\input"
],
"problemMatcher": ["$gcc"],
"group": {
"kind": "build",
"isDefault": true
}
}
]
}
Loading

0 comments on commit 01ba2cd

Please sign in to comment.