The video file (sequences.wz) is now added to the search path.
It will find the video files in data/sequences.wz (the same location as the other .wz files that we use.) Thanks to per for the renaming of the file on GNA. fixes & closes ticket:322 backported from r6975 git-svn-id: https://warzone2100.svn.sourceforge.net/svnroot/warzone2100/trunk@6978 4a71c877-e1ca-e34f-864e-861f7616d084master
parent
509a618185
commit
c89229667b
14
src/init.c
14
src/init.c
|
@ -282,6 +282,10 @@ BOOL rebuildSearchPath( searchPathMode mode, BOOL force )
|
|||
sstrcat(tmpstr, "base.wz");
|
||||
PHYSFS_removeFromSearchPath( tmpstr );
|
||||
|
||||
// remove video search path as well
|
||||
sstrcpy(tmpstr, curSearchPath->path);
|
||||
sstrcat(tmpstr, "sequences.wz");
|
||||
PHYSFS_removeFromSearchPath( tmpstr );
|
||||
curSearchPath = curSearchPath->higherPriority;
|
||||
}
|
||||
break;
|
||||
|
@ -316,6 +320,11 @@ BOOL rebuildSearchPath( searchPathMode mode, BOOL force )
|
|||
sstrcat(tmpstr, "base.wz");
|
||||
PHYSFS_addToSearchPath( tmpstr, PHYSFS_APPEND );
|
||||
|
||||
// add the video file
|
||||
sstrcpy(tmpstr, curSearchPath->path);
|
||||
sstrcat(tmpstr, "sequences.wz");
|
||||
PHYSFS_addToSearchPath( tmpstr, PHYSFS_APPEND );
|
||||
|
||||
curSearchPath = curSearchPath->higherPriority;
|
||||
}
|
||||
break;
|
||||
|
@ -355,6 +364,11 @@ BOOL rebuildSearchPath( searchPathMode mode, BOOL force )
|
|||
sstrcat(tmpstr, "base.wz");
|
||||
PHYSFS_addToSearchPath( tmpstr, PHYSFS_APPEND );
|
||||
|
||||
// add the video file
|
||||
sstrcpy(tmpstr, curSearchPath->path);
|
||||
sstrcat(tmpstr, "sequences.wz");
|
||||
PHYSFS_addToSearchPath( tmpstr, PHYSFS_APPEND );
|
||||
|
||||
curSearchPath = curSearchPath->higherPriority;
|
||||
}
|
||||
break;
|
||||
|
|
Loading…
Reference in New Issue