Permalink
Browse files

Startup file for iOS.

  • Loading branch information...
1 parent 9aed0db commit 3a129d97759c858bf50c33b35be46d3a0a49dc2e Andrew Plotkin committed Apr 28, 2011
Showing with 12 additions and 0 deletions.
  1. +12 −0 iosstart.m
View
@@ -0,0 +1,12 @@
+#import "GlkStream.h"
+#include "glk.h" /* This comes with the IosGlk library. */
+#include "glulxe.h"
+#include "iosglk_startup.h" /* This comes with the IosGlk library. */
+
+void iosglk_startup_code()
+{
+ NSBundle *bundle = [NSBundle mainBundle];
+ NSString *pathname = [bundle pathForResource:@"Advent" ofType:@"ulx"];
+
+ gamefile = [[GlkStreamFile alloc] initWithMode:filemode_Read rock:1 unicode:NO textmode:NO dirname:@"." pathname:pathname];
+}

0 comments on commit 3a129d9

Please sign in to comment.