Joshua Scoggins
7f682180f3
Use SERIOUS_MHZ envvar for the time being
2016-04-20 19:24:51 -07:00
Joshua Scoggins
dbd896b58d
Use the platform independent version of ReadTSC
...
- If I use the gnu inline version, the game runs way too fast on my cpu due to
frequency scaling (I think).
2016-04-20 19:06:02 -07:00
Joshua Scoggins
1b873d3ab4
Bool's must be 32-bits wide
2016-04-20 18:50:36 -07:00
Joshua Scoggins
a4ca331de9
Added some more todos
2016-04-18 00:13:30 -07:00
Joshua Scoggins
f8cb52f8ad
Delete an unused include
2016-04-17 23:50:00 -07:00
Joshua Scoggins
a8c22df784
Forgot to write Engine to disk :(
2016-04-17 23:49:18 -07:00
Joshua Scoggins
2d8a4df68c
Add the system specific include file
2016-04-17 23:49:02 -07:00
Joshua Scoggins
0c847ab479
Move system specific includes out to a separate file
2016-04-17 23:48:44 -07:00
Joshua Scoggins
8b8ec1f39a
Add some C++11 features into Types.h since C++11 is so cool :D
2016-04-17 23:30:48 -07:00
Joshua Scoggins
c8ab519b77
More big endian targets to detect
2016-04-17 23:26:33 -07:00
Joshua Scoggins
42b2822414
More todo's
2016-04-17 23:20:59 -07:00
Joshua Scoggins
35955d20ba
use stdint.h instead of courage in Types.h
2016-04-17 23:18:23 -07:00
Joshua Scoggins
5b2933e217
Defined USE_PORTABLE_C when we can't figure out the platform
2016-04-17 23:06:49 -07:00
Joshua Scoggins
535832668f
Fixed a broken function call
2016-04-17 23:04:12 -07:00
Joshua Scoggins
e5c0e4f3f4
Add better platform detection abilities
2016-04-17 23:02:49 -07:00
Joshua Scoggins
e82ad0c131
Move system specific deinit to a separate function for now
2016-04-17 23:02:39 -07:00
Joshua Scoggins
b221d5fce2
Make it so that anything system specific is not in SE_InitEngine
2016-04-17 22:53:31 -07:00
Joshua Scoggins
a3c5d30f21
Move the "please abstract" seconds to separate static functions for now
2016-04-17 22:49:58 -07:00
Joshua Scoggins
21d4aec7f7
Follow coding conventions
2016-04-17 22:40:08 -07:00
Joshua Scoggins
12e8b991b3
Move the platform identification code out of SE_InitEngine to PlatformIdentification
2016-04-17 22:39:19 -07:00
Daniel Gibson
b934fa1945
Increase SDL soundbuffer for smoother sound playback
...
before it sounded shitty on my system, no it sounds good.
2016-04-17 01:07:14 +02:00
Daniel Gibson
24dcb9cc4f
Don't #include <malloc.h> on Linux, only on Windows
...
Linux, FreeBSD and OSX should use stdlib.h instead.
2016-04-17 01:06:39 +02:00
Ryan C. Gordon
dc2c869cfc
Merge pull request #24 from ptitSeb/master
...
More OpenPandora support (special keymap) and optionnal Multi-Threading.
2016-04-15 14:52:56 -04:00
Yamagi Burmeister
0e672b866e
Determine CPU speed on FreeBSD
2016-04-13 19:24:51 +02:00
ptitSeb
cd2a586a9e
Better #if condition, and add a warning to be better checked latter
2016-04-13 08:21:50 +02:00
ptitSeb
9678ec3e58
Enabled Multi-Threading (as an option) + OpenPandora specific changes (for Shoulder As Mouse Buttons)
2016-04-12 22:29:39 +02:00
Yamagi Burmeister
d1d9c8d094
There's no malloc.h on FreeBSD.
...
Like in OS X malloc() is part of stdlib.h.
2016-04-12 19:27:52 +02:00
Ryan C. Gordon
df6199de70
Merge pull request #19 from rcgordon/sdl2-port
...
Sdl2 port
2016-04-12 01:38:05 -04:00
Ryan C. Gordon
a0595204d4
Fixed what appears to be an uninitialized memory access.
...
This appears to fix crashes in 64-bit Linux builds. Might all be luck, though.
2016-04-12 01:27:40 -04:00
Ryan C. Gordon
67e940def8
Merge pull request #17 from RocketersAlex/linux-port
...
GameAgent - list servers bugfix.
2016-04-12 00:12:51 -04:00
RocketersAlex
dd0ad84385
GameAgent - list servers bugfix (update)
2016-04-12 04:10:43 +03:00
RocketersAlex
eeebba11dc
GameAgent - list servers bugfix
2016-04-12 04:03:25 +03:00
ptitSeb
dfe262b619
Don't pump SDL Event in GetInput, or they will be missing in SeriousSam.cpp:SubMain(...)
2016-04-11 08:32:38 +02:00
Ryan C. Gordon
02af656d1c
Whoops, forgot to actually enumerate physical display resolutions.
2016-04-10 00:54:45 -04:00
ptitSeb
cb039e972f
Remove some Float Divide to use Integer and Shift in C Portable helper function on LayerMixer
2016-04-09 23:57:58 +02:00
ptitSeb
98ebac941a
Change CTString.Match to treat backslashes as slash (fixes Netrisca categories for new messages)
2016-04-09 14:15:33 +02:00
ptitSeb
87a67eccf5
Fixed Portable C versio of ShadowMap Layer Mixer
2016-04-09 13:20:13 +02:00
Ryan C. Gordon
6ce0b9b27e
First attempt at a port to SDL2. Untested!
2016-04-09 02:18:57 -04:00
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
ptitSeb
f37df71029
Float fest\!
2016-04-07 18:13:50 +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
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
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