shithub: choc

Download patch

ref: cea768a93430b1823cc3d2e683282833b70b75f1
parent: 16a0f227362f330bd9be0598f136eed05c811969
author: Simon Howard <fraggle@gmail.com>
date: Thu Mar 27 18:18:54 EDT 2014

Fix .rc files so version info shows on Windows 7.

Thanks to Brad Harding for the bug report. This fixes #319.

--- a/codeblocks/game-res.rc
+++ b/codeblocks/game-res.rc
@@ -18,5 +18,9 @@
    VALUE "ProductVersion", "2.0.0"
   }
  }
+ BLOCK "VarFileInfo"
+ {
+  VALUE "Translation", 0x409, 1252
+ }
 }
 
--- a/codeblocks/setup-res.rc
+++ b/codeblocks/setup-res.rc
@@ -12,11 +12,15 @@
    VALUE "FileVersion", "2.0.0"
    VALUE "FileDescription", "Chocolate Doom Setup"
    VALUE "InternalName", "chocolate-setup"
-   VALUE "CompanyName", "fraggle@gmail.com"
+   VALUE "CompanyName", "Chocolate Doom"
    VALUE "LegalCopyright", "GNU General Public License"
    VALUE "ProductName", "Chocolate Doom Setup"
    VALUE "ProductVersion", "2.0.0"
   }
+ }
+ BLOCK "VarFileInfo"
+ {
+  VALUE "Translation", 0x409, 1252
  }
 }
 
--- a/msvc/win32.rc
+++ b/msvc/win32.rc
@@ -49,6 +49,10 @@
 			VALUE "ProductVersion", "2.0.0"
 		END
 	END
+	BLOCK "VarFileInfo"
+	BEGIN
+		VALUE "Translation", 0x409, 1252
+	END
 END
 
 // GhostlyDeath - Preferebly for codeblocks (if it even uses this RC!)
--- a/src/resource.rc.in
+++ b/src/resource.rc.in
@@ -15,10 +15,14 @@
    VALUE "FileDescription", "@PACKAGE_STRING@"
    VALUE "InternalName", "@PACKAGE_TARNAME@"
    VALUE "CompanyName", "@PACKAGE_BUGREPORT@"
-   VALUE "LegalCopyright", "@PACKAGE_COPYRIGHT@.  Licensed under @PACKAGE_LICENSE@"
+   VALUE "LegalCopyright", "@PACKAGE_COPYRIGHT@. Licensed under @PACKAGE_LICENSE@"
    VALUE "ProductName", "@PACKAGE_NAME@"
    VALUE "ProductVersion", "@PACKAGE_VERSION@"
   }
+ }
+ BLOCK "VarFileInfo"
+ {
+  VALUE "Translation", 0x409, 1252
  }
 }
 
--- a/src/setup-res.rc.in
+++ b/src/setup-res.rc.in
@@ -20,5 +20,9 @@
    VALUE "ProductVersion", "@PACKAGE_VERSION@"
   }
  }
+ BLOCK "VarFileInfo"
+ {
+  VALUE "Translation", 0x409, 1252
+ }
 }