Commit graph

2271 commits

Author SHA1 Message Date
Clownacy
1898633602 Found a name for nameless_flag! 2020-04-16 15:28:57 +01:00
Clownacy
ff45da6a0e Mark a static function as static
Both the Linux and Mac debug data indicate this is static (they both
prefix static function names with an extra underscore)
2020-04-16 14:45:08 +01:00
Clownacy
8f49276d5e Note some not-so-authentic variable names 2020-04-16 14:44:53 +01:00
Clownacy
4c910dbee6 Correct variable name
I must have guessed this one, and not left a comment saying it was
fake... dammit.
2020-04-16 13:52:00 +01:00
Clownacy
8a9f70875c More authentic variable/function names 2020-04-16 13:48:36 +01:00
Clownacy
47740fe88d Note some weird code 2020-04-16 13:47:17 +01:00
Clownacy
b83b7f25fc Found the real name for DummiedOutLogFunction..? 2020-04-16 13:47:17 +01:00
Clownacy
b8c0581ee4 Found the original Config.cpp variable names
Thank you, Mac port...
2020-04-16 13:47:17 +01:00
Gabriel Ravier
99d4a6fbd4 CMakeLists: Added support for CMake 3.10.2
Signed-off-by: Gabriel Ravier <gabravier@gmail.com>
2020-04-16 11:20:53 +02:00
Gabriel Ravier
90476c3a3e CMakeLists: Change minimum CMake version from 3.12 to 3.10.2
Signed-off-by: Gabriel Ravier <gabravier@gmail.com>
2020-04-16 10:25:48 +02:00
Clownacy
6e3d90d3d1
Merge pull request #112 from GabrielRavier/accurateFixCrossBuild
Fix build for mingw cross-compilation
2020-04-15 23:31:07 +01:00
Gabriel Ravier
181ecc3ec2 CMakeLists: Reverted random comment change from 593315eb
Signed-off-by: Gabriel Ravier <gabravier@gmail.com>
2020-04-16 00:29:43 +02:00
Gabriel Ravier
593315eb53 CMakeLists: Made build work for cross-compile with mingw
Signed-off-by: Gabriel Ravier <gabravier@gmail.com>
2020-04-16 00:11:03 +02:00
Clownacy
6bd4e89f9d Update readme 2020-04-15 22:12:58 +01:00
Clownacy
c38a8aa857 Read files from SD/CSE2-portable on Wii U 2020-04-15 22:12:41 +01:00
Clownacy
763e4a9986 Vertically center screen on Wii U 2020-04-15 22:10:40 +01:00
Clownacy
a983417771 Update Wii U backend 2020-04-15 22:03:59 +01:00
Clownacy
be0c61018b Update SDL2 backend 2020-04-15 22:01:27 +01:00
Clownacy
8524d1e349 Change software renderer backend API 2020-04-15 21:59:23 +01:00
Clownacy
7ca33677f8 Remove some old junk 2020-04-15 21:52:13 +01:00
Clownacy
f2a82d09bd Remove unneeded #include 2020-04-15 20:37:10 +01:00
Clownacy
d7733004d0 Correct a BOOL 2020-04-15 20:32:49 +01:00
Clownacy
0653c20ba4 Merge branch 'accurate' into portable 2020-04-15 20:03:59 +01:00
Clownacy
624adbdab8 Remove junk widescreen code
This doesn't belong in here. Also, this code was overhauled in the
enhanced branch, so this version is useless.
2020-04-15 19:59:13 +01:00
Clownacy
c93ed6a014 Comment-out unused #include 2020-04-15 18:42:02 +01:00
Clownacy
3ffe5a083e Use fixed-size texture format
I recall reading that you should prefer these over the non-fixed size
2020-04-15 16:59:54 +01:00
Clownacy
073e62de46 Software renderer tweaks 2020-04-15 16:57:05 +01:00
Clownacy
aee4ce0866 Merge branch 'accurate' into portable 2020-04-15 03:16:27 +01:00
Clownacy
3a72dd6bee Add Wii U compilation instructions to readme 2020-04-15 02:38:38 +01:00
Clownacy
d9f62453a6 Remove a dead function prototype 2020-04-15 02:20:59 +01:00
Clownacy
b5eefd95f0 Change Wii U input to keyboard emulation
The keyboard API allows me to bind multiple buttons to the direction
keys, unlike the controller API. I probably need to rethink the
controller API at some point.
2020-04-15 02:16:13 +01:00
Clownacy
470a51219e Fix WiiU builds with LTO enabled
For some reason, LTO affects how `ReadVPAD` handles failure, causing
it to spam gamepad button inputs. With proper error-checking, this is
fixed.
2020-04-14 03:50:33 +01:00
Clownacy
38ea875e11 Add new backends to readme 2020-04-14 01:35:18 +01:00
Clownacy
6d53668bed Add Wii U platform backend
With this backend, CSE2 can run on the Wii U.

It's not ideal - it doesn't have its own renderer yet, so it just
uses the software renderer, and it only displays on the gamepad,
because drawing to the TV as well makes the game lag.

Also there's no sound.

Also the lack of input rebinding is annoying.
2020-04-14 00:31:13 +01:00
Clownacy
bcbb06f092 Fix a leftover printf 2020-04-14 00:29:52 +01:00
Clownacy
db0b2d0293 Add option to disable DoConfig
Needed for console ports
2020-04-13 19:10:58 +01:00
Clownacy
f4f85f1f9d Add Null platform backend
Also does absolute nothing.

The point of these things is so it's easier to test out new ports.
For example, with the Null backends and the software renderer, we
don't need to write any code to build for other platforms.

In addition, by having no platform-dependant code, this can be used
to trace crashes. For example, I was having crashes on the Wii U,
despite there being no Wii U-specific code at all - the cause turned
out to be that the executable wasn't stripped, and it had nothing to
do with the code at all.
2020-04-13 18:54:34 +01:00
Clownacy
02f570cec7 Add Null audio backend
Literally doesn't do anything
2020-04-13 18:31:39 +01:00
Clownacy
c51a074fad Big disgusting backend rework
We need to avoid `WindowsWrapper.h` in the backends whenever we can,
to avoid name collisions (the Wii U homebrew library) defines its own
BOOL/TRUE/FALSE, which really doesn't work with CSE2.
2020-04-13 18:19:39 +01:00
Clownacy
fd0733f6e7 Fix GLFW3 not handling exit event while not focussed 2020-04-13 15:32:34 +01:00
Clownacy
8549fa561e Avoid WindowsWrapper.h in controller backend 2020-04-13 14:56:48 +01:00
Clownacy
026fea52ff Untangle Input.cpp from the controller backend 2020-04-13 14:49:07 +01:00
Clownacy
58fc9a392a More cleanup 2020-04-13 13:56:29 +01:00
Clownacy
aa9e486086 Handle WindowBackend_Software_CreateWindow fail
Must have been part of that commit I reverted
2020-04-13 13:49:21 +01:00
Clownacy
d70e31d221 Cleanup 2020-04-13 13:47:57 +01:00
Clownacy
cbb11e6270 Cleanup 2020-04-13 13:43:17 +01:00
Clownacy
8fbf3bbecf Account for GetVertexBufferSlot failure 2020-04-13 13:40:35 +01:00
Clownacy
9275ad4689 This error should result in failure 2020-04-13 13:35:01 +01:00
Clownacy
cdd97cb733 Some cleanup 2020-04-13 13:34:55 +01:00
Clownacy
4f7cc9582d Revert "Backends: Added init/de-init messages for backends"
This reverts commit 9be8b9a493.
2020-04-13 13:28:57 +01:00