Commit graph

100 commits

Author SHA1 Message Date
Sebastian Krzyszkowiak
a6b6062be4
recompress flac to opus and images to lossy webp for emscripten and android builds, with asset cache 2019-01-13 18:45:17 +01:00
Sebastian Krzyszkowiak
1334fc6b1d
fix a NULL pointer dereference in ResizeGamestates 2019-01-11 15:25:24 +01:00
Sebastian Krzyszkowiak
9006427278
clean up a duplicated framebuffer of the loading gamestate 2019-01-11 12:28:08 +01:00
Sebastian Krzyszkowiak
8c7068b48d
PrintConsole: use emscripten_log; don't use printf on Android and Emscripten; unify outputs 2019-01-10 02:32:23 +01:00
Sebastian Krzyszkowiak
db096e7e97
GetDataFilePath: add "maemo5" directory handling similar to what's already done for android 2018-12-18 13:19:16 +01:00
Sebastian Krzyszkowiak
df1790d242
doxygen tweaks 2018-12-16 15:15:38 +01:00
Sebastian Krzyszkowiak
09e6b321b6
streamline the ability to access internal fields a bit 2018-12-15 05:29:32 +01:00
Sebastian Krzyszkowiak
b9b231a438
put debug config into public config struct 2018-12-15 01:09:44 +01:00
Sebastian Krzyszkowiak
ce66ba8060
reorganize Game structure, deprecate access to _priv fields 2018-12-15 00:59:34 +01:00
Sebastian Krzyszkowiak
d8f975300d
PrintConsole/DrawConsole: guard console data usage with mutexes 2018-12-14 02:18:05 +01:00
Sebastian Krzyszkowiak
4f438400fb
TestDataFilePath: accomodate also QtCreator's build directories 2018-12-13 03:56:23 +01:00
Sebastian Krzyszkowiak
f1933fc7ba
GetDataFilePath: support launching straight from the build directory 2018-12-11 01:20:57 +01:00
Sebastian Krzyszkowiak
ee058b439a
more warnings fixed 2018-12-11 00:54:43 +01:00
Sebastian Krzyszkowiak
5fcb55591c
fix cppcheck warnings 2018-12-11 00:26:51 +01:00
Sebastian Krzyszkowiak
f82dc24a88
don't use warning suppression on Maemo
"#pragma GCC diagnostic not allowed inside functions"
2018-12-08 06:27:51 +01:00
Sebastian Krzyszkowiak
178b45968d
utils: fix DrawCentered* function to take float for bitmap position 2018-12-02 03:16:12 +01:00
Sebastian Krzyszkowiak
2179d6cdc2
synchronize with the main thread on BSoD 2018-12-02 00:26:33 +01:00
Sebastian Krzyszkowiak
a961845698
code model, clang-tidy related tweaks and fixes 2018-11-30 04:20:35 +01:00
Sebastian Krzyszkowiak
c8ee56fc2c
utils: add StrToLower and StrToUpper functions 2018-11-30 02:45:39 +01:00
Sebastian Krzyszkowiak
9611be3267
add ClearToColor util for clearing whole target bitmap, not just the clipping rectangle
Clearing the clipping rectangle can be very costly, while clearing a whole texture is often free.
2018-11-27 02:50:16 +01:00
Sebastian Krzyszkowiak
9ecd29a7c3
include allegro_color and platform specific headers already in libsuperderpy.h, clean up 2018-11-26 01:40:19 +01:00
Sebastian Krzyszkowiak
6c59ef1049
add support for routing the loading gamestate through compositor 2018-11-22 04:53:51 +01:00
Sebastian Krzyszkowiak
7f7c522b3c
make SetFramebufferAsTarget work also for the loading gamestate 2018-11-22 03:40:41 +01:00
Sebastian Krzyszkowiak
f922ffe997
android: log into logcat 2018-11-02 06:07:49 +01:00
Sebastian Krzyszkowiak
d20b81d104
update clang-tidy diagnostics 2018-10-10 21:37:54 +02:00
Sebastian Krzyszkowiak
7d4575308d
add config switches for various debug options 2018-08-09 00:05:25 +02:00
Sebastian Krzyszkowiak
6684847424
send filename, line number and function name to PrintConsole and FatalError for verbose debug output 2018-08-08 22:19:50 +02:00
Sebastian Krzyszkowiak
a730281bb8 add QuitGame function for quiting or sending game to the background (depending on the platform) 2018-07-31 21:25:07 +02:00
Sebastian Krzyszkowiak
8ff2a57b64 fix broken fullscreen toggle on Windows 2018-07-30 17:00:31 +02:00
Sebastian Krzyszkowiak
98eaf73f8c utils: add PunchNumber utility 2018-07-18 01:49:19 +02:00
Sebastian Krzyszkowiak
52da2d53e4 utils: move GetGameName to internal 2018-07-13 18:38:02 +02:00
Sebastian Krzyszkowiak
e5cf17a1a6 utils: add Fract util function and move math utils to separate unit 2018-07-12 20:18:23 +02:00
Sebastian Krzyszkowiak
5888cd2575 FatalError, PrintConsole: properly mark format argument as such
Thanks to that static analysis can catch nonliteral format errors.
2018-07-05 01:04:54 +02:00
Sebastian Krzyszkowiak
a29c7b4d2c fix clang-tidy issues 2018-07-04 19:08:39 +02:00
Sebastian Krzyszkowiak
c2f6aa73cd utils: add Sign function 2018-07-03 04:22:30 +02:00
Sebastian Krzyszkowiak
93859232d9 Fix GCC warnings 2018-06-30 01:50:29 +02:00
Sebastian Krzyszkowiak
291e4c73d6 use al_reset_clipping_rectangle for clarity 2018-06-03 03:39:28 +02:00
Sebastian Krzyszkowiak
9182cabf79 Add abstraction for GPU shaders 2018-05-30 21:11:46 +02:00
Sebastian Krzyszkowiak
396e07a0ce DrawCenteredTintedScaled 2018-04-24 22:06:06 +02:00
Sebastian Krzyszkowiak
34a36c2038 DrawCenteredScaled 2018-04-24 05:01:59 +02:00
Sebastian Krzyszkowiak
a8b57934db Fix the unfamous Fajer crashing issue 2018-04-08 01:34:43 +02:00
Sebastian Krzyszkowiak
d4b2e1c65a utils: rename Clip to Clamp, add Wrap 2018-04-08 01:34:26 +02:00
Sebastian Krzyszkowiak
e58fbdb560 Add a few utils from Rumina 2018-03-20 21:38:50 +01:00
Sebastian Krzyszkowiak
c85381644c rumina hacks 3 2018-03-15 00:46:52 +01:00
Sebastian Krzyszkowiak
ae70770f77 rumina hacks 2018-03-15 00:42:24 +01:00
Sebastian Krzyszkowiak
cb4b9638c8 utils: add missing new lines to debug/error output 2018-01-21 03:18:51 +01:00
Sebastian Krzyszkowiak
0cfef4ddca BSOD: fix placement of the second-last line 2018-01-20 02:51:37 +01:00
Sebastian Krzyszkowiak
e2d9d21f3f BSOD: fix formatting and warnings 2018-01-20 02:45:06 +01:00
Sebastian Krzyszkowiak
18efca478e FatalError: print the error message to stderr
Printing to console outputs it to stdout, but only if
debug mode is enabled. stderr seems better suited too.
2018-01-20 02:24:33 +01:00
suve
2848753083 Use left-align for the wrapped error messages 2017-12-17 15:00:02 +01:00