Skip to content

Linux refactor #29

@maplepy

Description

@maplepy

I just skimmed over the bash script and good god... This seems very hard to maintain and not verbose at all. Do you want me to submit a PR to fix it ?

Also

FLAT_GEN() {
	echo would you like flat textures resized? Y/N/HELP
	read choice

	if [ $choice == "Y" ]; then
		flat=2
	elif [ $choice == "N" ]; then
		flat=1
	elif [ $choice == "HELP" ]; then
		echo resized flat textures appear mostly flat on sv_pure, non-resized appears as stock tf2 textures
		FLAT_GEN
	else
		echo invalid input
		FLAT_GEN
	fi
}

say the answer is no, so flat=1

elif [ $flat == 2 ]; then
	echo generating flat textures
	dev/generators/textures_flat.sh dev/lists/linux/flat.txt "../../tf2_textures_dir.vpk" 1
	dev/generators/textures_flat.sh dev/lists/linux/flat_hl2.txt "../../../hl2/hl2_textures_dir.vpk" 1
	echo flat textures \(resized\) >>dev/current_options.txt
	echo done
fi

why is this being done?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions