Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -40,3 +40,7 @@ The default hotkey is Hotkey 1 (or `L3`), the left hotkey button. To utilize a d
- `HOTKEY_2` (right hotkey)

If another value is specified, this pak will revert to using `HOTKEY_1`.

### Debug Logging

To enable debug logging, create a file named `debug` in the pak folder. Logs will be written to the `$SDCARD_PATH/.userdata/$PLATFORM/logs/` folder.
1 change: 1 addition & 0 deletions bin/on-boot
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
#!/bin/sh
bindir="$(dirname "$0")"
progdir="$(dirname "$bindir")"
[ -f "$progdir/debug" ] && set -x
PAK_NAME="$(basename "$progdir")"

main() {
Expand Down
1 change: 1 addition & 0 deletions bin/service-on
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
bindir="$(dirname "$0")"
progdir="$(dirname "$bindir")"
cd "$progdir" || exit 1
[ -f "$progdir/debug" ] && set -x
PAK_NAME="$(basename "$progdir")"
export LD_LIBRARY_PATH="$LD_LIBRARY_PATH:$progdir/lib"

Expand Down
1 change: 1 addition & 0 deletions launch.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
echo "$0" "$@"
progdir="$(dirname "$0")"
cd "$progdir" || exit 1
[ -f "$progdir/debug" ] && set -x
PAK_NAME="$(basename "$progdir")"
export LD_LIBRARY_PATH="$LD_LIBRARY_PATH:$progdir/lib"
echo 1 >/tmp/stay_awake
Expand Down
Loading