终端内编码错误?

终端内编码错误?

我在 Steam 上拥有 Terraria,它是我最喜欢的游戏之一。我终于在笔记本电脑上让 Steam 运行起来了,但现在却无法运行。我对代码一无所知,所以这里是所有技术方面的东西。打开终端窗口加载 Terraria 后:

/home/matt/.local/share/Steam/steamapps/common/Terraria/Terraria: line 38: 29065 Aborted                 (core dumped) ./${BASENAME}.bin.${ext} $@
Game removed: AppID 105600 "Terraria", ProcID 29065 
No cached sticky mapping in ActivateActionSet.

查看文件后,我找到了上面提到的区域,以下是代码:

#!/bin/bash
# MonoKickstart Shell Script
# Written by Ethan "flibitijibibo" Lee

# Move to script's directory
cd "`dirname "$0"`"

# Get the system architecture
UNAME=`uname`
ARCH=`uname -m`
BASENAME=`basename "$0"`

# MonoKickstart picks the right libfolder, so just execute the right binary.
if [ "$UNAME" == "Darwin" ]; then
    ext=osx
else
    ext=x86
    for arg in "$@"
    do
        case "$arg" in
        -x86)   ext=x86
            ;;
        -x64)   ext=x86_64
            ;;
        -autoarch)
            if [ "$ARCH" == "x86_64" ]; then
                ext=x86_64
            else
                ext=x86
            fi
            ;;
        esac
    done
fi


export MONO_IOMAP=all
./${BASENAME}.bin.${ext} $@

相关内容