Skip to content
Snippets Groups Projects
Commit cd56e8f9 authored by Freeyorp's avatar Freeyorp
Browse files

makemap.sed handling for direct output

This handles funky newlines and trims trailing junk, albeit in a not
particularly elegant way.
parent d1d8ac8b
No related branches found
No related tags found
No related merge requests found
......@@ -4,8 +4,8 @@
var map = function(){\
var map = {};\
var maps = {
/^Loading Maps/,/^Maps Loaded/ {
s/^Loading Maps \[\([0-9]\+\)\/[0-9]\+\]: data\\\(.*\)\.gat/ "\1": "\2",/p;
/^.\?Loading Maps/,/^.\?Maps Loaded/ {
s/^.\?Loading Maps \[\([0-9]\+\)\/[0-9]\+\]: data\\\(.*\)\.gat.*/ "\1": "\2",/p;
}
$i\
};\
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment