Welcome to mirror list, hosted at ThFree Co, Russian Federation.

b0000_defines « preinit.d « etc « rootfs « hakchi « mod_hakchi « mods - github.com/ClusterM/hakchi2.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 47c7273436af63de1106e8a455bca017f08a2bea (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
set_gamepath(){
  local feck="$mountpoint/var/lib/clover/profiles/0/home-menu/save/system-save.json"
  if [ -f "$mountpoint/etc/clover/version/canoe" ]; then
#    echo "SNES gamepath"
    gamepath="/usr/share/games"
    [ -f "$feck" ] && mv -f "$feck" "$feck.nes"
    [ -d "$feck.snes" ] && rm -rf "$feck" && mv "$feck.snes" "$feck"
  else
#    echo "NES gamepath"
    gamepath="/usr/share/games/nes/kachikachi"
    [ -d "$feck" ] && rm -rf "$feck.snes" && mv "$feck" "$feck.snes"
    [ -f "$feck.nes" ] && mv -f "$feck.nes" "$feck"
  fi
}

modname="hakchi"
modpath="/$modname"
#mountpoint="/newroot"
installpath="$mountpoint/var/lib/$modname"
firmwarepath="$installpath/firmware"
rootfs="$installpath/rootfs"
preinit="$rootfs/etc/preinit"
preinitpath="$preinit.d"
gamepath=""
set_gamepath
temppath="/tmp"