`joy_listmapnames.c`

### What it is for
Generates a maplist.txt used by Kingpin servers to define a list of maps that players can vote on and play.
Recursively scans `.bsp` files and extracts the embedded map title/message string, then writes it to a text file along with the full file path.
This is useful when the BSP filename is not enough and you want the human-readable map name stored in the file.

### Usage
After compiling:
```bash
joy_listmapnames.exe [directory]
```

### Arguments
- `directory`  
  Optional. Directory to scan recursively. Defaults to the current working directory.

### How it works
For each `.bsp`, it:
1. Reads the whole file into memory.
2. Searches for the **last** occurrence of `"message"`.
3. Extracts the quoted string that follows.
4. Replaces literal `\n` sequences with four spaces.
5. Writes the result to `maplist.txt`.

### Output
Creates:
- `maplist.txt`

Each line contains:
- full BSP path
- extracted map title / message

### Notes
If the string is not found, it writes `Not found`.