### Progress Mode Example: Initializing Progress Source: https://github.com/loveretro/nextui/blob/main/workspace/all/show2/README.md Example of starting the progress mode with initial text and 0% progress. This sets up the display for a process that will gradually complete. ```bash # Show logo with "Installing..." text at 0% progress ./show2.elf --mode=progress --image=logo.png --text="Installing..." --progress=0 ``` -------------------------------- ### Multi-step Installation Process with Daemon Mode Source: https://github.com/loveretro/nextui/blob/main/workspace/all/show2/README.md A comprehensive bash script demonstrating a multi-step installation process using 'show2.elf' in daemon mode. It updates text and progress dynamically throughout the installation phases. ```bash #!/bin/bash # Start daemon ./show2.elf --mode=daemon --image=./logo.png --bgcolor=0x000000 --text="Starting installation..." & # Step 1: Extract files echo "TEXT:Extracting files..." > /tmp/show2.fifo echo "PROGRESS:10" > /tmp/show2.fifo unzip package.zip echo "PROGRESS:30" > /tmp/show2.fifo # Step 2: Copy system files echo "TEXT:Installing system files..." > /tmp/show2.fifo echo "PROGRESS:40" > /tmp/show2.fifo cp -r files/* /destination/ echo "PROGRESS:70" > /tmp/show2.fifo # Step 3: Finalize echo "TEXT:Finalizing installation..." > /tmp/show2.fifo echo "PROGRESS:90" > /tmp/show2.fifo sync echo "PROGRESS:100" > /tmp/show2.fifo # Complete sleep 1 echo "TEXT:Installation complete!" > /tmp/show2.fifo sleep 2 echo "QUIT" > /tmp/show2.fifo ``` -------------------------------- ### Integration: Replace show.elf (Daemon Mode) Source: https://github.com/loveretro/nextui/blob/main/workspace/all/show2/README.md Shows how to integrate 'show2.elf' in daemon mode into a boot script, allowing for runtime updates of text and progress during installation. The daemon is started, updated, and then quit. ```bash # After (daemon mode with progress): ./show2.elf --mode=daemon --image=./logo.png --text="Installing..." & # ... do installation work ... echo "PROGRESS:50" > /tmp/show2.fifo # ... more work ... echo "QUIT" > /tmp/show2.fifo ``` -------------------------------- ### Daemon Mode Example: Initializing Daemon Source: https://github.com/loveretro/nextui/blob/main/workspace/all/show2/README.md Starts the daemon mode with an initial image, background color, and text message. The '&' symbol runs the process in the background. ```bash # Start daemon with initial text ./show2.elf --mode=daemon --image=logo.png --bgcolor=0x000000 --text="Initializing..." & ``` -------------------------------- ### Simple Mode Example: Show Image Source: https://github.com/loveretro/nextui/blob/main/workspace/all/show2/README.md Example of displaying a splash image using simple mode. The process will continue running until it is killed. ```bash # Show splash.png until killed ./show2.elf --mode=simple --image=splash.png ``` -------------------------------- ### Overlay File Structure Example Source: https://github.com/loveretro/nextui/wiki/Adding-Content Illustrates the expected file paths for overlay PNGs within the /Overlays/[System] directory for different emulators. ```text # For /Roms/Game Boy Color (GBA) /Overlays/GBA/overlay1.png /Overlays/GBA/overlay2.png /Overlays/GBA/overlay3.png /Overlays/GBA/overlay4.png /Overlays/GBA/overlay5.png # For /Roms/Super Nintendo (SFC) /Overlays/SFC/overlay1.png /Overlays/SFC/overlay2.png /Overlays/SFC/overlay3.png /Overlays/SFC/overlay4.png /Overlays/SFC/overlay5.png ``` -------------------------------- ### Emulator Icon File Structure Example Source: https://github.com/loveretro/nextui/wiki/Adding-Content Shows the directory structure for adding custom emulator and collection icons using .media folders. ```text SD_CARD ├─ .media/ │ ├─ Collections.png │ ├─ Recently Played.png ├─ Collections/ │ ├─ .media/ │ │ ├─ Collection 1.png │ │ ├─ Collection 2.png ├─ Roms/ │ ├─ .media/ │ │ ├─ GBA.png │ │ ├─ SFC.png │ │ ├─ Custom Emulator Name (GBC).png │ │ ├─ etc... ├─ Tools/ │ ├─ .media/ │ │ ├─ tg5040.png ``` -------------------------------- ### Integration: Replace show.elf (Simple Mode) Source: https://github.com/loveretro/nextui/blob/main/workspace/all/show2/README.md Example of replacing the old 'show.elf' with 'show2.elf' in simple mode within a boot script. The new process is backgrounded, and then explicitly killed after the installation work. ```bash # Before: # ./show.elf ./installing.png # After (simple mode): ./show2.elf --mode=simple --image=./installing.png & SHOW_PID=$! # ... do installation work ... kill $SHOW_PID ``` -------------------------------- ### Install u-boot-tools Source: https://github.com/loveretro/nextui/blob/main/workspace/_unmaintained/rg35xx/ramdisk/readme.txt Installs the necessary u-boot-tools package, which includes the mkimage utility, required for ramdisk manipulation. ```bash apt update && apt install u-boot-tools ``` -------------------------------- ### Progress Mode Example: Mid-Process Update Source: https://github.com/loveretro/nextui/blob/main/workspace/all/show2/README.md Shows how to update the progress bar to 50% and customize colors during a process. This allows for dynamic visual feedback. ```bash # Show with 50% progress and custom colors ./show2.elf --mode=progress --image=logo.png --bgcolor=0x000000 --fontcolor=0xFFFFFF --text="Installing system files..." --progress=50 ``` -------------------------------- ### Basic Hook Script Example Source: https://github.com/loveretro/nextui/blob/main/HOOKS.md A simple hook script that logs every ROM launch. It checks the HOOK_TYPE to ensure it only logs ROM launches and appends the launch information to a log file. ```shell #!/bin/sh # my-hook.sh — log every ROM launch [ "$HOOK_TYPE" = "rom" ] || exit 0 echo "$(date): launched $HOOK_ROM_PATH" >> "$LOGS_PATH/launches.log" ``` -------------------------------- ### Simple Mode Example: Image with Custom Background Source: https://github.com/loveretro/nextui/blob/main/workspace/all/show2/README.md Demonstrates setting a custom background color for an image displayed in simple mode. The background color can be specified in various hex formats. ```bash # Show with custom background color ./show2.elf --mode=simple --image=logo.png --bgcolor=0x1a2b3c ``` -------------------------------- ### Simple Mode Example: Image with Black Background Source: https://github.com/loveretro/nextui/blob/main/workspace/all/show2/README.md Display an image with a black background using the simple mode. This mode is suitable for static displays that need to run continuously. ```bash # Show with black background ./show2.elf --mode=simple --image=splash.png --bgcolor=0x000000 ``` -------------------------------- ### Daemon Mode Example: Quit Daemon Source: https://github.com/loveretro/nextui/blob/main/workspace/all/show2/README.md Send the QUIT command to the FIFO file to gracefully terminate the running daemon process. ```bash # Quit the daemon echo "QUIT" > /tmp/show2.fifo ``` -------------------------------- ### Customized Button Binding Example Source: https://github.com/loveretro/nextui/blob/main/PAKS.md Demonstrates how to remove or customize a default button binding. Here, 'More Sun' is set to 'NONE' with its original core mapping 'L3' preserved. ```cfg bind More Sun = NONE:L3 ``` -------------------------------- ### Progress Mode Example: Custom Colors and High Progress Source: https://github.com/loveretro/nextui/blob/main/workspace/all/show2/README.md Demonstrates setting a custom background, red text, and a high progress percentage (75%) in progress mode. This is useful for indicating near completion. ```bash # Custom background and red text ./show2.elf --mode=progress --image=logo.png --bgcolor=0x1e1e1e --fontcolor=0xFF0000 --text="Please wait..." --progress=75 ``` -------------------------------- ### Daemon Mode Example: Update Progress Source: https://github.com/loveretro/nextui/blob/main/workspace/all/show2/README.md Send a command to the FIFO file to update the progress bar value for the running daemon. Progress should be between 0 and 100. ```bash # Update progress echo "PROGRESS:25" > /tmp/show2.fifo ``` -------------------------------- ### Default Button Bindings Example Source: https://github.com/loveretro/nextui/blob/main/PAKS.md Shows default button mappings for a game controller within NextUI. 'NONE' indicates no binding, followed by the default core mapping if customized. ```cfg bind Up = UP bind Down = DOWN bind Left = LEFT bind Right = RIGHT bind Select = SELECT bind Start = START bind A Button = A bind B Button = B bind A Turbo = NONE:X bind B Turbo = NONE:Y bind L Button = L1 bind R Button = R1 bind L Turbo = NONE:L2 bind R Turbo = NONE:R2 bind More Sun = NONE:L3 bind Less Sun = NONE:R3 ``` -------------------------------- ### Daemon Mode Example: Update Background Color Source: https://github.com/loveretro/nextui/blob/main/workspace/all/show2/README.md Send a command to the FIFO file to change the background color of the running daemon. Colors should be in hex format. ```bash # Update background color echo "BGCOLOR:0x003366" > /tmp/show2.fifo ``` -------------------------------- ### Progress Mode: Display Logo, Progress, and Text Source: https://github.com/loveretro/nextui/blob/main/workspace/all/show2/README.md Utilize progress mode to display a logo along with a progress bar and text message. This mode is useful for showing installation or loading progress. It also runs until killed. ```bash ./show2.elf --mode=progress --image= [--bgcolor=0x000000] [--fontcolor=0xFFFFFF] [--text="message"] [--progress=0] ``` -------------------------------- ### Configure Custom Opkg Feeds in OpenWrt Source: https://github.com/loveretro/nextui/blob/main/todo.txt Adds custom package feeds to the opkg package manager configuration. This allows installing packages from specific repositories. ```bash echo "src/gz openwrt_core_cortexa53 http://downloads.openwrt.org/snapshots/packages/aarch64_cortex-a53/packages" > /etc/opkg/customfeeds.conf echo "src/gz openwrt_core_sunxi http://downloads.openwrt.org/snapshots/targets/sunxi/cortexa53/packages" >> /etc/opkg/customfeeds.conf ``` -------------------------------- ### Daemon Mode: Start Interactive Session Source: https://github.com/loveretro/nextui/blob/main/workspace/all/show2/README.md Initiate daemon mode for an interactive session that can be updated at runtime via a FIFO file. This mode is ideal for dynamic loading screens. ```bash ./show2.elf --mode=daemon --image= [--bgcolor=0x000000] [--fontcolor=0xFFFFFF] [--text="message"] ``` -------------------------------- ### Daemon Mode Example: Update Text Source: https://github.com/loveretro/nextui/blob/main/workspace/all/show2/README.md Send a command to the FIFO file to update the text message displayed by the running daemon. This allows for real-time status changes. ```bash # Update text during runtime echo "TEXT:Installing system..." > /tmp/show2.fifo ``` -------------------------------- ### Daemon Mode Example: Update Font Color Source: https://github.com/loveretro/nextui/blob/main/workspace/all/show2/README.md Send a command to the FIFO file to change the font color of the text displayed by the running daemon. Colors should be in hex format. ```bash # Update font color echo "FONTCOLOR:0xFF0000" > /tmp/show2.fifo ``` -------------------------------- ### Build: Compile with Make Source: https://github.com/loveretro/nextui/blob/main/workspace/all/show2/README.md Instructions for compiling the show2.elf tool using the 'make' command within the specified Docker build environment or toolchain. ```bash make build PLATFORM=tg5050 ``` -------------------------------- ### Launch Game with Picodrive Core Source: https://github.com/loveretro/nextui/blob/main/PAKS.md Launches a game using the 'picodrive_libretro.so' core. Change 'EMU_EXE' to use a different core. This script sets up necessary directories and logs output. ```shell #!/bin/sh EMU_EXE=picodrive ############################### EMU_TAG=$(basename "$(dirname "$0")" .pak) ROM="$1" mkdir -p "$BIOS_PATH/$EMU_TAG" mkdir -p "$SAVES_PATH/$EMU_TAG" mkdir -p "$CHEATS_PATH/$EMU_TAG" HOME="$USERDATA_PATH" cd "$HOME" minarch.elf "$CORES_PATH/${EMU_EXE}_libretro.so" "$ROM" &> "$LOGS_PATH/$EMU_TAG.txt" ``` -------------------------------- ### Launch Syncsettings Daemon Source: https://github.com/loveretro/nextui/blob/main/PAKS.md Launches syncsettings.elf as a background process to synchronize NextUI's brightness and volume settings before launching another application. ```shell syncsettings.elf & ``` -------------------------------- ### Build: Compile Manually Source: https://github.com/loveretro/nextui/blob/main/workspace/all/show2/README.md Steps to manually compile show2.elf by navigating to the source directory and running 'make'. This is an alternative to the Docker build environment. ```bash cd workspace/tg5050/show2 make ``` -------------------------------- ### Launch Syncsettings in a Loop Source: https://github.com/loveretro/nextui/blob/main/PAKS.md Runs syncsettings.elf in a continuous loop while another application is active. This is useful if the application takes longer than one second to initialize. ```shell while :; do syncsettings.elf done & LOOP_PID=$! ./PPSSPPSDL --pause-menu-exit "$ROM_PATH" kill $LOOP_PID ``` -------------------------------- ### Launch Game with Custom Core Path Source: https://github.com/loveretro/nextui/blob/main/PAKS.md An alternative to the default launch script, this version specifies the core path explicitly. It's useful when the core is not in the default location. ```shell CORES_PATH=$(dirname "$0") ``` -------------------------------- ### Required BIOS Files by System Source: https://github.com/loveretro/nextui/wiki/Adding-Content Place system BIOS files in the '/Bios/[System Tag]/' folder. File names are case-sensitive and must match the expected format for each emulator. ```text FC: disksys.rom GB: gb_bios.bin GBA: gba_bios.bin GBC: gbc_bios.bin MD: bios_CD_E.bin bios_CD_J.bin bios_CD_U.bin PS: psxonpsp660.bin MGBA: gba_bios.bin PCE: syscard3.pce PKM: bios.min SGB: sgb.bios ``` -------------------------------- ### Create sysroot tarball for toolchain Source: https://github.com/loveretro/nextui/blob/main/todo.txt Creates a compressed archive of system libraries and includes necessary for cross-compilation. ```bash tar -czf sysroot.tar.gz /usr/include /usr/lib /usr/lib32 ``` -------------------------------- ### Alternative shutdown method Source: https://github.com/loveretro/nextui/blob/main/todo.txt An alternative method to initiate shutdown by removing a specific temporary file and exiting the process. ```c just system("rm /tmp/minui_exec") and exit(0) ? ``` -------------------------------- ### Hook Directory Structure Source: https://github.com/loveretro/nextui/blob/main/HOOKS.md Illustrates the default locations for hook scripts on the device, organized by execution phase. ```shell $USERDATA_PATH/.hooks/ boot.d/ # scripts run on boot pre-launch.d/ # scripts run before launch post-launch.d/ # scripts run after launch exits pre-sleep.d/ # scripts run before device goes to sleep post-resume.d/ # scripts run after device wakes from sleep ``` ```shell /mnt/SDCARD/.userdata//.hooks/pre-launch.d/ /mnt/SDCARD/.userdata//.hooks/post-launch.d/ ``` ```shell /mnt/SDCARD/.userdata/tg5040/.hooks/post-launch.d/shortcuts-resume.sh ``` -------------------------------- ### Creating Game Collections Source: https://github.com/loveretro/nextui/wiki/Adding-Content Collections are text files in the '/Collections' folder, listing full paths to ROM, CUE, or M3U files. This allows for custom game groupings. ```text /Roms/GBA/Metroid Zero Mission.gba /Roms/GB/Metroid II.gb /Roms/SNES (SFC)/Super Metroid.sfc /Roms/GBA/Metroid Fusion.gba ``` -------------------------------- ### Enable CPU Autoplugging for Performance Source: https://github.com/loveretro/nextui/blob/main/todo.txt Apply this setting to potentially improve SNES performance by controlling CPU core autoplugging. Observe the effects carefully, especially when applying over ADB. ```bash echo 0xF > /sys/devices/system/cpu/autoplug/plug_mask ``` -------------------------------- ### Disc-based Games Folder Structure Source: https://github.com/loveretro/nextui/wiki/Adding-Content For multi-file disc-based games, place all related files (bin, cue, iso, wav) in a folder named after the cue file. This structure streamlines launching. ```text Harmful Park (English v1.0)/ Harmful Park (English v1.0).bin Harmful Park (English v1.0).cue ``` -------------------------------- ### Simple Mode: Display Image Source: https://github.com/loveretro/nextui/blob/main/workspace/all/show2/README.md Use simple mode to display a centered image. This mode runs until manually terminated. Specify the image path and optionally a background color. ```bash ./show2.elf --mode=simple --image= [--bgcolor=0x000000] ``` -------------------------------- ### Sync After ROM Exit Hook Script Source: https://github.com/loveretro/nextui/blob/main/HOOKS.md This hook script is designed to perform a metadata sync after a ROM exits. It checks if the HOOK_TYPE is 'rom', verifies the existence and executability of a 'shortcuts' tool, and then executes it, redirecting output to a log file. ```shell #!/bin/sh # shortcuts-resume.sh — one-shot resume metadata sync after a ROM exits [ "$HOOK_TYPE" = "rom" ] || exit 0 SHORTCUTS_PAK="$SDCARD_PATH/Tools/$PLATFORM/Shortcuts.pak" [ -x "$SHORTCUTS_PAK/shortcuts" ] || exit 0 "$SHORTCUTS_PAK/shortcuts" --resume-sync-hook >> "$LOGS_PATH/shortcuts-resume-sync.txt" 2>&1 ``` -------------------------------- ### Enable Network with DHCP on OpenWrt Source: https://github.com/loveretro/nextui/blob/main/todo.txt This command configures the wlan0 interface to obtain an IP address via DHCP. It's a prerequisite for using network tools like wget or curl. ```bash udhcpc -i wlan0 ``` -------------------------------- ### Overriding Display Names with map.txt Source: https://github.com/loveretro/nextui/wiki/Adding-Content Use a 'map.txt' file in the same folder as ROMs to override display names. Each line should contain the original filename, a tab, and the desired display name. Prepending a '.' hides the file. ```text neogeo.zip .Neo Geo Bios mslug.zip Metal Slug sf2.zip Street Fighter II ``` -------------------------------- ### Box Art File Placement Source: https://github.com/loveretro/nextui/wiki/Adding-Content Place box art images (PNG format) in the '/Roms/[Emulator]/.media/' folder. The image file name must exactly match the ROM file name. ```text ROM: /Roms/Emulator/game.zip Media: /Roms/Emulator/.media/game.png ``` -------------------------------- ### Build flags for OpenGL/EGL/Mali Source: https://github.com/loveretro/nextui/blob/main/todo.txt Specifies linker flags required for building applications that utilize OpenGL ES, EGL, and the Mali graphics driver. ```bash -lGLESv2 -lEGL -lmali -ldl ``` -------------------------------- ### Multi-disc Games with M3U File Source: https://github.com/loveretro/nextui/wiki/Adding-Content For multi-disc games, place all files for all discs in a single folder. Create an M3U file listing the relative paths to each disc's cue file to manage playback. ```text Policenauts (English v1.0)/ Policenauts (English v1.0).m3u Policenauts (Japan) (Disc 1).bin Policenauts (Japan) (Disc 1).cue Policenauts (Japan) (Disc 2).bin Policenauts (Japan) (Disc 2).cue ``` ```text Policenauts (Japan) (Disc 1).cue Policenauts (Japan) (Disc 2).cue ``` -------------------------------- ### Create Patch File for Binary Differences Source: https://github.com/loveretro/nextui/blob/main/todo.txt Generates a diff in hexadecimal format between two binary files. This is useful for creating patches for binary executables. ```bash xxd old > old.hex xxd new > new.hex diff -u old.hex new.hex > pico8_64.patch ``` -------------------------------- ### Display BMP Image on Framebuffer Source: https://github.com/loveretro/nextui/blob/main/workspace/_unmaintained/magicmini/install/notes.txt Use this command to display a BMP image on the /dev/fb0 framebuffer. The 'skip=1' argument accounts for a 71-byte bitmap header. ```bash dd if=image.bmp of=/dev/fb0 bs=71 skip=1 ``` -------------------------------- ### Extract and rsync sysroot to toolchain Source: https://github.com/loveretro/nextui/blob/main/todo.txt Extracts a sysroot tarball and synchronizes its contents into the specified toolchain directory, ignoring existing files. ```bash mv sysroot.tar.gz /opt cd /opt mkdir h700 tar -xvzf sysroot.tar.gz -C h700 rm sysroot.tar.gz rsync -a --ignore-existing /opt/h700/ /opt/rg35xxplus-toolchain/usr/arm-buildroot-linux-gnueabihf/sysroot/ ``` -------------------------------- ### Adjusting backlight period Source: https://github.com/loveretro/nextui/blob/main/todo.txt Experimenting with backlight brightness by modifying the period value in the sysfs interface. The default value is 10000. ```bash /sys/devices/platform/jz-pwm-dev.0/jz-pwm/pwm0/period ``` -------------------------------- ### Confirm Bitmap Signature Source: https://github.com/loveretro/nextui/blob/main/workspace/_unmaintained/m17/boot/notes.txt Reads the first two bytes from a specified offset in the boot partition to check for the 'BM' bitmap signature. ```bash SIGNATURE=`dd if=/dev/block/by-name/boot bs=1 skip=$OFFSET count=2 status=none` ``` -------------------------------- ### Optimized Git Clone Command Source: https://github.com/loveretro/nextui/blob/main/todo.txt Replaces a multi-step git clone and checkout process with a single, more efficient command. Note that this optimized command works for branches but not for commits alone. ```bash git clone --depth 1 --branch branch repo ``` -------------------------------- ### Unpack Ramdisk Image Source: https://github.com/loveretro/nextui/blob/main/workspace/_unmaintained/rg35xx/ramdisk/readme.txt Unpacks the ramdisk-no-header.img file into a directory named 'ramdisk' for modification. This uses the cpio utility. ```bash mkdir ramdisk && cd ramdisk cpio -i --no-absolute-filenames < ../ramdisk-no-header.img ``` -------------------------------- ### Daemon Mode Command: Change Background Color Source: https://github.com/loveretro/nextui/blob/main/workspace/all/show2/README.md Use the BGCOLOR command to change the background color of the daemon display. Specify the color in hex format. ```bash echo "BGCOLOR:0xFF0000" > /tmp/show2.fifo ``` -------------------------------- ### Repack Ramdisk Image Source: https://github.com/loveretro/nextui/blob/main/workspace/_unmaintained/rg35xx/ramdisk/readme.txt Repacks the modified files from the 'ramdisk' directory into a new ramdisk image (ramdisk.img.new). It ensures hidden files are included and uses mkimage to create the final ramdisk. ```bash shopt -s dotglob find . | cpio -H newc -o > ../ramdisk.cpio mkimage -A arm -O linux -T ramdisk -n "Initial RAM Disk" -d ../ramdisk.cpio ../ramdisk.img.new ``` -------------------------------- ### Prevent shutdown on some platforms Source: https://github.com/loveretro/nextui/blob/main/todo.txt A loop that prevents a system from shutting down by continuously pausing execution. This is a workaround for specific platform behaviors. ```c while (1) pause(); ``` -------------------------------- ### Replace Boot Logo (Rev A, Horizontal) Source: https://github.com/loveretro/nextui/blob/main/workspace/_unmaintained/m17/boot/notes.txt Replaces the horizontal boot logo for revision A on the boot partition with a BMP file. Uses `conv=notrunc` to avoid truncating the partition. ```bash dd conv=notrunc if=/sdcard/logo-h.bmp of=/dev/block/by-name/boot bs=1 seek=4044800 ``` -------------------------------- ### Daemon Mode Command: Update Progress Source: https://github.com/loveretro/nextui/blob/main/workspace/all/show2/README.md Use the PROGRESS command to set the progress bar value (0-100) for the daemon. Send the command to the FIFO file. ```bash echo "PROGRESS:50" > /tmp/show2.fifo ``` -------------------------------- ### Replace Boot Logo (Rev B, Horizontal) Source: https://github.com/loveretro/nextui/blob/main/workspace/_unmaintained/m17/boot/notes.txt Replaces the horizontal boot logo for revision B on the boot partition with a BMP file. Uses `conv=notrunc` to avoid truncating the partition. ```bash dd conv=notrunc if=/sdcard/logo-h.bmp of=/dev/block/by-name/boot bs=1 seek=4045312 ``` -------------------------------- ### Apply JELOS Distribution Fix Source: https://github.com/loveretro/nextui/blob/main/todo.txt This snippet is a reference to a specific file within a GitHub pull request for the JELOS distribution, likely containing a fix for a system issue. ```text https://github.com/JustEnoughLinuxOS/distribution/pull/2195/files#diff-719d790f2d3c1d5a0884ae9eb69fb77956fcaaae235282acb6e6817339f35105 ``` -------------------------------- ### Cheat File Placement and Naming Source: https://github.com/loveretro/nextui/wiki/Adding-Content Place RetroArch .cht cheat files in the '/Cheats/[Emulator]/' directory. The cheat file name must exactly match the ROM name, including the extension, followed by '.cht'. ```text /Cheats/GB/Super Mario Land (World).zip.cht ``` -------------------------------- ### Test String Concatenation with dd Source: https://github.com/loveretro/nextui/blob/main/workspace/_unmaintained/m17/boot/notes.txt Tests string concatenation by writing prefixes and suffixes to a temporary file using dd with different seek offsets. ```bash echo ANDROID > tmp printf 'BA' | dd conv=notrunc of=tmp bs=1 ``` ```bash printf 'AN' | dd conv=notrunc of=tmp bs=1 ``` ```bash printf 'EW' | dd conv=notrunc of=tmp bs=1 seek=4 ``` ```bash printf 'OI' | dd conv=notrunc of=tmp bs=1 seek=4 ``` -------------------------------- ### Strip Header from ramdisk.img Source: https://github.com/loveretro/nextui/blob/main/workspace/_unmaintained/rg35xx/ramdisk/readme.txt Removes the initial 64-byte header from the ramdisk.img file using dd, preparing it for unpacking. ```bash dd bs=1 skip=64 if=ramdisk.img of=ramdisk-no-header.img ``` -------------------------------- ### Unlock CPUs on RG35XX Source: https://github.com/loveretro/nextui/blob/main/todo.txt These commands manually unlock and bring online additional CPU cores on the RG35XX device. This is a workaround for issues related to CPU frequency scaling and performance. ```bash echo 0xf > /sys/devices/system/cpu/autoplug/plug_mask echo 1 > /sys/devices/system/cpu/cpu1/online echo 1 > /sys/devices/system/cpu/cpu2/online echo 1 > /sys/devices/system/cpu/cpu3/online ``` -------------------------------- ### Anbernic RG*XX Shell Redirection Source: https://github.com/loveretro/nextui/blob/main/PAKS.md Adjusts log output redirection for Anbernic RG*XX devices due to their default shell behavior. Use this when the standard redirection fails. ```shell &> "$LOGS_PATH/$EMU_TAG.txt" > "$LOGS_PATH/$EMU_TAG.txt" 2>&1 ``` -------------------------------- ### Daemon Mode Command: Exit Daemon Source: https://github.com/loveretro/nextui/blob/main/workspace/all/show2/README.md Use the QUIT command to terminate the daemon process. Send this command to the FIFO file. ```bash echo "QUIT" > /tmp/show2.fifo ``` -------------------------------- ### Extract Boot Logo (Rev A, Vertical) Source: https://github.com/loveretro/nextui/blob/main/workspace/_unmaintained/m17/boot/notes.txt Extracts the vertical boot logo for revision A from the boot partition to a BMP file. ```bash dd if=/dev/block/by-name/boot of=/sdcard/logo-v.bmp bs=1 skip=4087296 count=31734 ``` -------------------------------- ### Extract Boot Logo (Rev A, Horizontal) Source: https://github.com/loveretro/nextui/blob/main/workspace/_unmaintained/m17/boot/notes.txt Extracts the horizontal boot logo for revision A from the boot partition to a BMP file. ```bash dd if=/dev/block/by-name/boot of=/sdcard/logo-h.bmp bs=1 skip=4044800 count=31734 ``` -------------------------------- ### Extract Boot Logo (Rev B, Horizontal) Source: https://github.com/loveretro/nextui/blob/main/workspace/_unmaintained/m17/boot/notes.txt Extracts the horizontal boot logo for revision B from the boot partition to a BMP file. ```bash dd if=/dev/block/by-name/boot of=/sdcard/logo-h.bmp bs=1 skip=4045312 count=31734 ``` -------------------------------- ### Extract Boot Logo (Rev B, Vertical) Source: https://github.com/loveretro/nextui/blob/main/workspace/_unmaintained/m17/boot/notes.txt Extracts the vertical boot logo for revision B from the boot partition to a BMP file. ```bash dd if=/dev/block/by-name/boot of=/sdcard/logo-v.bmp bs=1 skip=4087808 count=31734 ``` -------------------------------- ### Patch Charger Script Source: https://github.com/loveretro/nextui/blob/main/workspace/_unmaintained/rg35xx/ramdisk/readme.txt Modifies the charger script within the unpacked ramdisk to use '/misc/charging.png' for all charging images instead of the default path. ```bash sed -i 's,/res/images/%s.png,/misc/charging.png,' charger ``` -------------------------------- ### Daemon Mode Command: Update Text Source: https://github.com/loveretro/nextui/blob/main/workspace/all/show2/README.md Use the TEXT command to update the message displayed by the daemon. Send the command to the FIFO file. ```bash echo "TEXT:Loading files..." > /tmp/show2.fifo ``` -------------------------------- ### Daemon Mode Command: Change Font Color Source: https://github.com/loveretro/nextui/blob/main/workspace/all/show2/README.md Use the FONTCOLOR command to change the font color of the text in the daemon display. Specify the color in hex format. ```bash echo "FONTCOLOR:0x00FF00" > /tmp/show2.fifo ``` === COMPLETE CONTENT === This response contains all available snippets from this library. No additional content exists. Do not make further requests.