You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
24 lines
530 B
24 lines
530 B
--- a/sprite.c 2007-11-15 18:26:30.000000000 -0500
|
|
+++ b/sprite.c 2007-11-15 18:26:57.000000000 -0500
|
|
@@ -2,6 +2,7 @@
|
|
#include <ctype.h>
|
|
#include <stdlib.h>
|
|
#include <stdio.h>
|
|
+#include <unistd.h>
|
|
|
|
#ifndef WIN32
|
|
#include "config.h"
|
|
@@ -188,6 +189,12 @@
|
|
|
|
if (!(f=fopen(filename,"rb")))
|
|
{
|
|
+ chdir(DATA_PATH);
|
|
+ }
|
|
+ if (!(f=fopen(filename,"rb"))) {
|
|
+ chdir(DATA_PATH "/../");
|
|
+ }
|
|
+ if (!(f=fopen(filename,"rb"))) {
|
|
unsigned char msg[256];
|
|
snprintf(msg,256,"Error opening file \"%s\"!\n",filename);
|
|
ERROR(msg);
|