Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
C
cookbook
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
redox-os
cookbook
Commits
e08f59c7
Commit
e08f59c7
authored
6 years ago
by
Jeremy Soller
Browse files
Options
Downloads
Plain Diff
Merge branch 'openttd' into 'master'
OpenTTD fixes See merge request
redox-os/cookbook!209
parents
a0751aef
eb32acbf
No related branches found
No related tags found
1 merge request
!209
OpenTTD fixes
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
recipes/openttd/01_redox.patch
+61
-19
61 additions, 19 deletions
recipes/openttd/01_redox.patch
with
61 additions
and
19 deletions
recipes/openttd/01_redox.patch
+
61
−
19
View file @
e08f59c7
diff -ruw
N
source/config.lib source-new/config.lib
diff -ru
pN
w source/config.lib source-new/config.lib
--- source/config.lib 201
8-12-29 07:28:58.975290421 -07
00
--- source/config.lib 201
9-03-04 21:01:49.523053923 +01
00
+++ source-new/config.lib 2019-0
1
-0
6 17:30:43.830146522 -07
00
+++ source-new/config.lib 2019-0
3
-0
4 21:00:15.870317336 +01
00
@@ -1486,7 +1486,7 @@
@@ -1486,7 +1486,7 @@
make_cflags_and_ldflags() {
# Special CXXFlags for HOST
# Special CXXFlags for HOST
CXXFLAGS="$CXXFLAGS"
CXXFLAGS="$CXXFLAGS"
# Libs to compile. In fact this is just LDFLAGS
# Libs to compile. In fact this is just LDFLAGS
...
@@ -10,10 +10,10 @@ diff -ruwN source/config.lib source-new/config.lib
...
@@ -10,10 +10,10 @@ diff -ruwN source/config.lib source-new/config.lib
# LDFLAGS used for HOST
# LDFLAGS used for HOST
LDFLAGS="$LDFLAGS"
LDFLAGS="$LDFLAGS"
# FEATURES for HOST (lto)
# FEATURES for HOST (lto)
diff -ruw
N
source/src/music/extmidi.cpp source-new/src/music/extmidi.cpp
diff -ru
pN
w source/src/music/extmidi.cpp source-new/src/music/extmidi.cpp
--- source/src/music/extmidi.cpp 201
8-12-29 07:28:59.143295501 -07
00
--- source/src/music/extmidi.cpp 201
9-03-04 21:01:49.899056924 +01
00
+++ source-new/src/music/extmidi.cpp 201
8-12-29 10:14:06.637357598 -07
00
+++ source-new/src/music/extmidi.cpp 201
9-03-04 21:00:15.886317459 +01
00
@@ -115,7 +115,11 @@
@@ -115,7 +115,11 @@
void MusicDriver_ExtMidi::DoPlay()
switch (this->pid) {
switch (this->pid) {
case 0: {
case 0: {
close(0);
close(0);
...
@@ -25,10 +25,52 @@ diff -ruwN source/src/music/extmidi.cpp source-new/src/music/extmidi.cpp
...
@@ -25,10 +25,52 @@ diff -ruwN source/src/music/extmidi.cpp source-new/src/music/extmidi.cpp
if (d != -1 && dup2(d, 1) != -1 && dup2(d, 2) != -1) {
if (d != -1 && dup2(d, 1) != -1 && dup2(d, 2) != -1) {
execvp(this->params[0], this->params);
execvp(this->params[0], this->params);
}
}
diff -ruwN source/src/rev.cpp.in source-new/src/rev.cpp.in
diff -rupNw source/src/os/unix/unix.cpp source-new/src/os/unix/unix.cpp
--- source/src/rev.cpp.in 2018-12-29 07:28:59.167296226 -0700
--- source/src/os/unix/unix.cpp 2019-03-04 21:01:49.915057051 +0100
+++ source-new/src/rev.cpp.in 2018-12-29 10:11:42.314241804 -0700
+++ source-new/src/os/unix/unix.cpp 2019-03-04 20:20:35.800062835 +0100
@@ -57,7 +57,7 @@
@@ -69,12 +69,12 @@
ULONG __stack = (1024*1024)*2; // maybe
bool FiosIsRoot(const char *path)
{
-#if !defined(__MORPHOS__) && !defined(__AMIGAOS__)
+#if !defined(__redox__)
return path[1] == '\0';
#else
- /* On MorphOS or AmigaOS paths look like: "Volume:directory/subdirectory" */
+ /* On Redox paths look like: "scheme:/directory/subdirectory" */
const char *s = strchr(path, ':');
- return s != NULL && s[1] == '\0';
+ return (s != NULL) && (strlen(s) == 2) && (s[1] == '/') && (s[2] == '\0');
#endif
}
@@ -106,10 +106,10 @@
bool FiosIsValidFile(const char *path, c
{
char filename[MAX_PATH];
int res;
-#if defined(__MORPHOS__) || defined(__AMIGAOS__)
- /* On MorphOS or AmigaOS paths look like: "Volume:directory/subdirectory" */
+#if defined(__redox__)
+ /* On Redox paths look like: "scheme:/directory/subdirectory" */
if (FiosIsRoot(path)) {
- res = seprintf(filename, lastof(filename), "%s:%s", path, ent->d_name);
+ res = seprintf(filename, lastof(filename), "%s%s", path, ent->d_name);
} else // XXX - only next line!
#else
assert(path[strlen(path) - 1] == PATHSEPCHAR);
@@ -370,7 +370,7 @@
void OSOpenBrowser(const char *url)
if (child_pid != 0) return;
const char *args[3];
- args[0] = "xdg-open";
+ args[0] = "netsurf-fb";
args[1] = url;
args[2] = NULL;
execvp(args[0], const_cast<char * const *>(args));
diff -rupNw source/src/rev.cpp.in source-new/src/rev.cpp.in
--- source/src/rev.cpp.in 2019-03-04 21:01:49.923057115 +0100
+++ source-new/src/rev.cpp.in 2019-03-04 21:00:15.922317739 +0100
@@ -57,7 +57,7 @@
const char _openttd_build_date[] = __DAT
* (compiling from sources without any version control software)
* (compiling from sources without any version control software)
* and 2 is for modified revision.
* and 2 is for modified revision.
*/
*/
...
@@ -37,9 +79,9 @@ diff -ruwN source/src/rev.cpp.in source-new/src/rev.cpp.in
...
@@ -37,9 +79,9 @@ diff -ruwN source/src/rev.cpp.in source-new/src/rev.cpp.in
/**
/**
* The NewGRF revision of OTTD:
* The NewGRF revision of OTTD:
diff -ruw
N
source/src/stdafx.h source-new/src/stdafx.h
diff -ru
pN
w source/src/stdafx.h source-new/src/stdafx.h
--- source/src/stdafx.h 201
8-12-29 07:28:59.203297314 -07
00
--- source/src/stdafx.h 201
9-03-04 21:01:49.955057370 +01
00
+++ source-new/src/stdafx.h 201
8-12-29 10:11:42.314241804 -07
00
+++ source-new/src/stdafx.h 201
9-03-04 21:00:15.930317800 +01
00
@@ -12,6 +12,9 @@
@@ -12,6 +12,9 @@
#ifndef STDAFX_H
#ifndef STDAFX_H
#define STDAFX_H
#define STDAFX_H
...
@@ -50,10 +92,10 @@ diff -ruwN source/src/stdafx.h source-new/src/stdafx.h
...
@@ -50,10 +92,10 @@ diff -ruwN source/src/stdafx.h source-new/src/stdafx.h
#if defined(__APPLE__)
#if defined(__APPLE__)
#include "os/macosx/osx_stdafx.h"
#include "os/macosx/osx_stdafx.h"
#endif /* __APPLE__ */
#endif /* __APPLE__ */
diff -ruw
N
source/src/string.cpp source-new/src/string.cpp
diff -ru
pN
w source/src/string.cpp source-new/src/string.cpp
--- source/src/string.cpp 201
8-12-29 07:28:59.207297436 -07
00
--- source/src/string.cpp 201
9-03-04 21:01:49.955057370 +01
00
+++ source-new/src/string.cpp 201
8-12-29 10:11:42.314241804 -07
00
+++ source-new/src/string.cpp 201
9-03-04 21:00:15.938317862 +01
00
@@ -528,7 +528,7 @@
@@ -528,7 +528,7 @@
size_t Utf8TrimString(char *s, size_t ma
return length;
return length;
}
}
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment