Darryl Pogue
992be55e69
Fix segfaults by making this a plString.
10 years ago
Adam Johnson
81ea5ef112
Tweak NetVaultNode::CopyFrom
...
- We now zero fields that are unused in the new copy
- Ensure that blob fields are deep copied (fix potential crashes)
10 years ago
Adam Johnson
352c9f9427
Don't assume vault strings are null-terminated
10 years ago
Adam Johnson
3b983bca8e
Convert vault tree printing to plString
...
After hacking the old to just barely use plString, I received some UTF-8
asserts. So, that seemed like a good excuse to convert the whole mess to
plString. Note that the output is now saved in VaultClient.log. This
should help with getting some of the chaos out of OLD_ASYNC_LOG.log
10 years ago
Adam Johnson
b9f747f046
Refactor NetVault Node
...
NetVaultNode now uses plStrings. I also took the liberty of removing code
that was really only useful in server contexts. Note that there is
absolutely no way this will compile at the moment. Future commits will fix
the other code to play nicely with this rewrite.
10 years ago
Adam Johnson
c384450236
Remove stale CSrvPackBuffer code
10 years ago
Joseph Davies
bb2ea46c69
Store plClient password using platform-specific credential storage.
...
- Removes old drive-based "cryptography" for stored passwords,
which often caused them to be invalidated when removable storage
on the system is used.
- Uses pfPasswordStore to store passwords.
- Uses the Windows Registry to store account/password preferences.
10 years ago
Adam Johnson
e8d317bd92
Replace port constants with a single port variable
...
- Remove really old deprecated constants
- Remove some Cyanic server code as well
10 years ago
Joseph Davies
9732a997c0
Removes remaining usage of Bink in main engine.
...
- Removes Bink headers.
- Remove usage of Bink movie layers in pfJournalBook (replacing it
with plLayerAVI in the interim).
- Removes Bink cmake.
Conflicts:
CMakeLists.txt
Sources/Plasma/Apps/plClient/plClient.cpp
Sources/Plasma/PubUtilLib/plPipeline/plBinkPlayer.h
10 years ago
Darryl Pogue
ccd5687e61
Fix pnUUID linking on OSX. Closes #451 .
10 years ago
Michael Hansen
085c00706c
Some fixes for Clang
10 years ago
Michael Hansen
094b0fe557
Move <algorithm> header out of HeadSpin.h
10 years ago
Michael Hansen
751d760772
Use standard (f)abs functions
10 years ago
Michael Hansen
1a987173d6
Use std::swap
10 years ago
Michael Hansen
72f18e8ebb
Complete the previous commit by also removing the inline min and max
...
functions defined in HeadSpin.h without breaking (3ds)Max compilation
10 years ago
Michael Hansen
e36220cca5
Use std::min and std::max
10 years ago
Michael Hansen
9d67b96837
Fix some errors and warnings when compiling with Clang
10 years ago
Michael Hansen
474b54396b
Reintroduce (and enforce use of) hsLockFor{Reading,Writing}
10 years ago
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
10 years ago
Michael Hansen
aee2f7f7ca
Make hsRefCnt atomic, and merge with hsAtomicRefCnt
10 years ago
Michael Hansen
5c6b6bbc7c
Fix the rest of the plString::Format calls
10 years ago
Michael Hansen
48ca0fde19
More plFormat -- some may make minor changes to certain debug output
...
(mostly regarding bools)
10 years ago
Michael Hansen
1debf8180b
Convert many of the now-deprecated plString::Format calls to plFormat
10 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).
10 years ago
Michael Hansen
2048b641d3
Take advantage of some custom formatter shortcuts
10 years ago
Michael Hansen
34b2eb1836
More std::atomic and friends
10 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.
10 years ago
Michael Hansen
d713a13dbe
Merge pnUtRef with hsRefCnt, and remove the former
10 years ago
Darryl Pogue
a3d90948b7
Fix some coverity and style issues in pnEncryption.
10 years ago
Adam Johnson
4e35dbf528
Fix ConsoleTrigger memory leak
10 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