Ryan C. Gordon
284f6c63ca
Fixed a sizeof bug.
...
If you have...
void myfunc(char buf[16]) {
printf("%d\n", (int) sizeof (buf));
}
...this will print sizeof (char *) instead of 16, so this fixes a piece of
code that assumed the latter instead of the former.
2016-04-09 01:03:44 -04:00
Ryan C. Gordon
1f1291d2bc
Merge github.com:Croteam-Official/Serious-Engine
2016-04-07 12:05:25 -04:00
Ryan C. Gordon
749dc05fed
Merge pull request #13 from ptitSeb/master
...
Fixes some Memory Corruptions, in 64bits and/or using Portable C
2016-04-07 12:04:08 -04:00
ptitSeb
6cc2a36a34
Merge branch 'master' of https://github.com/ptitSeb/Serious-Engine
2016-04-07 15:20:20 +02:00
ptitSeb
6a2800e258
Preparing First Encounter (but it doesn't work for now)
2016-04-07 15:19:13 +02:00
ptitSeb
253df3ec46
A closing bracket seemed missplaced
2016-04-07 12:07:12 +02:00
ptitSeb
19bd3f733b
Use SDL constants for mouse buttons
2016-04-07 10:45:45 +02:00
ptitSeb
0c16613056
Fix a nasty typo
2016-04-07 09:10:09 +02:00
ptitSeb
3ec4d484e2
Fix for 64bits build
2016-04-07 09:09:51 +02:00
Ryan C. Gordon
239b9c7992
Patched to compile.
2016-04-07 00:21:28 -04:00
Alexander Pavlov
6b9ebc3ccb
Update GameAgent for Linuxport.
2016-04-06 23:31:08 -04:00
Ryan C. Gordon
d6800ca42a
Merge branch 'ptitSeb-master'
2016-04-06 23:28:22 -04:00
Ryan C. Gordon
e2e6f41582
Merge branch 'master' of git://github.com/ptitSeb/Serious-Engine into ptitSeb-master
...
Conflicts:
Sources/Engine/Math/Float.cpp
2016-04-06 23:27:55 -04:00
Ryan C. Gordon
9820436fbe
First pass at cleaning out 64-bit issues.
...
Touches a lot of code to remove long constants like "1L", so this patch is
large and ugly, but I think it makes all those Clamp() calls look nicer in
the long run.
Most of the game is 64-bit clean, since we can build without assembly code
now. I've marked the things that are obviously still wrong with STUBBED lines.
That being said: a 64-bit build can already run the demos mostly correctly,
so we're actually almost there!
There are a few obvious things that are obviously wrong, to be fixed.
2016-04-06 23:20:29 -04:00
Ryan C. Gordon
70f3f7fe35
Turned off an assert that reads past the start of an array.
...
It'll crash here anyway if that assertion would have triggered, I think.
2016-04-06 23:20:29 -04:00
ptitSeb
2ccc337898
The control87 is a fake one when using USE_PORTABLE_C, regardless the architecture
2016-04-06 22:45:02 +02:00
ptitSeb
efde059273
Getting paranoid with mixed integer / float operations
2016-04-06 22:45:01 +02:00
ptitSeb
ead5da376d
Cannot cast a Float to Unsigned integer directly on ARM, of sign will be lost, so double cast
2016-04-06 22:45:01 +02:00
Ryan C. Gordon
553dbe2c62
Deleted changelog autogenerated by Visual C++.
2016-04-06 15:42:40 -04:00
Ryan C. Gordon
6b248af4d0
Moved STUBBED where all platforms can see it, made it more robust.
2016-04-06 15:35:12 -04:00
Ryan C. Gordon
b42025bc9f
Unix basedir: Don't read past start of array if $PATH has an empty item.
2016-04-06 15:01:09 -04:00
Ryan C. Gordon
91827e7d2a
Define PLATFORM_PANDORA instead of PANDORA, to match other targets.
2016-04-06 13:40:08 -04:00
Ryan C. Gordon
22fb22ab27
Merge pull request #11 from ptitSeb/master
...
Portable C is useable now, plus a (beggining of) OpenPandora (arm processor) port
2016-04-06 13:03:10 -04:00
ptitSeb
7590c3ca04
GLES hardware doen't read depth, so I assume ARM based machine can'tt either
2016-04-06 16:30:39 +02:00
ptitSeb
b76bbc77d4
Fixed a typo
2016-04-06 14:15:05 +02:00
ptitSeb
4bfca131b8
gettimeofday is not reliable on PANDORA, so use clock_gettime instead
2016-04-06 13:56:26 +02:00
ptitSeb
ddb0e94ef2
Rename isMenuEnabled to isMenuEnabled_ to avoid a symbol collicion that (can) happens at runtime
2016-04-06 13:54:22 +02:00
ptitSeb
4757cbbd2b
Just to be safe, as casting +inf to integer gives 0xFFFFFFFF on x86 and 0x7FFFFFFF on arm
2016-04-06 13:52:10 +02:00
ptitSeb
c4ac41ed56
Added codepath for ARM here (simple copy of PPC version)
2016-04-06 13:49:12 +02:00
ptitSeb
b2fd42dc60
TREMOR function signatures
2016-04-06 13:48:32 +02:00
ptitSeb
8dd48b5cd8
Unstubbed the Portable C functions of LayerMixer
2016-04-06 13:47:10 +02:00
ptitSeb
af9d472619
Unstubbed the Dithered Portable C functions (ordered one unstested)
2016-04-06 13:46:26 +02:00
ptitSeb
73aab13a79
Try to fix the Portable C UploadTexture_OGL function
2016-04-06 13:44:36 +02:00
ptitSeb
8c03fccd64
Fixed the bsr Portable C function, the game start correctly now
2016-04-06 13:41:32 +02:00
ptitSeb
8c49b5f7a0
Unstubbed the Fog Portable C function
2016-04-06 13:40:56 +02:00
ptitSeb
2406f62c4b
Unstubbed the Color Portable C functions
2016-04-06 13:40:02 +02:00
ptitSeb
73ea5ca7d4
Case fixing of an include
2016-04-06 13:38:09 +02:00
ptitSeb
0252ff1b6c
ARM processor don't convert +inf to 0xFFFFFFFF like a x86 processor do
2016-04-06 13:37:07 +02:00
ptitSeb
f105e7225a
Unstubbed the portable C sound mixer
2016-04-06 13:35:58 +02:00
ptitSeb
4e9dee7763
I had issue with the autoincrement. I prefer some warning about void* math
2016-04-06 13:33:54 +02:00
ptitSeb
205d71eccc
Tremor can be used instead of Vorbis. Usefull for ARM based machines
2016-04-06 13:32:52 +02:00
ptitSeb
ebb70977ea
ASM is now an Option, and so is Pandora build. Tremor can be used instead of Vorbis, and the binary is rename to ssam to avoid collision in name for inplace compiling
2016-04-06 13:31:53 +02:00
Ryan C. Gordon
9581eeb02a
Let CMake file use a pre-built copy of ECC.
...
This help cross-compilation. You can do something like this now, to get a
native ECC that runs on the build machine, then build the rest for the
cross-compile target system:
rm -rf cmake-build-ecc
mkdir $_
cd $_
cmake ..
make ecc
cd ..
rm -rf cmake-build
mkdir $_
cd $_
cmake -DECC=/wherever/SeriousEngine/Sources/cmake-build-ecc/ecc ..
make
2016-04-05 12:06:18 -04:00
Ryan C. Gordon
3d07aec6cc
Fixed a typo in the README (thanks, "Gymnasiast"!).
2016-04-05 11:36:21 -04:00
SLAwww
8aa4b9658a
Fix typo
2016-04-05 14:34:00 +03:00
Ryan C. Gordon
7bbd5df8c0
Fixed a string-literal-to-char* conversion warning.
2016-04-04 22:42:06 -04:00
Ryan C. Gordon
c752e7cace
Fixed a mismerge.
...
(But I still need to figure out what I'm doing between SetAbsolutePath() and
whatever I had before...)
2016-04-04 22:40:30 -04:00
Steven Chamberlain
3adda272b7
Fix pointer truncation on 64-bit
...
Use size_t instead of int for arithmetic on pointers, to avoid
truncation on ILP64 architectures (like amd64).
2016-04-04 22:09:51 -04:00
Steven Chamberlain
26f1a33749
Building on GNU/kFreeBSD and possibly Hurd
...
* Only use ENOSR and ENOPKG if defined
ENOSR and ENOPKG are part of the POSIX optional STREAMS extension, and
are not available on most other platforms than GNU/Linux.
* Support building on other GNU platforms than Linux
Build for other GNU platforms the same way as Linux: this includes
CMAKE_SYSTEM_NAME "GNU" (GNU/Hurd) and "GNU/kFreeBSD" (GNU/kFreeBSD).
2016-04-04 20:34:34 -04:00
Ryan C. Gordon
5ba4bccabd
Backed out the splitting up of SeriousSam/Menu.cpp
2016-04-04 16:09:41 -04:00