4827 Commits

Author SHA1 Message Date
UnknownShadow200
bcb54eb24b Live dangerously and avoid curl_easy_reset altogether 2020-05-24 11:53:52 +10:00
UnknownShadow200
4ac2b8b285 Fix OpenGL 1.1 build not compiling 2020-05-24 10:32:38 +10:00
UnknownShadow200
44c348197c Fix <10.4 macOS dynamic symbol getting, also support libcurl versions which lack curl_easy_strerror 2020-05-24 09:06:00 +10:00
UnknownShadow200
bbd4204b53 Add dynamic library loading support for macOS < 10.4 2020-05-24 00:43:34 +10:00
UnknownShadow200
cde5604ff8 Fix not compiling on macOS/linux 2020-05-23 23:19:48 +10:00
UnknownShadow200
62ae7da667 Add support for loading libcurl dynamically 2020-05-22 21:41:58 +10:00
UnknownShadow200
e22cb847fe combine some of OpenAL dynamic loading code 2020-05-22 21:07:59 +10:00
UnknownShadow200
ab007f8147 Simplify OpenAL function loading 2020-05-21 20:30:37 +10:00
UnknownShadow200
dd0635eec7 Move OpenAL backend code to before WinMM backend
This makes it easy to compile windows backend to use OpenAL instead of Windows. Now just need to do -DCC_BUILD_OPENAL instead of having to go through CC_BUILD_MANUAL process
2020-05-21 20:21:43 +10:00
UnknownShadow200
5e92790a3b Just directly include the OpenAL functions used in the code instead of relying on system headers
This means you don't need toinstall openal-dev packages on unix systems anymore, and don't need to link to OpenAL framework on macOS
2020-05-21 20:07:06 +10:00
UnknownShadow200
b65d8ab050 Use stopwatch instead of utc time for debug loading time messages 2020-05-21 17:30:46 +10:00
UnknownShadow200
0ca8c34c29 Add Stopwatch_Elapsedmilliseconds to API 2020-05-21 09:01:48 +10:00
UnknownShadow200
29347d7235 Get rid of Convert_ParseUInt64 from TextureCache_GetLastModified
Also saves ~200 lines in web client
2020-05-20 23:31:56 +10:00
UnknownShadow200
007473c9dc use CC_BUILD_MINFILES to disable chat/crash log code, instead of hardcoding to CC_BUILD_WEB
Also avoid referencing DateTime_CurrentLocal and related code in web client now
2020-05-20 20:45:02 +10:00
UnknownShadow200
19f1ff3aa7 Change Updater_GetBuildTime/SetNewBuildTime to use unix timestamp instead of milliseconds since 1/1/0001 timestamp 2020-05-20 18:30:44 +10:00
UnknownShadow200
1095418d41 Rename File_SetModifiedTime to Updater_SetNewBuildTime and remove from plugin api 2020-05-20 17:22:26 +10:00
UnknownShadow200
dc77f88046
Merge pull request #657 from UnknownShadow200/ALRewrite
OpenAL rewrite
2020-05-20 00:19:40 +10:00
UnknownShadow200
7b61cebb83 Fix not compiling for macOS 2020-05-20 00:03:43 +10:00
UnknownShadow200
01cc351be6 Use correct libopenal so name for OpenBSD 2020-05-19 23:28:56 +10:00
UnknownShadow200
3bc5457f87 Check the XInput version returned by XIQueryVersion is actually 2.2 or higher
It's possible for this to return Success even though the supported version is actually less than 2.2
2020-05-19 22:44:36 +10:00
UnknownShadow200
89541ef72b Remove -lopenal from compilation flags 2020-05-19 21:01:09 +10:00
UnknownShadow200
9b4f4f2c18 Attempt to re-load OpenAL dynamically if user later tries to set sound/music volume and openal failed to load initially
This means if you start the game with sounds/music enabled and get the warning of 'failed to load openal', then proceed to install openal, then enable sounds/music, sounds/music will start playing now.
2020-05-19 20:01:01 +10:00
UnknownShadow200
0b67f6be62 Load OpenAL library dynamically
That way the game will still start even if OpenAL library is missing. Not really an issue with macOS but tends to be an issue with some linux distributions.
2020-05-17 15:43:11 +10:00
UnknownShadow200
88994cdcc7 Don't crash the game if initing OpenAL fails 2020-05-17 12:54:26 +10:00
UnknownShadow200
0a461e2e4e Simplify openal context management, make it compile on windows too 2020-05-17 12:41:28 +10:00
UnknownShadow200
457e10ebb6 Show a better message when unable to create backbuffer or depth format for direct3d9 backend 2020-05-16 00:50:44 +10:00
UnknownShadow200
2d5885577b Remove old Gui_Add and rename Gui_Replace to Gui_Add 2020-05-14 22:05:18 +10:00
UnknownShadow200
541c94dcab Expose Gui_Add/Remove/Replace to plugins 2020-05-14 12:15:38 +10:00
UnknownShadow200
e4bdf50236 fix if you are disconnected partway during map loading, the memory allocated for partially loaded map blocks is leaked 2020-05-13 21:46:49 +10:00
UnknownShadow200
dfed25b8f8 Make Protocol a component 2020-05-13 21:33:46 +10:00
UnknownShadow200
d04287d288 Disconnect instead of crashing game if server sends invalid GZIP header for map data 2020-05-12 17:43:16 +10:00
UnknownShadow200
37d9fb5835 minor style cleanup 2020-05-11 22:53:25 +10:00
UnknownShadow200
5ac5b79aa7 Day 481 of removing unused freetype code
Remove the unused Sfnt table stuff
2020-05-09 16:50:31 +10:00
UnknownShadow200
96676fb374 Minor style fixes 2020-05-09 14:42:01 +10:00
UnknownShadow200
8d6bce32ff
Merge pull request #655 from UnknownShadow200/GfxFixup
Use raw struct instead of typedefs for vertex structs
2020-05-09 11:07:20 +10:00
UnknownShadow200
bae2b9931c Fix PNG images which had some garbage data in IDAT chunk after compressed image data not loading (Thanks goodly) 2020-05-07 22:28:55 +10:00
UnknownShadow200
60f0668b5a Release 1.1.6 1.1.6 2020-05-07 11:32:59 +10:00
UnknownShadow200
3aa69c888a If we fail to init any system fonts in Drawer2D_MakeFont, immediately abort the client.
Otherwise just end up crashing from null pointer elsewhere
2020-05-07 10:14:37 +10:00
UnknownShadow200
90b94409af Add libxi-dev to readme 2020-05-07 00:35:44 +10:00
UnknownShadow200
3db470f106 Fix almost all sounds not downloading properly and music being slightly truncated
Broken for the past 3 months. Whooooooooooooops.
2020-05-07 00:22:49 +10:00
UnknownShadow200
71efc34d2f Cast result of Gfx_CreateAndLockVb for better C++ compatibility 2020-05-06 22:50:26 +10:00
UnknownShadow200
9924ba2a04 Get rid of VertexStructs.h and fixup some includes 2020-05-06 22:41:16 +10:00
UnknownShadow200
354884a80b Get rid of usages of VertexP3fT2fC4b/P3fC4b typedef, just use raw struct 2020-05-06 22:31:57 +10:00
UnknownShadow200
64a968237c Phase 1 of renaming VertexP3fT2fC4b/P3fC4b to VertexTextured/Coloured 2020-05-06 22:08:06 +10:00
UnknownShadow200
a092b86ac8 better c89 compatibility 2020-05-06 21:48:26 +10:00
UnknownShadow200
b6b200d118 Add missing compile instructions for dragonfly bsd to main readme
Also rename macos app bundle identifier from 'com.classicube.game' to 'com.classicube.mac'
2020-05-06 16:36:55 +10:00
UnknownShadow200
d949b5b34e Redesign DynamicLib api to return void* directly
The 'returning cc_result' was rather useless, since it only returned an error code if lib/symbol was non-NULL, and that error code only even made sense on Windows. So instead for Windows, DynamicLib_DescribeError does the call to GetLastError()
2020-05-06 12:20:12 +10:00
UnknownShadow200
606a6eb123 Add dragonflybsd OS detection, and to makefile
I just treat it the same as FreeBSD
2020-05-05 20:05:40 +10:00
UnknownShadow200
80c78653bd day 394 of removing unused freetype code 2020-05-05 00:35:28 +10:00
UnknownShadow200
f6b6c5d2f2 Get rid of some of commented out OLD_ENGINE code 2020-05-03 23:16:32 +10:00