Tamás Bálint Misius
9542f98b82
Preprocessor purge round 7: Config.template.h
2023-01-27 09:26:38 +01:00
Tamás Bálint Misius
b2b06bf009
Preprocessor purge round 3: spaghetti headers
2023-01-27 09:26:38 +01:00
jacob1
4c74d25840
Fix graphical artifacts sometimes showing up with ptsave startup arg
2023-01-26 22:40:58 -05:00
Tamás Bálint Misius
c6d6a7d0bf
Cap FPS in a more stable way
...
Time-related variables are now on the nanosecond scale. See #886 .
2023-01-05 18:25:41 +01:00
Tamás Bálint Misius
55524bc27a
Fix proxy, cafile, capath command line options
...
Broken by edab57887d
.
2023-01-02 18:48:02 +01:00
Tamás Bálint Misius
edab57887d
Redo command line parsing
2022-12-31 10:48:44 +01:00
Tamás Bálint Misius
1da7438e39
Add ability to disable blue screens
...
This will let us produce crash dumps on user machines.
2022-12-30 08:21:12 +01:00
Tamás Bálint Misius
2bcf32e2cf
Stop relying on _DEBUG
2022-12-30 08:12:12 +01:00
Tamás Bálint Misius
dd7178dbc8
Stop setting window icons on windows
...
Also fix font editor builds on windows and add more font editor builds to the ghactions workflow.
Funny, we don't really need resource.h anymore. The resource compiler does, but we don't.
2022-12-18 19:32:12 +01:00
Tamás Bálint Misius
e5c88f154a
Unify icons
2022-12-18 15:00:08 +01:00
Tamás Bálint Misius
59f89f9a46
Let mods customize app constants
...
Mainly via meson_options.txt.
2022-12-17 19:45:01 +01:00
Tamás Bálint Misius
59354731df
Remove all PTI code, use libpng to load avatars and thumbnails
...
Also write PNGs with libpng, and BMPs with SDL, and have the renderer only generate a large PNG thumbnail, and disable HTTP/2 multiplexing for now so we don't get banned when loading avatars.
simon pls reply to the stupid emails already.
2022-10-23 20:21:05 +02:00
Tamás Bálint Misius
f18bd6553f
Remove long defunct OpenGL code paths
2022-10-11 20:11:14 +02:00
Tamás Bálint Misius
304cc3a47b
Move Read/WriteFile from Client to Platform
2022-10-05 19:55:04 +02:00
Tamás Bálint Misius
09c2704928
Add CAFile and CAPath config options, use mbedtls in static builds
...
This is how we'll handle systems where the cert bundle and cert directory is stored where mbedtls doesn't expect it.
Also update tpt-libs to get new curl and mbedtls.
2022-09-25 06:13:35 +02:00
Tamás Bálint Misius
a674498a96
Clean up Client::DoInstallation
...
Also Factor out app constants that mods might change into Meson options and clean up format::URLEncode in the process, convert app and document icon data in arrays to actual images, actualize AppStream data for possible future packaging, add alternative command line format for opening filesystem saves and ptsave URLs, fix a memory leak in Platform::GetCwd, and add format::URLDecode.
2022-09-08 06:54:35 +02:00
Tamás Bálint Misius
04e899e824
Use std::vector<char> consistently for file operations
...
This made it possible to get rid of two GameSave constructors.
Also clean up Client::LoadSaveFile, Client::ReadFile, and Client::WriteFile in the process, and remove unused SaveRenderer::Render
2022-09-08 06:45:25 +02:00
Tamás Bálint Misius
23a368dbf0
Clean up DirectionSelector and surrounding code
...
I really should have done this before merging it >_>
Also fix a few warnings.
2022-08-23 13:47:45 +02:00
Tamás Bálint Misius
289c2c4528
Fix handling of malformed scale: and proxy: arguments
2022-06-13 13:40:41 +02:00
Tamás Bálint Misius
6fe82d7221
Update tpt-libs, use SDL2main the way it's meant to be
...
Also fix the first mouse click not being detected on windows with sdl 2.0.20. Apparenlty, we need SDL_HINT_MOUSE_FOCUS_CLICKTHROUGH set to 1 for it to be detected.
2022-04-10 10:39:23 +02:00
Tamás Bálint Misius
76b89f8da1
Handle SDL_CreateWindow failure slightly better
...
Might explain weird breakage we experience on chromebooks. Difficult to say as we don't have access to chromebooks.
2022-03-26 17:43:43 +01:00
Tamás Bálint Misius
816b9eda3d
Disable text input as startup
...
We're not handling any keyboard input at that point anyway.
2021-09-05 19:30:55 +02:00
jacob1
46d7682ed9
Regenerate window when changing sdl settings if "old fullscreen" is enabled
2021-09-03 00:06:15 -04:00
jacob1
54a2abce3b
Default drawfrequency to 0, because of frame drop issues
...
Very apparent when using LIGH, which only stays on screen for one frame. Sometimes LIGH rendering is skipped entirely.
2021-07-11 18:04:51 -04:00
jacob1
b3aa6252ce
Add button in options menu to migrate to shared data directory a18855301306
...
Summary of migrated files will be shown to user in a popup, and a log file with every moved file will be left in the original directory
stamps, saves, scripts, screenshots, and powder.pref will be migrated. Recordings are not.
2021-06-27 18:25:59 -04:00
jacob1
d1016cf58d
move Platform.cpp to common/, seems to fit in a little better there
2021-06-26 00:58:37 -04:00
jacob1
6e0ace2e4d
Add / move some filesystem methods to Platform.cpp
2021-06-26 00:58:37 -04:00
jacob1
9775527123
Misc compile fix for the unsupported opengl configuration
2021-06-08 23:11:24 -04:00
jacob1
fca0c62cd7
Remove "Auto Draw Rate" option, there is no reason to turn this off
...
It can still be turned off or adjusted via Lua, though
2021-05-10 00:07:52 -04:00
Tamás Bálint Misius
dfc8dc80bd
Write prefs every time they change ( fixes #770 )
2021-04-18 12:23:31 +02:00
Tamás Bálint Misius
2a23a38120
Normalise GetPrefs
2021-04-18 12:23:31 +02:00
Tamás Bálint Misius
b98c9c8a2e
Fix crash on exit when using nvidia-460 + SDL with EGL support
2021-04-06 20:03:48 +02:00
Tamás Bálint Misius
3dbf6d7810
Use SDL text input correctly, add basic composition support
2021-04-02 10:21:52 +02:00
Tamás Bálint Misius
36e9fdc39d
Add support for i686-win
2021-03-20 23:02:03 +01:00
Tamás Bálint Misius
93b920a57f
Ignore key events with KMOD_GUI set #2 , see previous commit
2021-03-08 21:09:35 +01:00
Tamás Bálint Misius
dbe4e78257
Ignore key events with KMOD_GUI set
...
As those are probably not meant for us.
2021-03-08 20:42:44 +01:00
Tamás Bálint Misius
4b7e85c2fb
Fix a metric ton of MSVC warnings
2021-02-15 21:24:44 +01:00
Tamás Bálint Misius
3a0331d747
Add SDL_Quit calls back in
...
These got lost in the migration to Meson; they used to be called
with atexit, but this caused more problems than it should have.
Anyway, it's fine to call these only when we're exiting normally,
since otherwise we have bigger problems than not quitting SDL.
2021-01-06 15:46:39 +01:00
Tamás Bálint Misius
360297c338
Mesonification
2020-12-14 20:16:52 +01:00
Tamás Bálint Misius
a0a0e6c498
Correctly handle SDL_GetCurrentDisplayMode return value
2020-10-11 12:31:52 +02:00
Vladimir
f137bad7f8
Limit redrawing frequency ( #693 )
...
Co-authored-by: Tamás Bálint Misius <lbphacker@gmail.com>
2020-10-11 11:58:52 +02:00
Tamás Bálint Misius
bdcf486a8d
Refactor MomentumScroll to be more in line with other interface prefs
2020-10-10 21:57:29 +02:00
Tamás Bálint Misius
efc693bf43
Fix initial mouse position and unsafe SDL_Event union access
2020-08-23 00:25:43 +02:00
Tamás Bálint Misius
6490654733
Fix a few unused result warnings
2020-08-07 01:33:18 +02:00
laurencedeclan
a9f07dc5b0
Data in user data directory (backwards-compatible)
2020-06-10 21:04:08 +02:00
mniip
34c0a94f98
Add a font.cpp merging utility
2020-03-10 02:13:48 +03:00
mniip
6607b7e845
Make font editor more convenient
2020-03-10 01:00:41 +03:00
jacob1
5b4a0bf93b
Fix MSVC compile
2019-12-21 16:17:37 -05:00
suve
110250fe6a
Guess best scale on startup ( #684 )
...
Guess best window scale at startup
2019-12-21 17:39:32 +01:00
Ian Bastos
4383de7ad5
Implement file drop handler ( #666 )
2019-07-24 00:04:41 -04:00