mirror of
https://github.com/ZDoom/Raze.git
synced 2025-02-21 11:01:01 +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 "mapinfo.h"
|
||||||
#include "raze_music.h"
|
#include "raze_music.h"
|
||||||
#include "filesystem.h"
|
#include "filesystem.h"
|
||||||
|
@ -50,6 +51,15 @@ MapRecord* lastLevel; // Same here, for the last level.
|
||||||
unsigned int numUsedSlots;
|
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)
|
MapRecord *FindMapByName(const char *nm)
|
||||||
{
|
{
|
||||||
for (unsigned i = 0; i < numUsedSlots; i++)
|
for (unsigned i = 0; i < numUsedSlots; i++)
|
||||||
|
|
Loading…
Reference in a new issue