X-Git-Url: https://harrygodden.com/git/?p=csRadar.git;a=blobdiff_plain;f=vfilesys.h;h=fc4cec805886c749f37df2cdadb29f5677eeaae3;hp=be7e319ed39e9b3904caa3dd3d72946c2db1ffb3;hb=HEAD;hpb=8382aed7f0cdc38bc5c58832d4a15277cf56d4be;ds=sidebyside diff --git a/vfilesys.h b/vfilesys.h index be7e319..fc4cec8 100644 --- a/vfilesys.h +++ b/vfilesys.h @@ -43,12 +43,11 @@ void fs_set_gameinfo( const char *path ) // Set gamedir strcpy( fs->gamedir, path ); - csr_path_winunix( fs->gamedir ); - *csr_findext( fs->gamedir, '/' ) = 0x00; + csr_downlvl( fs->gamedir ); // Set exe dir strcpy( fs->exedir, fs->gamedir ); - strcat( fs->exedir, "../" ); + csr_downlvl( fs->exedir ); // Get all search paths from file vdf_node *search_paths = vdf_next(vdf_next(vdf_next( info, "GameInfo", NULL ), "FileSystem", NULL ), "SearchPaths", NULL ); @@ -94,7 +93,7 @@ void fs_set_gameinfo( const char *path ) if( !fs->vpk ) { - log_error( "Could not locate pak01_dir.vpk in %i searchpaths. Stock models will not load!", csr_sb_count( fs->searchpaths ) ); + log_error( "Could not locate pak01_dir.vpk in %i searchpaths. Stock models will not load!\n", csr_sb_count( fs->searchpaths ) ); } log_info( "fs_info:\n" );