Closed dgelessus closed 11 months ago
(I could move it into CoreLib, but I don't want more weird string functions implicitly pulled in everywhere...)
CoreLib is where I had begrudgingly settled on StrCopy
landing when I thought about doing this change myself.
Part of me would like to see plEncryption turned into something more like plRC4Encryption (and clean it up a bit to removed the unimplemented RSA code and maybe turn it into a class instance), but that could be work for another PR.
pnUtils is a pretty random mix of unrelated things. This PR cleans things up a bit by moving code to more appropriate places (plEncryption.h/.cpp into pnEncryption) and removing duplicate APIs (
TimeGetMs
replaced byhsTimer::GetMilliSeconds
).The only thing left in pnUtils now is the UTF-16
StrCopy
. I left that where it is for now, because it's not trivial to replace withST::string
or standard C++ APIs and it's still used in a couple of different places. (I could move it into CoreLib, but I don't want more weird string functions implicitly pulled in everywhere...)