SCO
Arcane
- Joined
- Feb 3, 2009
- Messages
- 16,320
Think they are installed?
Specifically i want the keys and values for the Launcher to think it is installed, so i can configure the settings if i want.
This is what i have right now for bg2
Do you know what they are?
Specifically i want the keys and values for the Launcher to think it is installed, so i can configure the settings if i want.
This is what i have right now for bg2
Code:
#!/bin/bash
echo "This file to changes the baldur.ini path settings to point to the current dir"
echo "this is needed because bg2 is indifferent to relative paths"
echo "Run this at least once before running bg2 for the first time"
#For the launcher
GAME_PATH=$(dirname "$(readlink -f "$0")")
cd "$GAME_PATH/Baldur's Gate 2"
wine_path=$(winepath -w .)
#missing registry keys for launcher to think it is installed... I don't know what they are.
#For the game
#fuck this sed escaping shit, in windows / behaves as \
path=$(echo "$wine_path" | tr '\\\\' '\/')
sed -i "s|HD0:=.*|HD0:=${path}|g" baldur.ini
sed -i "s|CD1:=.*|CD1:=${path}/CD|g" baldur.ini
sed -i "s|CD2:=.*|CD2:=${path}/CD|g" baldur.ini
sed -i "s|CD3:=.*|CD3:=${path}/CD|g" baldur.ini
sed -i "s|CD4:=.*|CD4:=${path}/CD|g" baldur.ini
sed -i "s|CD5:=.*|CD5:=${path}/CD|g" baldur.ini
wine BGMain.exe
Do you know what they are?