OpenTTD: Script to update patch

This commit is contained in:
Sergii Pylypenko
2014-03-14 15:21:05 +02:00
parent ba8fae6b97
commit 17d7f560c4
2 changed files with 3 additions and 10 deletions

View File

@@ -31,16 +31,7 @@
if (_debug_socket != INVALID_SOCKET) {
char buf2[1024 + 32];
--- src/fontdetection.cpp 2014-02-25 11:17:24.000000000 +0200
+++ src/fontdetection.cpp 2014-03-13 23:49:24.456780663 +0200
@@ -626,7 +626,7 @@
if (split != NULL) *split = '\0';
/* First create a pattern to match the wanted language. */
- FcPattern *pat = FcNameParse((FcChar8*)lang);
+ FcPattern *pat = FcNameParse((FcChar8*)"" /*lang*/);
/* We only want to know the filename. */
FcObjectSet *os = FcObjectSetBuild(FC_FILE, FC_SPACING, FC_SLANT, FC_WEIGHT, NULL);
/* Get the list of filenames matching the wanted language. */
+++ src/fontdetection.cpp 2014-03-14 15:18:47.947366408 +0200
@@ -639,6 +639,7 @@
if (fs != NULL) {
int best_weight = -1;

View File

@@ -0,0 +1,2 @@
#!/bin/sh
diff -u -r openttd-*-orig openttd-*-armeabi-v7a | filterdiff --strip=1 > openttd-trunk-android.patch