<commit_before>#!/bin/bash
# LGSM fix_steamcmd.sh function
# Author: <NAME>
# Website: http://gameservermanagers.com
lgsm_version="301215"

# Description: fixes various issues related to steamCMD

fn_fix_steamcmd_msg_start(){
	fn_printdots "Applying ${fixname} fix: ${gamename}"
	sleep 2
	fn_printinfonl "Applying ${fixname} fix: ${gamename}"
}

fn_fix_steamcmd_msg_end(){
	if [ $? -ne 0 ]; then
		fn_printfailnl "Applying ${fixname} fix: ${gamename}"
		fn_scriptlog "Failure! Applying ${fixname} fix: ${gamename}"
	else
		fn_printoknl "Applying ${fixname} fix: ${gamename}"
		fn_scriptlog "Complete! Applying ${fixname} fix: ${gamename}"
	fi	
}


# Fixes: [S_API FAIL] SteamAPI_Init() failed; unable to locate a running instance of Steam,or a local steamclient.so.
if [ ! -f "${HOME}/.steam/sdk32/steamclient.so" ]; then
	local fixname="steamclient.so general"
	fn_fix_steamcmd_msg_start<commit_msg>Added another message to scriptlog<commit_after>#!/bin/bash
# LGSM fix_steamcmd.sh function
# Author: <NAME>
# Website: http://gameservermanagers.com
lgsm_version="301215"

# Description: fixes various issues related to steamCMD

fn_fix_steamcmd_msg_start(){
	fn_printdots "Applying ${fixname} fix: ${gamename}"
	sleep 2
	fn_printinfonl "Applying ${fixname} fix: ${gamename}"
	fn_scriptlog "Applying ${fixname} fix: ${gamename}"
}

fn_fix_steamcmd_msg_end(){
	if [ $? -ne 0 ]; then
		fn_printfailnl "Applying ${fixname} fix: ${gamename}"
		fn_scriptlog "Failure! Applying ${fixname} fix: ${gamename}"
	else
		fn_printoknl "Applying ${fixname} fix: ${gamename}"
		fn_scriptlog "Complete! Applying ${fixname} fix: ${gamename}"
	fi	
}


# Fixes: [S_API FAIL] SteamAPI_Init() failed; unable to locate a running instance of Steam,or a local steamclient.so.
if [ ! -f "${HOME}/.steam/sdk32/steamclient.so" ]; then
	local fixname="steamclient.so general"
	fn_fix_steamcmd_msg_start
{'fraction_non_alphanumeric': 0.1360725720384205, 'fraction_numerical': 0.010672358591248666, 'mean_word_length': 5.818181818181818, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '483923', 'n_tokens_mistral': 732, 'n_tokens_neox': 689, 'n_words': 172}