From feab0417dd2a7875bf146fa5ceb572127f6c7c7a Mon Sep 17 00:00:00 2001 From: wael Date: Wed, 4 Jan 2023 09:07:17 +0300 Subject: [PATCH] fix --- README.md | 32 +++++--------------------------- fix_libs.sh | 16 ---------------- install | 30 ------------------------------ journal.sh | 1 - onejournal | 4 ---- 5 files changed, 5 insertions(+), 78 deletions(-) delete mode 100755 fix_libs.sh delete mode 100755 install delete mode 100755 journal.sh delete mode 100755 onejournal diff --git a/README.md b/README.md index 21ae22b..a43894a 100644 --- a/README.md +++ b/README.md @@ -2,32 +2,10 @@ Credits to [RedstoneRuler](https://github.com/RedstoneRuler) and [CaveJohnson](h # Installing OneShot on Linux -If you're using a Linux-based operating system, the Steam version of OneShot won't work out of the box. You can use this small program to patch OneShot. +If you're using a Linux-based operating system, the Steam version of OneShot won't work out of the box. You can use this small program to make OneShot run. + +To simply launch the game, you must go into OneShot's game directory, for most people, +this is `~/.local/share/Steam/steamapps/common/OneShot/`. You have to simply remove the +`librt.so.1` for the game to work. **This guide assumes you have the Steam version of OneShot already installed, and that your system is properly configured and up-to-date.** - -## Install git - -To download this program, you'll need to install a program called git. Install git using your distribution's native package manager. - -###### Debian, Ubuntu, Mint, and derivatives -`sudo apt install git` - -###### Arch, Manjaro, and derivatives -`sudo pacman -S git` - -###### Fedora, and derivatives -`sudo dnf install git` - -###### OpenSuse, and derivatives -`sudo zypper in git` - -## Patch OneShot - -Finally, to patch OneShot, run the following command: - -``` -git clone https://github.com/Mizosu97/oneshot_linux && cd oneshot_linux && chmod +x install && ./install -``` - -When you get to the part where you need to use the clover app, run the `onejournal` command in your terminal instead. diff --git a/fix_libs.sh b/fix_libs.sh deleted file mode 100755 index 0b08b96..0000000 --- a/fix_libs.sh +++ /dev/null @@ -1,16 +0,0 @@ -if [ -d backuplibs ]; then - echo "Backup folder already exists." -else - mkdir backuplibs -fi - -if [ -f librt.so* ]; then - cp *.so* ./backuplibs - rm librt.so* -else - echo "No libs found." -fi - -for i in *.so*; do - [ -e /usr/lib32/$i ] && ln -sf /usr/lib32/$i $i -done diff --git a/install b/install deleted file mode 100755 index 5d40003..0000000 --- a/install +++ /dev/null @@ -1,30 +0,0 @@ -#!/bin/bash - -echo "Installing fix_libs.sh" -if [ -f $HOME/.local/share/Steam/steamapps/common/OneShot/fix_libs.sh ]; then - echo "Already installed" -else - cp fix_libs.sh $HOME/.local/share/Steam/steamapps/common/OneShot/ - chmod +x $HOME/.local/share/Steam/steamapps/common/OneShot/fix_libs.sh -fi - -echo "Installing journal.sh" -if [ -f $HOME/.local/share/Steam/steamapps/common/OneShot/journal.sh ]; then - echo "Already installed" -else - cp journal.sh $HOME/.local/share/Steam/steamapps/common/OneShot/ - chmod +x $HOME/.local/share/Steam/steamapps/common/OneShot/journal.sh -fi - -echo "Installing onejournal" -chmod +x onejournal -if [ -f /usr/bin/onejournal ]; then - echo "Already installed" -else - sudo cp onejournal /usr/bin/ - sudo chmod +x /usr/bin/onejournal -fi - -echo "Fixing libraries" -cd ~/.local/share/Steam/steamapps/common/OneShot/ -sh fix_libs.sh diff --git a/journal.sh b/journal.sh deleted file mode 100755 index 5c93283..0000000 --- a/journal.sh +++ /dev/null @@ -1 +0,0 @@ -LD_LIBRARY_PATH=./backuplibs ./_______ diff --git a/onejournal b/onejournal deleted file mode 100755 index 8e94624..0000000 --- a/onejournal +++ /dev/null @@ -1,4 +0,0 @@ -#!/bin/bash - -cd ~/.local/share/Steam/steamapps/common/OneShot/ -sh journal.sh