Navigation Menu

Skip to content
This repository has been archived by the owner on Feb 11, 2021. It is now read-only.

Commit

Permalink
Added lines to change path when run on iPhone. Reason: iPhone operate…
Browse files Browse the repository at this point in the history
…s in sandbox and so cannot write files just anywhere ... I use the documents folder in this test.
  • Loading branch information
Holmes Futrell committed Aug 15, 2008
1 parent d304ee8 commit 14bc159
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions test/testfile.c
Expand Up @@ -14,9 +14,14 @@
#include <stdio.h>

/* WARNING ! those 2 files will be destroyed by this test program */
#define FBASENAME1 "sdldata1" /* this file will be created during tests */
#define FBASENAME2 "sdldata2" /* this file should not exists before starting test */

#ifdef __IPHONEOS__
#define FBASENAME1 "../Documents/sdldata1" /* this file will be created during tests */
#define FBASENAME2 "../Documents/sdldata2" /* this file should not exist before starting test */
#else
#define FBASENAME1 "sdldata1" /* this file will be created during tests */
#define FBASENAME2 "sdldata2" /* this file should not exist before starting test */
#endif

#ifndef NULL
#define NULL ((void *)0)
Expand Down

0 comments on commit 14bc159

Please sign in to comment.