Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
freebsd
GitHub Repository: freebsd/freebsd-ports-kde
Path: blob/main/games/0verkill/files/patch-sprite.c
16461 views
1
--- sprite.c.orig 2001-12-15 20:51:53.000000000 +0300
2
+++ sprite.c 2013-11-17 13:00:40.184048213 +0400
3
@@ -2,6 +2,7 @@
4
#include <ctype.h>
5
#include <stdlib.h>
6
#include <stdio.h>
7
+#include <unistd.h>
8
9
#ifndef WIN32
10
#include "config.h"
11
@@ -188,6 +189,14 @@
12
13
if (!(f=fopen(filename,"rb")))
14
{
15
+ chdir(DATA_PATH);
16
+ }
17
+ if (!(f=fopen(filename,"rb")))
18
+ {
19
+ chdir(DATA_PATH "/../");
20
+ }
21
+ if (!(f=fopen(filename,"rb")))
22
+ {
23
unsigned char msg[256];
24
snprintf(msg,256,"Error opening file \"%s\"!\n",filename);
25
ERROR(msg);
26
27