Commit Graph

2595 Commits

Author SHA1 Message Date
Phillip Stephens 2a60b9fbf4
Update submodules, minor fixes 2019-08-25 18:29:25 -07:00
Phillip Stephens f96ad00478 Update boo, deprecate OpenGL 2019-08-24 17:59:02 -07:00
Phillip Stephens d4e34e977f Update submdoules 2019-08-24 14:46:25 -07:00
Phillip Stephens f89e36de35 Fix discord link (the old one expired even though I set it to never expire, grrr) 2019-08-24 14:32:59 -07:00
Phillip Stephens 8e0802cdc8
Update submodules 2019-08-24 01:06:22 -07:00
Phillip Stephens 3d11596793
Merge pull request #47 from lioncash/bool
CPatterned: Correct use of bool in bitfield
2019-08-23 23:04:37 -07:00
Phillip Stephens 14e7ac9693 Merge pull request '#46' from lioncash/fwd 2019-08-23 23:02:09 -07:00
Phillip Stephens 4ac54f39cd Merge branch 'fwd' of https://github.com/lioncash/urde into lioncash-fwd 2019-08-23 20:43:15 -07:00
Lioncash fa608acb06 CPatterned: Correct use of bool in bitfield
This is incremented within PathFind(), however, because the type within
this bitfield is a bool, this can trigger compilation warnings (rightly
so). So we can make it a uint32_t to make it obvious that the
incrementing behavior is intended.
2019-08-23 22:26:07 -04:00
Lioncash 7f7a18a708 DataSpec/DNACommon: Resolve indirect includes where applicable
Avoids indirect inclusions where applicable and includes the necessary
headers as used by the interface. This way, it prevents code from
failing to compile due to changes in other header inclusions.
2019-08-23 22:03:03 -04:00
Phillip Stephens f2b551b89b Minor compile fixes, fix potential undefined behavior in CMDL.cpp 2019-08-23 17:09:21 -07:00
Phillip Stephens 2acc5c1fe5 Update hecl 2019-08-23 16:37:39 -07:00
Jack Andersen 52667b2069
Merge pull request #45 from lioncash/str
DNACommon: Replace platform-specific string conversion functions with standard facilities
2019-08-23 12:20:20 -10:00
Lioncash b064967de8 DNACommon: Replace platform-specific string conversion functions with standard facilities
These can be replaced with std::strtoull and std::wcstoull, eliminating
a platform-specific ifdef.
2019-08-23 14:27:00 -04:00
Phillip Stephens 9866bac443 Update jbus, initial CEnergyBall stub 2019-08-23 01:32:48 -07:00
Phillip Stephens 7b77e9ace9 Update status, add discord invite link 2019-08-22 18:42:47 -07:00
Phillip Stephens cbc8c22964 Update jbus 2019-08-22 18:36:40 -07:00
Phillip Stephens 71612509b6 Update hecl 2019-08-22 00:49:48 -07:00
Phillip Stephens bd97adc571 Update hecl 2019-08-20 19:35:37 -07:00
Phillip Stephens e855cbd902 Update hecl, fix CFlickerBat's targetable state being inverted 2019-08-20 06:58:13 -07:00
Phillip Stephens 0af829c79d Update submodules 2019-08-20 01:08:57 -07:00
Phillip Stephens 69e8a62e8c Update submodules 2019-08-20 00:34:58 -07:00
Phillip Stephens bbd074abd0 Update hecl 2019-08-19 23:11:28 -07:00
Phillip Stephens a41bd828e7 Update submodules 2019-08-18 18:49:54 -07:00
Phillip Stephens 44ea9e68ed Update submodules 2019-08-17 23:01:05 -07:00
Phillip Stephens 23c718fe18 Update submodules 2019-08-16 18:39:05 -07:00
Phillip Stephens 0c3ed33d74 Update submodules 2019-08-15 20:41:47 -07:00
Phillip Stephens 9a922de6c1 Update submodules 2019-08-15 16:09:05 -07:00
Phillip Stephens eaf5ba4b34 Update submodules 2019-08-15 08:41:25 -07:00
Phillip Stephens 3cbf5028cd Update submodules 2019-08-15 07:53:27 -07:00
Phillip Stephens d4b36699b7
Merge pull request #43 from lioncash/spec-const
RetroDataSpec: Make member functions const where applicable
2019-08-15 07:46:46 -07:00
Phillip Stephens b3837b675f
Merge pull request #44 from lioncash/fmt
RetroDataSpec: Use fmt::print where applicable
2019-08-15 07:46:36 -07:00
Lioncash 11098374a4 RetroDataSpec: Use fmt::print where applicable
Replaces uses of fprintf with fmt::print where applicable. For trivial
character insertion, we can make use of fputc instead of fprintf.
2019-08-14 22:44:49 -04:00
Lioncash 2517fac404 RetroDataSpec: Make member functions const where applicable
Marks member functions that don't modify instance state as const.
2019-08-14 22:25:15 -04:00
Phillip Stephens fa7785d024 Fix GetAreaFog 2019-08-14 12:56:46 -07:00
Phillip Stephens ea12a54a41
Merge pull request #42 from lioncash/const
Runtime: Make const/non-const getters have the same name
2019-08-14 12:47:52 -07:00
Lioncash afab3e0327 Runtime: Make const/non-const getters have the same name
Makes for a more consistent interface, as getters won't have different
names to remember based off whether or not they're const qualified.
2019-08-14 12:45:57 -04:00
Phillip Stephens 6760f78568 Update jbus 2019-08-14 07:12:09 -07:00
Phillip Stephens 5980d11df0 Update submodules 2019-08-14 06:52:46 -07:00
Phillip Stephens 2ace76e3d2
Merge pull request #41 from lioncash/const
RuntimeCommon: Use const on member functions where applicable
2019-08-14 06:36:27 -07:00
Phillip Stephens bab78f96a5
Merge pull request #40 from lioncash/constexpr
RetroTypes: Make types constexpr where applicable
2019-08-14 06:36:16 -07:00
Phillip Stephens 64489c7461
Merge pull request #39 from lioncash/bind
MP1: Migrate from std::bind to lambdas
2019-08-14 06:36:06 -07:00
Lioncash d3d629d405 RuntimeCommon: Use const on member functions where applicable
Adds missing const qualifiers on class member functions that don't
modify instance state.
2019-08-14 09:25:39 -04:00
Lioncash 1f8ed5af25 RetroTypes: Make types constexpr where applicable
These are generally used as basic tags and ID types, so these can have a
constexpr interface. This is particularly beneficial, given some of
these types are used in file-static lookup tables.

Without being constexpr, these type's constructors in that case are
technically runtime static constructors. While most compilers will
initialize the type at compile-time, this would be dependent on the
optimizer. By marking them constexpr, we allow it outright. It also
allows those arrays to be made constexpr as well.
2019-08-14 05:20:43 -04:00
Lioncash 8b7945e76f MP1: Migrate from std::bind to lambdas
Provides a more straightforward means of supplying custom behavior in
place. Lambdas also typically optimize better compared to std::bind
objects.
2019-08-14 04:55:21 -04:00
Phillip Stephens bade450431
Merge pull request #37 from lioncash/conversion
Runtime/Input/CFinalInput: Correct return value of AKey, ASpecialKey and AMouseButton
2019-08-14 01:05:05 -07:00
Phillip Stephens 38ac9c12ba
Merge pull request #38 from lioncash/options
Runtime/CGameOptions: Use std::array where applicable
2019-08-14 01:04:26 -07:00
Lioncash acb9ac92e7 Runtime/CGameOptions: Use std::array where applicable
Makes the data a little more strongly typed; preventing implicit
array->pointer decay. It also allows simplifying assignments within the
CGameState code.

While we're at it, we can also eliminate several instances of magic
numbers related to the array sizes throughout the code.
2019-08-14 03:24:00 -04:00
Lioncash 27a8274e3b Runtime/Input/CFinalInput: Make comparison operators const
While we're at it, we can also provide an inequality operator for
logical symmetry.
2019-08-14 02:11:50 -04:00
Lioncash e9e9de26b2 Runtime/Input/CFinalInput: Correct return value of AKey, ASpecialKey and AMouseButton
The other A-prefixed functions all return a float value, however these
are truncating float values to bool. We can amend this to prevent
potential compilation warnings.
2019-08-14 02:07:02 -04:00