FWGS / xash3d

DEPRECATED in favor of https://github.com/FWGS/xash3d-fwgs. Only bugfixes are accepted.
https://xash.su
GNU General Public License v3.0
553 stars 109 forks source link

Simple map lister implementation (concommand: maps) & Small vs fixes #190

Closed fuzun closed 7 years ago

fuzun commented 8 years ago

Added a temporary map lister function until real one gets developed. (This is pretty decent for now.) It is not very good to put it in filesystem.c but it uses some private(static) filesystem functions.

Screenshot: https://vgy.me/yme5X3.png

&&&

Some vs warning fixes, should not bother anyone.

a1batross commented 8 years ago

Try to use FS_Search.

fuzun commented 8 years ago

FS_Search tries to look everywhere in gamedir? I saw it but did not use because it seem to be heavier at first.

mittorn commented 8 years ago

Something like:

FS_Search( va( "maps/*%s*.bsp", Cmd_Argv( 1 ) ), true );
fuzun commented 8 years ago

@a1batross @mittorn Is this approach better?

mittorn commented 8 years ago

Q_strncpy and other string functions in xash3d always adds '\0' to the end of string

fuzun commented 7 years ago

@mittorn Can you check the latest commit? Modify if you want and decide for implementation as it is becoming rotten as time passes.

Is there a similar command? Maybe an alias can be made instead of this.

a1batross commented 7 years ago

I think this can be merged.