add embedded license information to all official maps

also add script to generate a summary map license file

new (undocumented) debug commands:
  loadmap <mapname>
    loads a map directly, easy to use from scripts

  debugline <filename> <text>
    writes text to file (no path names allowed)
This commit is contained in:
ac-stef
2016-07-30 01:47:30 +02:00
parent 0083c51b3b
commit 59d4f4d847
39 changed files with 56 additions and 0 deletions
+15
View File
@@ -1875,3 +1875,18 @@ void debugargs(char **args, int numargs)
}
COMMAND(debugargs, "v");
#ifndef STANDALONE
#ifdef _DEBUG
void debugline(char *fname, char *line) // print one line to a logfile
{
if(!multiplayer())
{
stream *f = openfile(behindpath(fname), "a");
if(f) f->printf("%s\n", line);
if(f) delete f;
}
}
COMMAND(debugline, "ss");
#endif
#endif