Registration of the bfbc2:// protocol is now complete. Now on to the real part of the program. I also found a chunk of C# code that will bind to the win32 INI parsing functions, since .NET doesn’t have something built in for it.
The next step is input validation. Here’s a sample server string: 3363010643,b652b484-4188-42ea-8885-50fc4991af5b,Reddit Unofficial Gaming Community – Chicago;
As far as I can tell, the format for the server string is three fields separated by commas:
My current goal is to write a regular expression to match this format, and validate incoming input with it. It’s not a particularly challenging goal, but it will take time and will undoubtedly be a fairly ugly “write-only” regexp that nobody (including my future self) will understand.
After input is validated, I simply need to parse the ini file, check that the input is not already in the user’s list, and insert the new server. Not unreasonable to think I’d be done the basic functionality of this program by the end of the week.
Comments (0)No comments yet.
RSS feed for comments on this post. TrackBack URL