summaryrefslogtreecommitdiff
path: root/projects
diff options
context:
space:
mode:
authorsmatz <smatz@openttd.org>2008-06-03 18:35:58 +0000
committersmatz <smatz@openttd.org>2008-06-03 18:35:58 +0000
commitc7a9637834a96722be5a524c4c1e8932a45e3461 (patch)
tree72b7d141fd63dcb880f610a334390bf9c41f97b1 /projects
parentd58f0558761079552c4c607707dd131a2c5e5397 (diff)
downloadopenttd-c7a9637834a96722be5a524c4c1e8932a45e3461.tar.xz
(svn r13375) -Add: logging of actions that could possibly cause desyncs and crashes to simplify debugging. See readme.txt for details
Diffstat (limited to 'projects')
-rwxr-xr-xprojects/determineversion.vbs13
-rw-r--r--projects/openttd_vs80.vcproj8
-rw-r--r--projects/openttd_vs90.vcproj8
3 files changed, 25 insertions, 4 deletions
diff --git a/projects/determineversion.vbs b/projects/determineversion.vbs
index 3ac5852f5..fd5a85465 100755
--- a/projects/determineversion.vbs
+++ b/projects/determineversion.vbs
@@ -14,23 +14,28 @@ Sub FindReplaceInFile(filename, to_find, replacement)
file.Close
End Sub
-Sub UpdateFile(revision, version, cur_date, filename)
+Sub UpdateFile(modified, revision, version, cur_date, filename)
FSO.CopyFile filename & ".in", filename
+ FindReplaceInFile filename, "@@MODIFIED@@", modified
FindReplaceInFile filename, "@@REVISION@@", revision
FindReplaceInFile filename, "@@VERSION@@", version
FindReplaceInFile filename, "@@DATE@@", cur_date
End Sub
Sub UpdateFiles(version)
- Dim WshShell, cur_date, revision, oExec
+ Dim WshShell, cur_date, modified, revision, oExec
Set WshShell = CreateObject("WScript.Shell")
cur_date = DatePart("D", Date) & "." & DatePart("M", Date) & "." & DatePart("YYYY", Date)
revision = 0
+ modified = 1
Select Case Mid(version, 1, 1)
Case "r" ' svn
revision = Mid(version, 2)
If InStr(revision, "M") Then
revision = Mid(revision, 1, InStr(revision, "M") - 1)
+ modified = 2
+ Else
+ modified = 0
End If
If InStr(revision, "-") Then
revision = Mid(revision, 1, InStr(revision, "-") - 1)
@@ -49,8 +54,8 @@ Sub UpdateFiles(version)
End If
End Select
- UpdateFile revision, version, cur_date, "../src/rev.cpp"
- UpdateFile revision, version, cur_date, "../src/ottdres.rc"
+ UpdateFile modified, revision, version, cur_date, "../src/rev.cpp"
+ UpdateFile modified, revision, version, cur_date, "../src/ottdres.rc"
End Sub
Function ReadRegistryKey(shive, subkey, valuename, architecture)
diff --git a/projects/openttd_vs80.vcproj b/projects/openttd_vs80.vcproj
index 0311b1ed2..ef5e2f9ec 100644
--- a/projects/openttd_vs80.vcproj
+++ b/projects/openttd_vs80.vcproj
@@ -568,6 +568,10 @@
>
</File>
<File
+ RelativePath=".\..\src\gamelog.cpp"
+ >
+ </File>
+ <File
RelativePath=".\..\src\genworld.cpp"
>
</File>
@@ -1036,6 +1040,10 @@
>
</File>
<File
+ RelativePath=".\..\src\gamelog.h"
+ >
+ </File>
+ <File
RelativePath=".\..\src\genworld.h"
>
</File>
diff --git a/projects/openttd_vs90.vcproj b/projects/openttd_vs90.vcproj
index c8e040f25..2e6224d62 100644
--- a/projects/openttd_vs90.vcproj
+++ b/projects/openttd_vs90.vcproj
@@ -565,6 +565,10 @@
>
</File>
<File
+ RelativePath=".\..\src\gamelog.cpp"
+ >
+ </File>
+ <File
RelativePath=".\..\src\genworld.cpp"
>
</File>
@@ -1033,6 +1037,10 @@
>
</File>
<File
+ RelativePath=".\..\src\gamelog.h"
+ >
+ </File>
+ <File
RelativePath=".\..\src\genworld.h"
>
</File>