Skip to content

Commit

Permalink
Build on Clang and CI
Browse files Browse the repository at this point in the history
  • Loading branch information
illusion0001 committed Feb 3, 2024
1 parent cd674d8 commit ed341d9
Show file tree
Hide file tree
Showing 4 changed files with 39 additions and 2 deletions.
14 changes: 14 additions & 0 deletions .github/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
# P3R-Save-EnDecryptor
Programs to decrypt/encrypt Persona 3 reload saves

## Usage

Decrypt save (steam to gamepass)
```
p3r-save decrypt <file>
```

Encrypt save (gamepass to steam)
```
p3r-save encrypt <file>
```
24 changes: 24 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
name: Build

on: [ push, pull_request, workflow_dispatch ]

jobs:
build:
runs-on: windows-latest
permissions:
contents: write
steps:
- uses: actions/checkout@main
- run: clang-cl main.c -D_CRT_SECURE_NO_WARNINGS -o p3r-save.exe
- name: Push artifact
if: false
uses: actions/upload-artifact@main
with:
name: p3r-save
path: p3r-save.exe
- name: Push release
if: github.event_name == 'workflow_dispatch'
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: gh release create build-${{ github.run_number }} p3r-save.exe --target ${{ GITHUB.SHA }} -t "Build ${{ github.run_number }}" -F ".github/README.md"

2 changes: 0 additions & 2 deletions README.md

This file was deleted.

1 change: 1 addition & 0 deletions main.c
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
#include <stdio.h>
#include <stdlib.h>
#include <string.h>

unsigned char* read_file(const char* file_name, size_t* size) {
FILE* file = fopen(file_name, "rb");
Expand Down

0 comments on commit ed341d9

Please sign in to comment.