Christian Walther
3c73b9f694
Fix KI daylight saving time calculation.
...
The previous implementation had the following bugs:
- DST was truncated to end of October
- DST start was off by one week in years where March 1st is a Monday
- DST start was off by one second (1:59:59 -> 2:00:00 -> 3:00:01 instead of the correct 1:59:59 -> 3:00:00 -> 3:00:01)
Tested against tzdata 2009g.
13 years ago
Adam Johnson
5beda0ab87
Implement client window flashing
...
This will be used in python to grab the player's attention on PMs or other
interesting events.
13 years ago
Adam Johnson
69970aba43
Fix the George W. Bush bug
...
Fix the DST hack to use the correct dates in post-2006 US and Canada. I
unfortunately could not find a decent cross-platform way to do this.
13 years ago
NadnerbD
3e15b5d318
Fixed memory leak, plString is nice
13 years ago
NadnerbD
c9b4c0a92d
NewKey can take a plString, so no need to convert to const char*
13 years ago
Darryl Pogue
404cd09f1c
Move plEncryption to pnEncryption.
...
--HG--
rename : Sources/Plasma/PubUtilLib/plEncryption/plChecksum.cpp => Sources/Plasma/NucleusLib/pnEncryption/plChecksum.cpp
rename : Sources/Plasma/PubUtilLib/plEncryption/plChecksum.h => Sources/Plasma/NucleusLib/pnEncryption/plChecksum.h
13 years ago
Darryl Pogue
f4878166d5
Don't use pnUtils for MD5 checksumming.
...
On the other hand, have we ever figured out exactly what this code is
supposed to do? Mark added it for something, but it's not really clear
what the purpose is.
13 years ago
Joseph Davies
036a1d38fc
Clean up python binding for image-loading functions.
13 years ago
Joseph Davies
3b22256085
Add python function glue to allow loading PNG images from disk.
13 years ago
Joseph Davies
08fa25a737
Fix a potential crash in pyVaultImageNode.
...
Fixes a crash which can occur when attempting to fetch
an unsupported image type.
13 years ago
Michael Hansen
ad66286a17
Fix several errors and warnings from GCC compilation
13 years ago
Michael Hansen
be4b0732d5
Fix string usage that was broken from enabling the Max plugin build
13 years ago
Darryl Pogue
f3b3b2a354
Fix the Py_ssize_t issues.
13 years ago
Adam Johnson
e2b9bba70c
ptStatusLog now supports unicode objects and string objects
13 years ago
Darryl Pogue
b5ff772f47
Fix pfPython to compile on Linux.
13 years ago
Adam Johnson
eeaae57cc3
Be less anal--use PyNumber instead of PyLong
13 years ago
Adam Johnson
a64b909f4f
Now all the kids can play with ConvertString (and some others)
13 years ago
Michael Hansen
e34414889f
Convert plUoid's object name to a plString
13 years ago
Adam Johnson
29064590c5
Add PyUnicode support to ptPlayer.__init__
13 years ago
Michael Hansen
442a733fbb
Add more temporary hack macros to help speed up conversion and testing
13 years ago
Michael Hansen
a1852ad385
Convert plUUID and its cascade of dependencies to plString
13 years ago
Darryl Pogue
f4ff65ccbc
Replace MemSet with memset.
13 years ago
Darryl Pogue
5013a978eb
Get rid of NEW(), TRACKED_NEW, and ZERO().
13 years ago
Darryl Pogue
8a3f0cfd5b
Get rid of DEL() and FREE() macros.
...
Part of CoreLibExe must die.
13 years ago
Adam Johnson
be26b145df
HeadSpin.h is now the core header.
...
Rearrange some things so such that low-level CoreLib headers aren't quite
so crazy. For higher level stuff, you still need to include the
appropriate header.
13 years ago
Adam Johnson
2f53a10fb6
Convert hsConfig defines to cmake -- fixes #93
13 years ago
Adam Johnson
e020651e4b
Eliminate hsScalar and hsFixed
...
Modern CPUs support floats just fine... hsFixed was crazy.
13 years ago
Adam Johnson
5027b5a4ac
Convert custom HeadSpin integer types to standard types from stdint.h
13 years ago
Adam Johnson
ec0aecd202
Make pyVault::RegisterOwnedAge a blocking operation
13 years ago
Adam Johnson
f45679a54f
Make pyVault::AddChronicleEntry a blocking operation to avoid a race
...
condition
13 years ago
Darryl Pogue
89e42ed361
Move plCreatableUUID somewhere less annoying.
13 years ago
Joseph Davies
29de5fbc07
Remove unused platform code (MacOS9, PS2, XBox).
13 years ago
Darryl Pogue
8a28ba9e89
Move plUUID to pnUUID.
...
--HG--
rename : Sources/Plasma/PubUtilLib/plUUID/plUUID.cpp => Sources/Plasma/NucleusLib/pnUUID/pnUUID.cpp
rename : Sources/Plasma/PubUtilLib/plUUID/plUUID.h => Sources/Plasma/NucleusLib/pnUUID/pnUUID.h
rename : Sources/Plasma/PubUtilLib/plUUID/plUUID_Unix.cpp => Sources/Plasma/NucleusLib/pnUUID/pnUUID_Unix.cpp
rename : Sources/Plasma/PubUtilLib/plUUID/plUUID_Win32.cpp => Sources/Plasma/NucleusLib/pnUUID/pnUUID_Win32.cpp
13 years ago
Joseph Davies
e462ef04b3
Fix Endian functions names in hsTypes and hsStream.
...
Function and macro names for endianness were previously vague,
and on big-endian systems entirely misleading. The names are
now properly descriptive of what they actually do.
13 years ago
CyanWorlds
eb2767a5f7
Open source re-licensing
13 years ago
Adam Johnson
e3c65ac817
Separate KeyEvents and KeyPresses
13 years ago
Darryl Pogue
8a6117358b
Various string/printf fixes.
13 years ago
Darryl Pogue
24ab78b3f3
Fix Python key map.
13 years ago
Darryl Pogue
d0d12d24c6
Const strings for Python function names.
13 years ago
Michael Hansen
4b7c744119
Fix compatibility with Python 2.3
13 years ago
Darryl Pogue
e6a625674f
Syntax fixes for FeatureLib.
13 years ago
Joseph Davies
b84bb5da99
Add Python function and glue for PNG saving.
13 years ago
Christian Walther
9adb8efd5d
Change the fSecs field of plUnifiedTime from UInt32 to time_t.
...
This fixes various date formatting problems when building on a system where time_t is 64-bit (e.g. Visual Studio 2010), and, as a bonus, extends the range past 2038 on such systems.
The wire protocol is left at 32-bit for now, we might change that to 64 when other reasons to break compatibility have accumulated.
14 years ago
Adam Johnson
03d1043c81
Fix for when Python gives us strings that aren't null terminated
14 years ago
Adam Johnson
99507d9e95
PtSendRTChat now accepts a unicode object
14 years ago
Adam Johnson
a29a7deda0
Use unicode for key events despite the fact that our current Plasma20 fonts only support latin-1
14 years ago
Branan Purvine-Riley
c5ceb00cbd
Add package import support to our PEP 302 hook
14 years ago
Bartek Bok
8271ba40d9
Bypass overeager optimization
14 years ago
Bartek Bok
eab59fca2d
Fix for ptMatrix44 getData and setData
14 years ago
Adam Johnson
b10b464070
Don't need to INCREF when we're only holding for the duration of the function
14 years ago