Permalink
Browse files

Changed the paths of input files to be playbook specific

  • Loading branch information...
1 parent ed28a82 commit b19e657e0d5976595dedeaacecf0d13ad0bfa33b Anthony Hu committed Dec 14, 2011
Showing with 25 additions and 25 deletions.
  1. +1 −1 test/loopwave.c
  2. +1 −1 test/testalpha.c
  3. +1 −1 test/testblitspeed.c
  4. +1 −1 test/testgamma.c
  5. +1 −1 test/testgl.c
  6. +1 −1 test/testiconv.c
  7. +1 −1 test/testoverlay.c
  8. +2 −2 test/testoverlay2.c
  9. +2 −2 test/testpalette.c
  10. +1 −1 test/testsprite.c
  11. +10 −10 test/testvidinfo.c
  12. +1 −1 test/testwin.c
  13. +1 −1 test/testwm.c
  14. +1 −1 test/threadwin.c
View
2 test/loopwave.c
@@ -70,7 +70,7 @@ int main(int argc, char *argv[])
return(1);
}
if ( argv[1] == NULL ) {
- argv[1] = "sample.wav";
+ argv[1] = "app/native/sample.wav";
}
/* Load the wave file into memory */
if ( SDL_LoadWAV(argv[1],
View
2 test/testalpha.c
@@ -407,7 +407,7 @@ int main(int argc, char *argv[])
}
/* Load the sprite */
- if ( LoadSprite(screen, "icon.bmp") < 0 ) {
+ if ( LoadSprite(screen, "app/native/icon.bmp") < 0 ) {
SDL_FreeSurface(light);
quit(1);
}
View
2 test/testblitspeed.c
@@ -269,7 +269,7 @@ static int setup_test(int argc, char **argv)
return(0);
}
- bmp = SDL_LoadBMP("sample.bmp");
+ bmp = SDL_LoadBMP("app/native/sample.bmp");
if (bmp == NULL)
{
fprintf(stderr, "SDL_LoadBMP failed: %s\n", SDL_GetError());
View
2 test/testgamma.c
@@ -125,7 +125,7 @@ int main(int argc, char *argv[])
#endif
/* Do all the drawing work */
- image = SDL_LoadBMP("sample.bmp");
+ image = SDL_LoadBMP("app/native/sample.bmp");
if ( image ) {
SDL_Rect dst;
View
2 test/testgl.c
@@ -17,7 +17,7 @@
#define SHADED_CUBE
/* Define this to be the name of the logo image to use with -logo */
-#define LOGO_FILE "icon.bmp"
+#define LOGO_FILE "app/native/icon.bmp"
/* The SDL_OPENGLBLIT interface is deprecated.
The code is still available for benchmark purposes though.
View
2 test/testiconv.c
@@ -37,7 +37,7 @@ int main(int argc, char *argv[])
int errors = 0;
if ( !argv[1] ) {
- argv[1] = "utf8.txt";
+ argv[1] = "app/native/utf8.txt";
}
file = fopen(argv[1], "rb");
if ( !file ) {
View
2 test/testoverlay.c
@@ -480,7 +480,7 @@ int main(int argc, char **argv)
SDL_WM_SetCaption("SDL test overlay", "testoverlay");
/* Load picture */
- bmpfile=(argv[1]?argv[1]:"sample.bmp");
+ bmpfile=(argv[1]?argv[1]:"app/native/sample.bmp");
pic = SDL_LoadBMP(bmpfile);
if ( pic == NULL ) {
fprintf(stderr, "Couldn't load %s: %s\n", bmpfile,
View
4 test/testoverlay2.c
@@ -399,10 +399,10 @@ int main(int argc, char **argv)
}
/* load the trojan moose images */
- handle=SDL_RWFromFile("moose.dat", "rb");
+ handle=SDL_RWFromFile("app/native/moose.dat", "rb");
if (handle==NULL)
{
- fprintf(stderr, "Can't find the file moose.dat !\n");
+ fprintf(stderr, "Can't find the file app/native/moose.dat !\n");
free(RawMooseData);
quit(2);
}
View
4 test/testpalette.c
@@ -175,8 +175,8 @@ int main(int argc, char **argv)
if (vidflags & SDL_FULLSCREEN) SDL_ShowCursor (SDL_FALSE);
- if((boat[0] = SDL_LoadBMP("sail.bmp")) == NULL)
- sdlerr("loading sail.bmp");
+ if((boat[0] = SDL_LoadBMP("app/native/sail.bmp")) == NULL)
+ sdlerr("loading app/native/sail.bmp");
/* We've chosen magenta (#ff00ff) as colour key for the boat */
SDL_SetColorKey(boat[0], SDL_SRCCOLORKEY | SDL_RLEACCEL,
SDL_MapRGB(boat[0]->format, 0xff, 0x00, 0xff));
View
2 test/testsprite.c
@@ -221,7 +221,7 @@ int main(int argc, char *argv[])
}
/* Load the sprite */
- if ( LoadSprite("icon.bmp") < 0 ) {
+ if ( LoadSprite("app/native/icon.bmp") < 0 ) {
quit(1);
}
View
20 test/testvidinfo.c
@@ -135,9 +135,9 @@ int RunModeTests(SDL_Surface *screen)
}
/* run the generic blit test */
- bmp = SDL_LoadBMP("sample.bmp");
+ bmp = SDL_LoadBMP("app/native/sample.bmp");
if ( ! bmp ) {
- printf("Couldn't load sample.bmp: %s\n", SDL_GetError());
+ printf("Couldn't load app/native/sample.bmp: %s\n", SDL_GetError());
return 0;
}
printf("Running freshly loaded blit test: %dx%d at %d bpp, flags: ",
@@ -164,9 +164,9 @@ int RunModeTests(SDL_Surface *screen)
}
/* run the colorkeyed blit test */
- bmpcc = SDL_LoadBMP("sample.bmp");
+ bmpcc = SDL_LoadBMP("app/native/sample.bmp");
if ( ! bmpcc ) {
- printf("Couldn't load sample.bmp: %s\n", SDL_GetError());
+ printf("Couldn't load app/native/sample.bmp: %s\n", SDL_GetError());
return 0;
}
printf("Running freshly loaded cc blit test: %dx%d at %d bpp, flags: ",
@@ -199,7 +199,7 @@ int RunModeTests(SDL_Surface *screen)
bmp = SDL_DisplayFormat(bmp);
SDL_FreeSurface(tmp);
if ( ! bmp ) {
- printf("Couldn't convert sample.bmp: %s\n", SDL_GetError());
+ printf("Couldn't convert app/native/sample.bmp: %s\n", SDL_GetError());
return 0;
}
printf("Running display format blit test: %dx%d at %d bpp, flags: ",
@@ -230,7 +230,7 @@ int RunModeTests(SDL_Surface *screen)
bmpcc = SDL_DisplayFormat(bmpcc);
SDL_FreeSurface(tmp);
if ( ! bmpcc ) {
- printf("Couldn't convert sample.bmp: %s\n", SDL_GetError());
+ printf("Couldn't convert app/native/sample.bmp: %s\n", SDL_GetError());
return 0;
}
printf("Running display format cc blit test: %dx%d at %d bpp, flags: ",
@@ -260,13 +260,13 @@ int RunModeTests(SDL_Surface *screen)
if (bmp->format->BitsPerPixel>8)
{
SDL_FreeSurface(bmp);
- bmp = SDL_LoadBMP("sample.bmp");
+ bmp = SDL_LoadBMP("app/native/sample.bmp");
SDL_SetAlpha(bmp, SDL_SRCALPHA, 85); /* 85 - 33% alpha */
tmp = bmp;
bmp = SDL_DisplayFormat(bmp);
SDL_FreeSurface(tmp);
if ( ! bmp ) {
- printf("Couldn't convert sample.bmp: %s\n", SDL_GetError());
+ printf("Couldn't convert app/native/sample.bmp: %s\n", SDL_GetError());
return 0;
}
printf("Running display format alpha blit test: %dx%d at %d bpp, flags: ",
@@ -297,14 +297,14 @@ int RunModeTests(SDL_Surface *screen)
if (bmp->format->BitsPerPixel>8)
{
SDL_FreeSurface(bmpcc);
- bmpcc = SDL_LoadBMP("sample.bmp");
+ bmpcc = SDL_LoadBMP("app/native/sample.bmp");
SDL_SetAlpha(bmpcc, SDL_SRCALPHA, 85); /* 85 - 33% alpha */
SDL_SetColorKey(bmpcc, SDL_SRCCOLORKEY | SDL_RLEACCEL, *(Uint8 *)bmpcc->pixels);
tmp = bmpcc;
bmpcc = SDL_DisplayFormat(bmpcc);
SDL_FreeSurface(tmp);
if ( ! bmpcc ) {
- printf("Couldn't convert sample.bmp: %s\n", SDL_GetError());
+ printf("Couldn't convert app/native/sample.bmp: %s\n", SDL_GetError());
return 0;
}
printf("Running display format cc+alpha blit test: %dx%d at %d bpp, flags: ",
View
2 test/testwin.c
@@ -29,7 +29,7 @@ void DrawPict(SDL_Surface *screen, char *bmpfile,
/* Load the image into a surface */
if ( bmpfile == NULL ) {
- bmpfile = "sample.bmp"; /* Sample image */
+ bmpfile = "app/native/sample.bmp"; /* Sample image */
}
fprintf(stderr, "Loading picture: %s\n", bmpfile);
picture = SDL_LoadBMP(bmpfile);
View
2 test/testwm.c
@@ -387,7 +387,7 @@ int main(int argc, char *argv[])
}
/* Set the icon -- this must be done before the first mode set */
- icon = LoadIconSurface("icon.bmp", &icon_mask);
+ icon = LoadIconSurface("app/native/icon.bmp", &icon_mask);
if ( icon != NULL ) {
SDL_WM_SetIcon(icon, icon_mask);
}
View
2 test/threadwin.c
@@ -272,7 +272,7 @@ int main(int argc, char *argv[])
}
/* Set the icon -- this must be done before the first mode set */
- icon = LoadIconSurface("icon.bmp", &icon_mask);
+ icon = LoadIconSurface("app/native/icon.bmp", &icon_mask);
if ( icon != NULL ) {
SDL_WM_SetIcon(icon, icon_mask);
}

0 comments on commit b19e657

Please sign in to comment.