Skip to content

Commit

Permalink
qol tweaks
Browse files Browse the repository at this point in the history
  • Loading branch information
ThirteenAG committed Oct 1, 2024
1 parent a5d27a9 commit c131fe1
Show file tree
Hide file tree
Showing 11 changed files with 124 additions and 243 deletions.
92 changes: 92 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,92 @@
name: GitHub Actions Build

on:
push:
branches:
- '**'
pull_request:
workflow_dispatch:
inputs:
release:
description: "Create a release"
type: choice
required: false
default: 'false'
options:
- 'false'
- 'true'

concurrency:
group: ${{ github.ref }}
cancel-in-progress: false

permissions:
contents: write

jobs:
build:
runs-on: windows-latest

steps:
- name: Checkout Repository
uses: actions/checkout@v4
with:
submodules: recursive

- name: Add msbuild to PATH
uses: microsoft/setup-msbuild@main

- name: Configure build
run: ./premake5 vs2022

- name: Build
run: |
msbuild -m build/GTALCS.GTAVCS.PSP.CLEO.sln /property:Configuration=Release
- name: Pack binaries
shell: cmd
run: release.bat

- name: Upload artifact
uses: actions/upload-artifact@v4
with:
name: cleopsp
path: |
data//*
!**/*.elf
- name: Get release info
if: github.event.inputs.release != '' && github.event.inputs.release != 'false'
id: release_info
uses: cardinalby/[email protected]
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tag: latest

- name: Upload Release
if: |
github.event.inputs.release == 'true' &&
github.ref_name == 'main' &&
(github.event_name == 'push' || github.event_name == 'workflow_dispatch') &&
github.repository == 'cleolibrary/GTALCS.GTAVCS.PSP.CLEO'
uses: ncipollo/release-action@main
with:
token: ${{ secrets.GITHUB_TOKEN }}
allowUpdates: true
name: ${{ steps.release_info.outputs.name }}
body: ${{ steps.release_info.outputs.body }}
tag: ${{ steps.release_info.outputs.tag_name }}
artifacts: cleopsp.zip

- name: Update Tag
if: |
github.event.inputs.release == 'true' &&
github.ref_name == 'main' &&
(github.event_name == 'push' || github.event_name == 'workflow_dispatch') &&
github.repository == 'cleolibrary/GTALCS.GTAVCS.PSP.CLEO'
uses: richardsimko/[email protected]
with:
tag_name: ${{ steps.release_info.outputs.tag_name }}
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
3 changes: 1 addition & 2 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,6 @@ artifacts/
*.pidb
*.svclog
*.scc
*.exp
*.lib

# Chutzpah Test files
Expand Down Expand Up @@ -321,4 +320,4 @@ __pycache__/
# tools/**
# !tools/packages.config

!source/*.PPSSPP.*/**/*.exp
!source/**/*.exp
230 changes: 0 additions & 230 deletions data/memstick/PSP/PLUGINS/cleo/readme.txt

This file was deleted.

8 changes: 8 additions & 0 deletions data/memstick/PSP/PLUGINS/cleo/srcs/plugin/exports.exp
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
PSP_BEGIN_EXPORTS

PSP_EXPORT_START(syslib, 0, 0x8000)
PSP_EXPORT_FUNC_HASH(module_start)
PSP_EXPORT_VAR_HASH(module_info)
PSP_EXPORT_END

PSP_END_EXPORTS
4 changes: 2 additions & 2 deletions readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ You are using this application at your own risk, you agree to take full responsi

## Changes in 2.0.2

- Menu opening is swapped, open CLEO menu with holding start, open main menu with pressing start
- Menu opening behavior is changed, press [start] to open the main menu, press [start] again to open cleo menu, press [circle] to close main menu without opening cleo menu.
- Popup information is hidden, to allow vanilla game experience

## Changes in 2.0.1
Expand All @@ -33,7 +33,7 @@ You are using this application at your own risk, you agree to take full responsi

## Scripts

CLEO PSP is using *.csa and *.csi script extensions, *.csa scripts start just after the game loads and *.csi ones only when you directly invoke them via ingame script menu. To open the menu perform a slide from screen top to bottom thru center, arrow popup at start should give a tip, this one is related to the mobile game series only. In order to open the menu on PSP hold [start] and you will see cleo menu, pause screen still can be accessed if you press [start].
CLEO PSP is using *.csa and *.csi script extensions, *.csa scripts start just after the game loads and *.csi ones only when you directly invoke them via ingame script menu. To open the menu perform a slide from screen top to bottom thru center, arrow popup at start should give a tip, this one is related to the mobile game series only. In order to open the menu on PSP, press [start], and then [start] again, and you will see cleo menu.
In order to install scripts manually, put scripts in `%sdcard%/PSP/PLUGINS/cleo/%game%` where the `%game%` is either "lcs" or "vcs".

## Plugins
Expand Down
1 change: 1 addition & 0 deletions release.bat
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
7z a -tzip ".\cleopsp.zip" ".\data\*" -xr!*.elf
4 changes: 2 additions & 2 deletions source/core.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1952,12 +1952,12 @@ namespace core
}
case OP_SHOW_MENU_OPEN_ARROW:
{
ui::show_arrow();
//ui::show_arrow();
return true;
}
case OP_HIDE_MENU_OPEN_ARROW:
{
ui::hide_arrow();
//ui::hide_arrow();
return true;
}
case OP_CREATE_MENU:
Expand Down
Loading

0 comments on commit c131fe1

Please sign in to comment.