Commit Graph

177 Commits

Author SHA1 Message Date
Brett Lawson
8aeea24d1b common: Added some platform-specific debugging functions. 2018-10-17 01:18:57 -07:00
James Benton
f4fe4a5f76 Rename ENUM_NAMESPACE_{BEG,END} to ENUM_NAMESPACE_{ENTER,EXIT}. 2018-10-11 22:21:13 +01:00
James Benton
bc20ee58ae Rename BITFIELD to BITFIELD_BEG. 2018-10-11 22:21:07 +01:00
James Benton
89bca06668 Rename CHECK_MEMBER_OFFSET_START to CHECK_MEMBER_OFFSET_BEG. 2018-10-11 22:21:02 +01:00
Brett Lawson
4b29a43a63 vulkan: Implemented a monsterous amount of rendering. 2018-09-29 04:50:58 -07:00
James Benton
63808f5dda common: Add char16_copy to strutils. 2018-09-16 14:48:13 +01:00
James Benton
5e427a336d Fix some cast warnings. 2018-09-12 09:51:28 +01:00
James Benton
b2fbf8a197 common: Remove format_string from strutils. 2018-09-12 09:50:37 +01:00
James Benton
ac2c43bd5f Add string_copy to common/strutils.h and use it instead of strncpy.
Avoids compiler warnings about strncpy_s.
2018-09-12 09:49:27 +01:00
James Benton
75e79d3211 common: Fix bitfield for signed enum types.
e.g. would complain about -1 not fitting in specified number of bits.
2018-09-12 07:35:40 +01:00
James Benton
1b4a195de2 common: Fix type conversions in platform_winapi_string. 2018-08-31 09:13:22 +01:00
James Benton
a1507305ec common: Use MultiByteToWideChar and WideCharToMultiByte for WinApi strings. 2018-08-25 19:30:12 +01:00
James Benton
06f70c8051 cmake: Add be2_ natvis to project. 2018-08-25 19:21:57 +01:00
James Benton
0042b972dc Delete old be_ structures.
These have been replaced by be2_
2018-08-25 19:21:57 +01:00
James Benton
96b92fe592 Update fixed_point library. 2018-08-25 19:21:57 +01:00
James Benton
ad05d9c801 Update fmtlib to 5.1.0 and spdlog to 1.1.0 2018-08-25 19:21:57 +01:00
James Benton
55bdaa21ba cafe/coreinit: Change stricmp to cross platform iequals. 2018-08-21 08:55:36 +01:00
James Benton
80f0c112ab common/platform/win_memory: Do not use global for mapped file views.
This could fuck up on interactions with unordered global destructors
being called.
2018-08-17 15:14:19 +01:00
James Benton
2066fe71e6 common: Add an explicit cast operator for bitfield types. 2018-08-13 14:25:17 +01:00
James Benton
3d6111e487 common: Use std::addressof in bit_cast. 2018-08-13 14:24:49 +01:00
James Benton
42a54bcfdd common: Change BOOL to int32_t. 2018-06-22 16:06:23 +01:00
James Benton
99b2e743f6 common: Fix atomicqueue::capacity. 2018-06-22 16:06:08 +01:00
James Benton
3ea3775561 common: Add align_check for non pointer types 2018-06-22 12:30:59 +01:00
James Benton
dc38e15474 common: Change FrameAllocator alignment arg to be size_t 2018-06-22 12:30:58 +01:00
James Benton
1a95e8cde3 common: Add an abort with provided stack trace to decaf_assert. 2018-06-22 12:30:58 +01:00
James Benton
394be7df04 common: Use MAX_SYM_NAME in platform_win_stacktrace 2018-06-22 12:30:58 +01:00
James Benton
45ff0ea740 cpu: Rework some be2_struct stuff.
Remove implicit cast from X_ptr <-> X_addr.
Change X_cast<T> to X_cast<T *> in order to support X_cast<X_addr>.
2018-06-22 12:30:57 +01:00
James Benton
534a670835 common: Add TeenyHeap default constructor and reset function. 2018-06-22 12:30:57 +01:00
James Benton
84859a5532 common: Add a single-producer single-consumer queue to AtomicQueue. 2018-06-22 12:30:57 +01:00
James Benton
debf0df92e common: Add FrameAllocator default constructor.
Also bool empty() and reset().
2018-06-22 12:30:48 +01:00
James Benton
3d32078e81 Start of new IOS emulation. 2018-06-22 12:30:44 +01:00
James Benton
e31909d5a5 Fix format_arg for BigEndianValue.
Because of the implicit BigEndianValue::operator Type(), we would trigger
fmtlib's ConvertToInt to see our type as convertible to int, which would
mean our custom format_arg was not actually called.
2017-09-28 17:50:51 +01:00
James Benton
fee19a5124 Revert "Start of new IOS emulation."
This was not meant to be committed to master.

This reverts commit 9eb1b3dbfb.
2017-09-20 16:22:42 +01:00
James Benton
9eb1b3dbfb Start of new IOS emulation. 2017-09-19 21:02:25 +01:00
James Benton
24f77c3994 common: Rename enumAsString to to_string.
More consistent with std::to_string and fmt::to_string.
2017-09-19 16:00:13 +01:00
James Benton
1308cabdc5 Change from implementing ostream<< to format_arg for fmtlib user types.
ostream operator<< always assumes no formatting, format_arg can properly
apply the specified formatting.
2017-09-19 15:42:29 +01:00
James Benton
df9d56aaa1 common: Do not print message when reserveMemory fails.
Failure is expected - this confuses users.
2017-09-19 12:40:33 +01:00
James Benton
96579a30d8 common: Change strutils begins_with and ends_with to take a string_view. 2017-09-19 12:40:28 +01:00
James Benton
7b7fc475cc Add ostream operators for common/enum, Address, BigEndianValue, Pointer.
These are used by fmt for string formatting.
2017-09-19 12:40:23 +01:00
James Benton
1793c456de Add libraries/fmt.
Move spdlog to use external fmt rather than packaged fmt.
2017-09-19 11:54:12 +01:00
James Benton
5ab4ce1e27 Some minor formatting changes. 2017-09-19 11:54:12 +01:00
James Benton
05379ebba3 common: Add align_check. 2017-09-19 11:54:12 +01:00
Michael DeGuzis
65acb72683 fix build on Debian 8 / Clang 5.0 [credit: VelocityRa] 2017-06-26 23:33:11 +01:00
James Benton
0ee6d0fcee common: Define flags operators in the flag namespace. 2017-06-26 16:12:31 +01:00
James Benton
0ed6ebc093 Add sci module for creating default system settings.
This is actually a real module but can only be found statically linked into
games and thus will never be imported by anything. But we can copy the Init
functions from SCI to setup the default values for system settings.
2017-06-23 00:22:17 +01:00
James Benton
11e8c8b4ca common: Add a TGA encoder. 2017-05-26 17:59:06 +01:00
James Benton
c5c44e7e0a libgpu: Fix LOD_BIAS and OFFSET_{X,Y,Z} fields to use fixed point integers. 2017-05-11 00:32:22 +01:00
James Benton
6a197daf98 platform: Add openMemoryMappedFile function for memory mapped file reading. 2017-05-02 22:28:20 +01:00
James
a90b1db913 Merge pull request #430 from achurch/sigbus-fix
posix: Use TMPDIR instead of shm_open for memory backing files.
2017-04-26 13:18:52 +01:00
James Benton
a7fa55f601 platform: Adjust some error message printing for platform_memory. 2017-04-26 11:52:09 +01:00