Closed cpiernikowski closed 3 years ago
Don't mind the CI, looks unrelated.
What's the use-case for this?
While playing HLKZ i often found myself saving map names in notepad to play them later, thought it might be useful for kz players.
I've made the file open in read/write mode as requested. If the file doesn't exist it gets created by calling fopen() in append mode, if the file didn't exist before it doesn't need to be checked for the presence of the map name. Also, map names are now compared without the \n.
Just a suggestion, perhaps call it "writemap" so that it would be consistent with other commands such as writecfg, writeid, writeip?
Do you think it would be more suitable to write the map name to a .cfg file?
Do you think it would be more suitable to write the map name to a .cfg file?
No, I think .txt is perfectly fine.
Thanks!
Added savemap command that writes the current map name to a .txt file, mainly intended for HLKZ.