Ignore:
Timestamp:
Dec 13, 2002, 1:04:42 AM (18 years ago)
Author:
jkh
Message:

More dylib fix-ups.

Location:
trunk/dports/games/xracer/files
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/dports/games/xracer/files/patch-craft.c

    r1413 r1417  
    1 --- src/craft.c.orig    Thu Dec 12 12:33:22 2002
    2 +++ src/craft.c Thu Dec 12 12:33:58 2002
     1--- src/craft.c.orig    Thu Dec 12 15:03:41 2002
     2+++ src/craft.c Thu Dec 12 15:05:31 2002
     3@@ -85,12 +85,12 @@
     4       /* xrLog (LOG_DEBUG, "name = %s (len = %d)", name, len); */
     5 
     6       if (strncmp (name, "libcraft", 8) == 0 &&
     7-         strcmp (name + len - 3, ".so") == 0)
     8+         strcmp (name + len - 6, ".dylib") == 0)
     9        {
     10          char shortname[1024];
     11 
     12-         strncpy (shortname, name + 8, len - 11);
     13-         shortname[len-11] = '\0';
     14+         strncpy (shortname, name + 8, len - 14);
     15+         shortname[len-14] = '\0';
     16 
     17          /* Try loading it. Don't worry about the return value. */
     18          xrCraftLoadByName (shortname);
     19@@ -115,7 +115,7 @@
     20   struct xrCraft *craft;
     21 
     22   /* Try to construct the name of the shared library containing this craft. */
     23-  snprintf (filename, sizeof filename, "craft/libcraft%s.so", name);
     24+  snprintf (filename, sizeof filename, "craft/libcraft%s.dylib", name);
     25 
     26   /* See if we can open this track. Make sure we resolve all link-time
     27    * errors now, and make sure that symbols from the track don't pollute
    328@@ -130,7 +130,7 @@
    429     }
  • trunk/dports/games/xracer/files/patch-track.c

    r1413 r1417  
    1 --- src/track.c.orig    Thu Dec 12 12:33:27 2002
    2 +++ src/track.c Thu Dec 12 12:34:10 2002
     1--- src/track.c.orig    Thu Dec 12 14:08:55 2002
     2+++ src/track.c Thu Dec 12 14:08:34 2002
     3@@ -76,7 +76,7 @@
     4   char filename[PATH_MAX];
     5 
     6   /* Try to construct the name of the shared library containing this track. */
     7-  snprintf (filename, sizeof filename, "tracks/libtrack%s.so", name);
     8+  snprintf (filename, sizeof filename, "tracks/libtrack%s.dylib", name);
     9 
     10   return xrTrackLoadByFilename (filename);
     11 }
    312@@ -104,7 +104,7 @@
    413     }
Note: See TracChangeset for help on using the changeset viewer.