mirror of
https://github.com/DrBeef/ioq3quest.git
synced 2025-02-18 10:01:28 +00:00
Make LCC path resolution more robust
This commit is contained in:
parent
c0d797f308
commit
909ab13aeb
1 changed files with 4 additions and 1 deletions
|
@ -38,7 +38,10 @@ void UpdatePaths( const char *lccBinary )
|
||||||
|
|
||||||
strncpy( basepath, lccBinary, basepathsz );
|
strncpy( basepath, lccBinary, basepathsz );
|
||||||
basepath[basepathsz] = 0;
|
basepath[basepathsz] = 0;
|
||||||
p = strrchr( basepath, PATH_SEP );
|
p = strrchr( basepath, '/' );
|
||||||
|
|
||||||
|
if( !p )
|
||||||
|
p = strrchr( basepath, '\\' );
|
||||||
|
|
||||||
if( p )
|
if( p )
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue