Duke4.net Forums: r3708 and later fails to build - Duke4.net Forums

Jump to content

Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

r3708 and later fails to build

#1

Mac OS 10.8.4

source/GameListSource.game.m:26: error: ‘grpfiles’ undeclared (first use in this function)

it seems when grpfiles was replaced some of the mac stuff was missed. Patch has been attached.
Index: eduke32/source/GameListSource.game.m
===================================================================
--- eduke32/source/GameListSource.game.m        (revision 3708)
+++ eduke32/source/GameListSource.game.m        (working copy)
@@ -23,9 +23,9 @@
         list = [[NSMutableArray alloc] init];

         for (p = foundgrps; p; p=p->next) {
-            for (i=0; i<NUMGRPFILES; i++) if (p->crcval == grpfiles[i].crcval) break;
+            for (i=0; i<NUMGRPFILES; i++) if (p->crcval == internalgrpfiles[i].crcval) break;
             if (i == NUMGRPFILES) continue;
-            [list addObject:[[GrpFile alloc] initWithGrpfile:p andName:[NSString stringWithCString:grpfiles[i].name]]];
+            [list addObject:[[GrpFile alloc] initWithGrpfile:p andName:[NSString stringWithCString:internalgrpfiles[i].name]]];
         }
     }

Index: eduke32/source/grpscan.h
===================================================================
--- eduke32/source/grpscan.h    (revision 3708)
+++ eduke32/source/grpscan.h    (working copy)
@@ -61,6 +61,7 @@
 } grpfile_type;

 // extern struct grpfile grpfiles[NUMGRPFILES];
+extern struct grpfile internalgrpfiles[NUMGRPFILES];
 extern struct grpfile *foundgrps;
 extern struct grpfile *listgrps;


This post has been edited by John Jendro: 13 July 2013 - 11:42 AM

1

User is offline   Helixhorned 

  • EDuke32 Developer

#2

Thanks for taking the time to fix the problem yourself! We don't develop on OS X, so such omissions occasionally slip through. Applied in r3958.
0

Share this topic:


Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic


All copyrights and trademarks not owned by Voidpoint, LLC are the sole property of their respective owners. Play Ion Fury! ;) © Voidpoint, LLC

Enter your sign in name and password


Sign in options