mirror of
https://github.com/ZDoom/raze-gles.git
synced 2024-12-28 12:30:46 +00:00
- mapinfo.cpp: Create CCMD listmaps
to return map filenames.
This commit is contained in:
parent
bfed4e179b
commit
fcfeafdbe9
1 changed files with 10 additions and 0 deletions
|
@ -33,6 +33,7 @@
|
|||
**
|
||||
*/
|
||||
|
||||
#include "c_dispatch.h"
|
||||
#include "mapinfo.h"
|
||||
#include "raze_music.h"
|
||||
#include "filesystem.h"
|
||||
|
@ -50,6 +51,15 @@ MapRecord* lastLevel; // Same here, for the last level.
|
|||
unsigned int numUsedSlots;
|
||||
|
||||
|
||||
CCMD(listmaps)
|
||||
{
|
||||
for (unsigned int i = 0; i < numUsedSlots; i++)
|
||||
{
|
||||
Printf("%s\n", mapList[i].fileName.GetChars());
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
MapRecord *FindMapByName(const char *nm)
|
||||
{
|
||||
for (unsigned i = 0; i < numUsedSlots; i++)
|
||||
|
|
Loading…
Reference in a new issue