commit 0204936a3e8d8e527783cda9c7ad6132e8166e8d Author: cclecle Date: Sun May 8 16:13:29 2022 +0200 add files diff --git a/Readme.md b/Readme.md new file mode 100644 index 0000000..e69de29 diff --git a/Run.sh b/Run.sh new file mode 100644 index 0000000..d7d08dc --- /dev/null +++ b/Run.sh @@ -0,0 +1,79 @@ +#!/bin/bash + +SCRIPT_DIR=$( cd -- "$( dirname -- "${BASH_SOURCE[0]}" )" &> /dev/null && pwd ) +OUTPUT_DIR="$2" +CFG_FILE="$3" +DEFAULT_CFG_FILE=UnrealTournament.ini + + +function install() { + cp $SCRIPT_DIR/Help $OUTPUT_DIR/Help -Rf + cp $SCRIPT_DIR/Textures $OUTPUT_DIR/Textures -Rf + + echo install ok +} + +function enable() { + echo enable ok +} + +function disable() { + echo disable ok +} + +function show_help() { + echo + echo "Usage: $0 { install | enable | disable } []" + echo +} + +function check_cfg_file() { + if [ -z ${CFG_FILE} ] + then + echo "CFG_FILE is unset, setting it to $DEFAULT_CFG_FILE" + CFG_FILE=$DEFAULT_CFG_FILE + else + echo "CFG_FILE is set to '$CFG_FILE'" + fi + + if [ ! -f $OUTPUT_DIR/System/$CFG_FILE ] + then + echo "$OUTPUT_DIR/System/$CFG_FILE does not exist" + show_help + exit 9999 # die with error code 9999 + fi +} + +function check_game_dir() { + ### Check if a directory does not exist ### + if [ ! -d $OUTPUT_DIR ] + then + echo "incorrect " + show_help + exit 9999 # die with error code 9999 + fi +} + +case "$1" in + 'install') + check_game_dir + install + ;; + 'enable') + check_game_dir + check_cfg_file + disable + enable + ;; + 'disable') + check_game_dir + check_cfg_file + disable + ;; + *) + show_help + exit 1 + ;; +esac + +exit 0 \ No newline at end of file diff --git a/Textures/CountryFlags32b.utx b/Textures/CountryFlags32b.utx new file mode 100644 index 0000000..74210e0 Binary files /dev/null and b/Textures/CountryFlags32b.utx differ diff --git a/Textures/CountryFlags32s.utx b/Textures/CountryFlags32s.utx new file mode 100644 index 0000000..09fdbd4 Binary files /dev/null and b/Textures/CountryFlags32s.utx differ diff --git a/Textures/CountryFlags64b.utx b/Textures/CountryFlags64b.utx new file mode 100644 index 0000000..26121f5 Binary files /dev/null and b/Textures/CountryFlags64b.utx differ diff --git a/Textures/CountryFlags64s.utx b/Textures/CountryFlags64s.utx new file mode 100644 index 0000000..0b1a643 Binary files /dev/null and b/Textures/CountryFlags64s.utx differ