Skip to content

Instantly share code, notes, and snippets.

@GMMan
GMMan / String.lua
Created March 18, 2020 05:10
Crash fix for Angelica Weaver - Catch Me When You Can
---------------------------------------------------------------------------------------------------
--
-- String Utils
--
---------------------------------------------------------------------------------------------------
function ArgToString( arg )
if not arg then
return ''
end
# Copyright (C) 2012 The Android Open Source Project
#
# IMPORTANT: Do not create world writable files or directories.
# This is a common source of Android security bugs.
#
#import /init.${ro.hardware}.rc
import /init.usb.rc
import /init.trace.rc
steam_log_in:
image:
name: "steamcmd:latest"
entrypoint: [""]
script:
- "# Running SteamCMD"
- "cp -r ssfn_cache/. ~/.steam || :"
- echo "${STEAMCMD_STEAMGUARD}" | steamcmd +login "${STEAMCMD_USER}" "${STEAMCMD_PASSWORD}" +quit
- mkdir -p ssfn_cache
- cp -r -t ssfn_cache ~/.steam/ssfn* ~/.steam/config

upgrade_app

upgrade_app is the built-in upgrade flasher on the PlayStation Classic. It reads an upgrade file from USB, verifies it, and flashes it. In normal boot, it needs to be called to start the upgrade process. In recovery boot, it is automatically started and polls for files on an attached USB drive to flash the normal system. The program takes a single argument as a command. They are:

  • normal: Reboots the system to recovery and waits to flash a normal system. It will refuse to boot into recovery if it detects recovery is not successfully
@GMMan
GMMan / instructions.md
Last active April 14, 2019 01:09
OTG flashing instructions

The install isn't too bad as long as you have shell access and can work your way around the command line. Assuming you have BleemSync payload installed:

  1. Download and place the new kernel image on a USB drive.
  2. Plug the PSC to your computer and turn it on.
  3. Plug in the USB drive to the PSC.
  4. Open a telnet connection to the PSC.
  5. Depending on whether you're booting a solution off the USB drive, you may need to mount it. If you don't see anything in /media, do this:
    systemctl stop usb_watch

mount /dev/sda1 /media

@GMMan
GMMan / power_manage.md
Last active April 6, 2023 22:17
PlayStation Classic power management system, documented

PlayStation Classic power management system, documented

This document describes the power management system on the PlayStation Classic. It is mostly focused on the power_manage executable: the command line arguments, control files, and processes. It'll also touch upon the system service setup and startup script.

There are a few components to the power management system: the startup script, the power management service, thermal kernel modules, and supporting programs such as the USB reset script and thermal handling scripts. Let's start with

#/usr/sony/share/data/preferences/system.pre
dUiSystemSettingLauncherMenuMainRadius=12.3000002
dUiSystemSettingLauncherMenuOptionRadius=12.3000002
dUiSystemSettingLauncherMenuMainXDegrees=5.5
dUiSystemSettingLauncherMenuOptionXDegrees=4.4000001
dUiSystemSettingPerspectiveFovy=30.5
dUiSystemSettingPerspectiveZnear=1.0
dUiSystemSettingPerspectiveZfar=10000.0
dUiSystemSettingLauncherMenuMainYOffset=6.19999981
dUiSystemSettingLauncherMenuMainZOffset=-31.6000004
#if !DISABLESTEAMWORKS
// Unity 32bit Mono on Windows crashes with ThisCall/Cdecl for some reason, StdCall without the 'this' ptr is the only thing that works..?
#if (UNITY_EDITOR_WIN && !UNITY_EDITOR_64) || (!UNITY_EDITOR && UNITY_STANDALONE_WIN && !UNITY_64)
#define STDCALL
#elif STEAMWORKS_WIN
#define THISCALL
#endif
namespace Steamworks
//=============================================================================
// cy_ZoomParallax.js
//=============================================================================
/*:
* @plugindesc Adds a parallax effect when zooming
* @author cyanic
*
* @help Plugin commands:
* zoomparallax <enable|disable|toggle>
diff --git a/Game.rpgproject b/Game.rpgproject
index 0ad457a..df7c111 100644
--- a/Game.rpgproject
+++ b/Game.rpgproject
@@ -1 +1 @@
-RPGMV 1.5.1
\ No newline at end of file
+RPGMV 1.6.0
\ No newline at end of file
diff --git a/js/rpg_core.js b/js/rpg_core.js