mirror of
https://codeberg.org/guix/guix.git
synced 2025-10-02 02:15:12 +00:00
gnu: Add torcs.
* gnu/packages/games.scm (torcs): New variable. Change-Id: I1e55fc65ff303c309fed50f2071de0eaf4266d57
This commit is contained in:
parent
f0c27b2fa8
commit
40625c213a
5 changed files with 180 additions and 0 deletions
14
gnu/packages/patches/torcs-nullptr.patch
Normal file
14
gnu/packages/patches/torcs-nullptr.patch
Normal file
|
@ -0,0 +1,14 @@
|
|||
Source: https://src.fedoraproject.org/rpms/torcs/raw/rawhide/f/torcs-1.3.7-nullptr.patch
|
||||
Upstream-status: https://sourceforge.net/p/torcs/mailman/message/36490328/
|
||||
|
||||
--- torcs-1.3.7/src/libs/musicplayer/OpenALMusicPlayer.cpp.orig 2014-02-05 10:54:43.000000000 +0100
|
||||
+++ torcs-1.3.7/src/libs/musicplayer/OpenALMusicPlayer.cpp 2018-07-09 20:56:42.521607205 +0100
|
||||
@@ -161,7 +161,7 @@
|
||||
{
|
||||
char pcm[BUFFERSIZE];
|
||||
int size = 0;
|
||||
- const char* error = '\0';
|
||||
+ const char* error = nullptr;
|
||||
|
||||
if (!stream->read(pcm, BUFFERSIZE, &size, &error)) {
|
||||
GfError("OpenALMusicPlayer: Stream read error: %s\n", error);
|
Loading…
Add table
Add a link
Reference in a new issue