I’d appreciate it if everyone could just stop burning fossil fuels, please. Thank you for your cooperation.

  • 0 Posts
  • 23 Comments
Joined 2 years ago
cake
Cake day: November 3rd, 2023

help-circle


  • Mostly I just install Skyrim mods manually because I’m insane I guess, but for some games I like to run Mod Organizer 2 under proton. Your whole linux filesystem can be made accessible to windows programs, not sure if it is by default. But anyway since we’re talking steam games here the game itself normally will be in the same place as usual, as far as windows programs know.




  • #!/bin/bash # Recursively rename everything in the current directory as necessary # to make it match the case of filenames in Skyrim’s “Data” directory,

    from=`pwd -P`
    to="${HOME}/.steam/debian-installation/steamapps/common/Skyrim_1.5.97/Data"
    tmp="/tmp/skydata_index"
    filez="/tmp/skydata_from"
    
    IFS='
    '
    
    match_case() {
        cd "$2"
        find . | grep -v '^[.]$' > "$tmp"
        cd "$1"
        find . -maxdepth 1 | grep -v '^[.]$' > "$filez"
        for j in `cat $filez`; do
            if ( grep -i "^${j}$" $tmp ); then
                name=`grep -i "^${j}$" $tmp | head -1`
                if [ "${name}xx" != "${j}xx" ] ; then
                    mv "$j" "$name"
                fi
            fi
        done
    
        # going recursiv
        find . -maxdepth 1 -type d | grep -v '^[.]$' > "$filez"
        for j in `cat $filez`; do
            if ( test -d "${2}/${j}" ) ; then
                match_case "${1}/${j}" "${2}/${j}"
            fi
        done
    }
    match_case $from $to
    rm $tmp $filez