Release: 1.2.1

This commit is contained in:
Marc Riera 2025-03-23 21:38:42 +01:00
parent a6b99f2817
commit 5d70ae00d4
2 changed files with 28 additions and 0 deletions

View file

@ -16,6 +16,18 @@ This mod allows you to use your Densha de GO! Plug & Play as a USB controller fo
4. Plug the USB drive to the OTG adapter, plug the adapter to the Plug & Play and plug the data cable to the adapter and a power source. 4. Plug the USB drive to the OTG adapter, plug the adapter to the Plug & Play and plug the data cable to the adapter and a power source.
5. Turn on the Plug & Play. The door lamp will turn on to show the installation has begun. Once it has finished, the lamp will turn off. Turn off the unit and remove everything. 5. Turn on the Plug & Play. The door lamp will turn on to show the installation has begun. Once it has finished, the lamp will turn off. Turn off the unit and remove everything.
## Uninstallation
To completely remove the mod, follow these steps. **You need the backup of the original kernel created during installation**.
1. Prepare the USB flash drive by formatting it with a single FAT32 partition.
2. Download the latest release from the [Releases](https://github.com/MarcRiera/ddgo-pnp-controller/releases) section.
3. Extract the content to the root of the USB drive.
4. Create an empty file named `revert` on the root of the USB drive.
5. Put the original (backup) files `uImage` and `mali.ko` into a folder named `BACKUP` on the root of the USB drive.
6. Plug the USB drive to the OTG adapter, plug the adapter to the Plug & Play and plug the data cable to the adapter and a power source.
7. Turn on the Plug & Play. The door lamp will turn on to show the uninstallation has begun. Once it has finished, the lamp will turn off. Turn off the unit and remove everything.
## Usage ## Usage
Connect the Plug & Play to a PC or console using the data cable. Press one of the following button combinations to select the controller you want to emulate: Connect the Plug & Play to a PC or console using the data cable. Press one of the following button combinations to select the controller you want to emulate:

View file

@ -36,6 +36,22 @@ fi
# Create backup folder # Create backup folder
mkdir -p "${USB_ROOT}/BACKUP" mkdir -p "${USB_ROOT}/BACKUP"
# Revert changes flag detected, restore original files
if [ -f "${USB_ROOT}/revert" ]; then
if [ ! -f "${USB_ROOT}/BACKUP/uImage" ] || [ ! -f "${USB_ROOT}/BACKUP/mali.ko" ]; then
echo "Backup not found, cannot revert."
error_exit
fi
cp "${USB_ROOT}/BACKUP/uImage" /tmp/boot/uImage
cp "${USB_ROOT}/BACKUP/mali.ko" /lib/modules/3.4.113/extra/mali.ko
rm /etc/init.d/S40usbotg
rm /usr/bin/rndis-gadget.sh
rm /usr/bin/ddgo-pnp-controller
rm "${USB_ROOT}/revert"
poweroff
exit
fi
# Backup original kernel # Backup original kernel
if [ ! -f "${USB_ROOT}/BACKUP/uImage" ] && [ ! -f "/usr/bin/input_relay" ] && [ ! -f "/usr/bin/ddgo-pnp-controller" ]; then if [ ! -f "${USB_ROOT}/BACKUP/uImage" ] && [ ! -f "/usr/bin/input_relay" ] && [ ! -f "/usr/bin/ddgo-pnp-controller" ]; then
if ! cp /tmp/boot/uImage "${USB_ROOT}/BACKUP/"; then if ! cp /tmp/boot/uImage "${USB_ROOT}/BACKUP/"; then