windows_install_folder_UPDATE.diff

Use the correct install folder in all versions of windows. - Terkhen, 2010-09-11 13:35

Download (648 Bytes)

View differences:

scripts/Makefile.def Wed Sep 08 16:18:47 2010 +0200
66 66
INSTALL_DIR?=$(HOME)/Documents/OpenTTD/$(SUB_DIR)
67 67
else
68 68
ifeq ($(shell echo "$(OSTYPE)" | cut -d_ -f1),MINGW32)
69
INSTALL_DIR?=C:\Documents and Settings\$(USERNAME)\My Documents\OpenTTD\$(SUB_DIR)
69
WIN_VER = $(shell echo "$(OSTYPE)" | cut -d- -f2 | cut -d. -f1)
70
ifeq ($(WIN_VER),5)
71
	INSTALL_DIR?=C:\Documents and Settings\All Users\Shared Documents\OpenTTD\$(SUB_DIR)
72
else
73
	INSTALL_DIR?=C:\Users\Public\Documents\OpenTTD\$(SUB_DIR)
74
endif
70 75
else
71 76
INSTALL_DIR?=
72 77
endif