Michael Hansen
b774548066
Simplify plDispatch mutexes a bit
10 years ago
Michael Hansen
2947acb2c8
Replace hsMutex with std::mutex
10 years ago
Darryl Pogue
f5b2bddbb2
Always use hsTimer for profile stats.
...
This fixes the weird flickering and inaccurate numbers that were showing up on Windows.
10 years ago
Darryl Pogue
a0da984cdc
Work towards killing TimeGetMs.
...
Only remaining uses are in pnAsyncCore stuff, and I'm not touching that
until the std::thread merge is figured out.
10 years ago
Darryl Pogue
a3ae4201a2
Template-ize hsTimer return values.
10 years ago
Darryl Pogue
5b0652cb7e
std::chrono-ize hsTimer.
10 years ago
Darryl Pogue
6fb7090eed
Remove unused pnUtTime functions.
10 years ago
Michael Hansen
f93b37e152
Switch plFormat's accumulator to a plStringStream for better performance
11 years ago
Michael Hansen
aee2f7f7ca
Make hsRefCnt atomic, and merge with hsAtomicRefCnt
11 years ago
Michael Hansen
5c6b6bbc7c
Fix the rest of the plString::Format calls
11 years ago
Michael Hansen
48ca0fde19
More plFormat -- some may make minor changes to certain debug output
...
(mostly regarding bools)
11 years ago
Michael Hansen
1debf8180b
Convert many of the now-deprecated plString::Format calls to plFormat
11 years ago
Michael Hansen
d8c3769143
Fix it for standards-complient compilers (GCC/Clang).
...
Unfortunately, this means that all formatters must be declared in the
same place now, as they must be declared BEFORE the template which uses
them is declared (not just before it was instantiated, which MSVC allows).
11 years ago
Michael Hansen
2048b641d3
Take advantage of some custom formatter shortcuts
11 years ago
Michael Hansen
34b2eb1836
More std::atomic and friends
11 years ago
Michael Hansen
23a071860e
pnUtRef started at zero refs instead of one, and this is simpler
...
than finding and removing all the extra Ref() calls.
11 years ago
Michael Hansen
d713a13dbe
Merge pnUtRef with hsRefCnt, and remove the former
11 years ago
Darryl Pogue
a3d90948b7
Fix some coverity and style issues in pnEncryption.
11 years ago
Adam Johnson
4e35dbf528
Fix ConsoleTrigger memory leak
11 years ago
Christian Walther
8c5286400a
Use premultiplied alpha for plDynamicTextMaps on GUI controls.
...
This fixes the irregular dark fringes around light text when not exactly pixel-aligned that are caused by independent interpolation of color and alpha. It also makes calculations simpler for things to come.
11 years ago
Michael Hansen
a58e9c643c
Clean up some warnings, and make the CRT ones more relevant
11 years ago
Darryl Pogue
a1e3fa6faf
Various MinGW compile fixes.
11 years ago
Michael Hansen
d7fdf10455
Convert ReadSafe(W)String* to the plString variants, and remove the now
...
unneeded _TEMP variants. All safe strings read from hsStreams are
now plStringified :)
11 years ago
Michael Hansen
ef04cfcf84
Age Link info names => plString
11 years ago
Florian Meißner
b0bffa0b5d
Allow setting the G values for the servers in the server.ini
...
Setting these values is optional. If they are not set in the ini file, default values will be used. This way, we don't have to change all our ini files.
11 years ago
Michael Hansen
0c1783b2f3
plGenericVar => plString
...
- Also fixes a bug in plGenericType::CopyFrom, where doubles would get
only half copied (and therefore become corrupt)
11 years ago
Michael Hansen
a783642515
Python file names and SynchedObj SDL state names => plString
11 years ago
Michael Hansen
ec70590c5b
proVariableEventData name => plString
11 years ago
Adam Johnson
88a60f04f6
Inline plKey::operator==
11 years ago
Florian Meißner
7ca81ba626
Implement a plLoadClothingMsg as a clone loading trigger
11 years ago
Darryl Pogue
7f3ba3b106
Required link libraries for pnNetCommon.
...
Allows it to build and link properly under gcc/clang.
11 years ago
Adam Johnson
3299267976
Integrate SecurePreloader into pfPatcher
11 years ago
Adam Johnson
c3ce9a07ab
Another decimal place in the profiling display
...
And Hoikas said, "I cannot tell a difference in the skinning times on my
not-crappy computer with only a tenth of a millisecond resolution." So we
now have hundredth of a millisecond in the profiling display. These are
the kinds of problems you have when developing with a machine that doesn't
suck. It would be nice if players didn't try to run the game on machines
from before the exctinction event that ended the Permian era.
12 years ago
Adam Johnson
09f9380073
Only validate FixedKeys in debug builds
12 years ago
Adam Johnson
1142d8d340
RefreshFOV camera command
12 years ago
Darryl Pogue
9e8131f73b
Fix return values for Read_LCS & Write_LCS.
12 years ago
Darryl Pogue
2a578d3d35
Fix 64-bit *nix compilation of pnNetProtocol.
12 years ago
Darryl Pogue
e4af3aff16
time.h -> ctime
12 years ago
Darryl Pogue
b01aab4a39
Standardize on C++ headers.
...
Also removes a bunch of duplicate #includes of stuff that's already
pulled in by HeadSpin.h.
12 years ago
Michael Hansen
cc54fb07be
Finish deprecation of pnUtPath
12 years ago
Michael Hansen
6e564476b7
Deprecate plFileUtils and parts of pnUtPath
12 years ago
Michael Hansen
f86b549293
Re-define nil as nullptr, cleaning up some potential issues along the way
12 years ago
Adam Johnson
f664e8b9f5
Refactor RegistryKeyList
...
This is in preparation for page patching. The old code kept dynamic
(programatically created) and serialized keys separate. This had the
potential to reorder the key list during the application of a patch.
This is separate from the prp-patches branch to facillitate review.
12 years ago
Michael Hansen
6f6ade2636
Replace hsStream::Open duplicated methods everywhere with a single plFileName interface
12 years ago
Darryl Pogue
5162341852
Re-add CoreLib as a library to pnEncryption.
12 years ago
Adam Johnson
795babd6aa
Fix issues from review
...
- Delete the TypeFilter pointers
12 years ago
Adam Johnson
b4f6ccaa88
Fix the "Crash on Exit" bug
...
We were throwing away the Dispatcher before all the keys (namely, leaked
keys) were unloaded. See the comment in plResManager for more details.
12 years ago
Michael Hansen
f980f022dd
Replace pnProduct with a (very) thin CoreLib plProduct wrapper around CMake-defined product ID values
12 years ago
Michael Hansen
58a8034eb7
Fixes from review by @Hoikas
12 years ago
Michael Hansen
2382cebd11
Fix some plString vararg parameters in normally-disabled code
12 years ago