Differences
This shows you the differences between two versions of the page.
| Both sides previous revision Previous revision Next revision | Previous revision | ||
| disk_image_compression [2023/10/21 17:46] – [SquashFS] Add explanation for how to use run.sh with ports ssokolow | disk_image_compression [2026/03/27 10:24] (current) – ↷ Links adapted because of a move operation 40.77.167.44 | ||
|---|---|---|---|
| Line 30: | Line 30: | ||
| * [[systems: | * [[systems: | ||
| * [[systems: | * [[systems: | ||
| - | * [[systems:segacd]] | + | * [[systems:megacd]] |
| * [[systems: | * [[systems: | ||
| * [[systems: | * [[systems: | ||
| Line 95: | Line 95: | ||
| chdman extractcd -i < | chdman extractcd -i < | ||
| </ | </ | ||
| + | |||
| + | For DVD-based systems, you can use the '' | ||
| === CHD batch converting === | === CHD batch converting === | ||
| Line 102: | Line 104: | ||
| **Linux/ | **Linux/ | ||
| - | Navigate to the folder that has all your game ROMs and run the following | + | Place the script into your folder that holds your ROMs and execute |
| - | <file bash cue-to-chd.sh> | + | <file bash allimg-to-chd.sh> |
| - | # | + | #!/usr/bin/env -S bash #PROTECTED |
| - | for i in *.cue; | + | grep -rlq $' |
| - | do chdman createcd -i " | + | pushd " |
| + | readarray -t array < <(find -maxdepth 1 -type f \( -iname "*.cue" -o -iname " | ||
| + | [ -z " | ||
| + | [ -f "/ | ||
| + | for i in " | ||
| + | / | ||
| + | echo; echo "You can remove file: $i and additionals if you want!" | ||
| done | done | ||
| + | popd | ||
| </ | </ | ||
| - | replacing '' | + | replacing '' |
| Here's a command to convert all the games in the current folder and recursive folders to CHD: | Here's a command to convert all the games in the current folder and recursive folders to CHD: | ||
| Line 290: | Line 299: | ||
| **Linux/ | **Linux/ | ||
| + | |||
| + | Create a file with these contents... | ||
| <file bash iso-to-ciso.sh> | <file bash iso-to-ciso.sh> | ||
| #!/bin/bash | #!/bin/bash | ||
| - | for i in *.iso; | + | for i in " |
| - | do ciso 9 " | + | |
| done | done | ||
| </ | </ | ||
| + | |||
| + | ...mark it executable with this... | ||
| + | |||
| + | < | ||
| + | |||
| + | ...and then run it like this: | ||
| + | |||
| + | < | ||
| **Windows: | **Windows: | ||
| Line 532: | Line 551: | ||
| cd / | cd / | ||
| mksquashfs skweek.pc skweek.pc.squashfs | mksquashfs skweek.pc skweek.pc.squashfs | ||
| + | | ||
| + | cd / | ||
| + | mksquashfs "astro chicken" | ||
| Or to compress a single file : | Or to compress a single file : | ||
| Line 557: | Line 579: | ||
| If you use the btrfs filesystem, you can enable compression, | If you use the btrfs filesystem, you can enable compression, | ||
| - | |||
| - | === The run.sh file === | ||
| - | |||
| - | When using squashfs for [[systems: | ||
| - | |||
| - | This file will be executed with the working directory set to ''/ | ||
| - | |||
| - | If your game is a 64-bit GOG.com game which requires no special tweaks or additional libraries, you should just be able to use this example script as-is: | ||
| - | |||
| - | <file sh run.sh> | ||
| - | #!/bin/sh | ||
| - | cd " | ||
| - | |||
| - | unclutter-remote -h | ||
| - | exec ./start.sh | ||
| - | </ | ||
| - | |||
| - | If your game is a 32-bit GOG.com game which requires no special tweaks or additional libraries, this example script should do: | ||
| - | |||
| - | <file sh run.sh> | ||
| - | #!/bin/sh | ||
| - | cd " | ||
| - | |||
| - | unclutter-remote -h | ||
| - | export LD_LIBRARY_PATH=/ | ||
| - | export LIBGL_DRIVERS_PATH=/ | ||
| - | export SPA_PLUGIN_DIR="/ | ||
| - | export PIPEWIRE_MODULE_DIR="/ | ||
| - | exec ./start.sh | ||
| - | </ | ||
| - | |||
| - | To explain the '' | ||
| - | |||
| - | * In any shell script, '' | ||
| - | * '' | ||
| - | * '' | ||
| - | * ...and then we '' | ||
| === Uncompress a SquashFS file === | === Uncompress a SquashFS file === | ||
- disk_image_compression.1697910391.txt.gz
- Last modified: 3 years ago
- by ssokolow