-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
5 changed files
with
147 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
@echo off | ||
set arg1=%1 | ||
set arg2=%2 | ||
set arg3=%3 | ||
set arg4=%4 | ||
shift | ||
shift | ||
shift | ||
shift | ||
set COMPILER_PATH=%CD%build\%arg4% | ||
set C_INCLUDE_PATH=%CD%include | ||
set PSYQ_PATH=%CD%build\%arg4% | ||
@echo on | ||
%CD%build\%arg4%\aspsx.exe -G0 %arg3% %arg1% -o%arg2% |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
#!/bin/bash | ||
|
||
# Check if correct number of arguments are provided | ||
if [ "$#" -ne 4 ]; then | ||
echo "Usage: $0 input output" | ||
exit 1 | ||
fi | ||
|
||
# Define input and output variables with slash replacement | ||
in=$(echo "$1" | tr '/' '\\') | ||
out=$(echo "$2" | tr '/' '\\') | ||
|
||
# Run the command with substituted variables | ||
dosemu -quiet -dumb -f ./dosemurc -K . -E "aspsx.bat $in $out $3 $4" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,9 @@ | ||
mkdir -p build/3.5 | ||
# put toolchain together | ||
cp -r ./psy-q/3.3/PSYQ/* build/3.5 | ||
cp -r ./psy-q/cc_2.60/* build/3.5 | ||
# replace aspsx with newer one | ||
cp psy-q/3.5/PSYQ/ASPSX.EXE build/3.5 | ||
mkdir -p build/3.5 | ||
# put toolchain together | ||
cp -r ./psy-q/3.3/PSYQ/* build/3.5 | ||
|
||
wget -O https://github.com/Xeeynamo/sotn-decomp/releases/download/cc1-psx-26/cc1-psx-26.tar.gz | ||
tar -xvf cc1-psx-26.tar.gz -C build/3.5 | ||
cp -r ./psy-q/cc_2.60/* build/3.5 | ||
# replace aspsx with newer one | ||
cp psy-q/3.5/PSYQ/ASPSX.EXE build/3.5 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
#include "libsnd_i.h" | ||
|
||
void _SsSndStop(s16 arg0, s16 arg1) | ||
{ | ||
int i; | ||
struct SeqStruct *score; | ||
score = &_ss_score[arg0][arg1]; | ||
_ss_score[arg0][arg1].unk90 &= ~1; | ||
_ss_score[arg0][arg1].unk90 &= ~2; | ||
_ss_score[arg0][arg1].unk90 &= ~8; | ||
_ss_score[arg0][arg1].unk90 |= 4; | ||
SpuVmSeqKeyOff(arg1 << 8 | arg0); | ||
score->unk2b = 0; | ||
score->unk80 = 0; | ||
score->unk27 = 0; | ||
score->unk13 = 0; | ||
score->unk14 = 0; | ||
score->unk29 = 0; | ||
score->unk15 = 0; | ||
score->unk16 = 0; | ||
score->unk2a = 0; | ||
score->channel = 0; | ||
score->unk48 = 0; | ||
score->unk27 = 0; | ||
score->unk28 = 0; | ||
score->unk10 = 0; | ||
score->unk11 = 0; | ||
score->delta_value = score->unk7c; | ||
score->unk8c = score->unk84; | ||
score->unk70 = score->unk72; | ||
score->read_pos = score->next_sep_pos; | ||
score->loop_pos = score->next_sep_pos; | ||
for (i = 0; i < 16; i++) | ||
{ | ||
score->programs[i] = i; | ||
score->panpot[i] = 0x40; | ||
score->vol[i] = 127; | ||
} | ||
|
||
score->unk78 = 0x7F; | ||
score->unk7A = 0x7F; | ||
} | ||
|
||
void SsSeqStop(s16 arg0) { _SsSndStop(arg0, 0); } | ||
|
||
void SsSepStop(s16 arg0, s16 arg1) { _SsSndStop(arg0, arg1); } |