Tamás Bálint Misius
96dea30480
Emscripten: Remove all other blocking prompt calls
2023-08-22 00:26:31 +02:00
Tamás Bálint Misius
c73fa1bcdd
Prevent almost all HTTP requests from blocking
...
The ones that remain blocking are the ones that run on different threads; see Task, yet another big mess to clean up.
2023-06-10 19:19:53 +02:00
Tamás Bálint Misius
ee87f0a0a7
Fix vote bars in previews touching the enclosing rects
2023-05-13 13:21:05 +02:00
Tamás Bálint Misius
a9d231587c
Show save button thumbnail in the preview if it's available
...
This is good enough for now but also more limited than I'd like because if the thumbnail arrives (gets rendered or downloaded) later than the preview is opened, it's never shown.
2023-05-13 13:21:05 +02:00
Tamás Bálint Misius
0f95ce82f8
Sanitize GameSave/SaveInfo/SaveFile ownership
2023-05-11 12:40:23 +02:00
Tamás Bálint Misius
60a7ce1aae
Use _rgb literals where possible
2023-04-30 14:22:56 +02:00
Tamás Bálint Misius
410dc71f42
Fix some deprecation warnings
...
Namely:
- [[deprecated("Use DrawPixel/BlendPixel")]]
- [[deprecated("Use DrawLine/BlendLine")]]
- [[deprecated("Use DrawRect/BlendRect")]]
- [[deprecated("Use DrawFilledRect/BlendFilledRect")]]
2023-04-30 14:06:54 +02:00
Tamás Bálint Misius
9fbb780728
Fix some deprecation warnings
...
Namely:
- [[deprecated("Use BlendChar")]]
- [[deprecated("Use AddChar")]]
- [[deprecated("Use XorPixel")]]
- [[deprecated("Use AddPixel")]]
- [[deprecated("Use XorLine")]]
- [[deprecated("Use XorDottedRect")]]
- [[deprecated("Use XorImage")]]
- [[deprecated("Use BlendEllipse")]]
- [[deprecated("Use BlendFilledEllipse")]]
- [[deprecated("Use DrawFilledRect (beware off by 1)")]]
2023-04-30 11:27:58 +02:00
Tamás Bálint Misius
f5cbc30d85
Fix some deprecation warnings
...
Namely:
- [[deprecated("Use BlendTextOutline")]]
- [[deprecated("Use BlendText")]]
- [[deprecated("Use BlendImage")]]
- [[deprecated("Use BlendImage")]]
- [[deprecated("Use TextSize().X - 1 (yes this is very bad code eww)")]]
2023-04-29 15:50:34 +02:00
Tamás Bálint Misius
eee42b2ea3
Fix RNG usage
...
Mostly boils down to having graphics functions use Renderer's RNG, update and similar functions Simulation's.
2023-04-15 18:22:03 +02:00
mniip
b26a1b4a88
VideoBuffer pointer correctness
2023-04-05 14:52:20 +02:00
mniip
7f84887f6d
Refactor things referencing VideoBuffer internals
2023-04-05 02:30:05 +02:00
mniip
e5af4dab68
Refactor resize-related code
2023-04-05 02:30:05 +02:00
mniip
e93db9c06a
RasterDrawMethods CRTP, PlaneAdapters in VideoBuffer, Graphics, and Renderer
2023-04-05 02:29:35 +02:00
Tamás Bálint Misius
4f0c365e05
Preprocessor purge round 19: Split and minimize usage of Config.h
...
Also mostly banish it from other headers, and shuffle standard header includes to minimize cross-contamination between headers.
2023-01-27 09:27:32 +01:00
Tamás Bálint Misius
b2b06bf009
Preprocessor purge round 3: spaghetti headers
2023-01-27 09:26:38 +01:00
Tamás Bálint Misius
2a23a38120
Normalise GetPrefs
2021-04-18 12:23:31 +02: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
fe15566d2c
Only change modes when the lock is being held, see 2333786
( fixes #700 )
2020-03-23 23:08:52 +01:00
Tamás Bálint Misius
7330d0412a
Fix random warnings from clang 8.0.0
2020-01-21 14:43:22 +01:00
Tamás Bálint Misius
7629c98f22
Get rid of tiny callback classes, round No.1
...
I say round No.1 because I'm not sure if there are any left.
Hopefully there aren't.
2019-12-16 21:20:33 +01:00
Tamás Bálint Misius
23337862a4
Use current rendering modes when placing a save ( fixes #446 )
2019-07-22 10:38:13 +02:00
Tamás Bálint Misius
0179cefc78
Flatten include trees
2019-04-20 15:36:11 +02:00
Tamás Bálint Misius
5810a19dbc
Get GetUserName out of the way on Windows
2019-04-17 01:16:45 +02:00
jacob1
55e6074942
use override in all possible places
2019-03-09 21:07:32 -05:00
jacob1
87fb94ce94
Delete unused Thumbnail handling code
2018-11-27 22:13:29 -05:00
jacob1
e5230b5b9f
upgrade to SDL 2
...
Still currently in process, there are some issues:
Windows version doesn't work, mac version might not work, opengl might not work
Icon doesn't work (on Linux at least)
Lua will need some changes, there are some sdl 1.2 hacks in there
When entering fullscreen, the window loses focus
When holding down mouse out of bounds, mouse move events stop being sent
When letting go of mouse out of bounds, mouseup event doesn't take into account double scale mode
Clicking on startup without moving mouse will draw at 0,0 for a frame
Renderer probably won't compile because USE_SDL doesn't entirely work
... and maybe others
Some nice things were done though:
no more blit2, sdl can do the scaling itself
3d effect removed, no reason to support this joke any longer
No need to support copy/paste ourselves, sdl does it now
text handling done much better now, separate events for key presses and text input
when a new window is shown, all events ignored until next tick (ignore textinput event if window shown from key press event like console)
2018-05-25 21:19:44 -04:00
mniip
30dd49235d
Add ToLower/ToUpper
2018-05-14 05:12:32 +03:00
mniip
f8586ea3a2
Remove ByteString::Stream
2018-05-04 23:10:39 +03:00
mniip
6c9cb174fb
Change some uses of String::Stream to StringBuilder
2018-05-02 22:11:41 +03:00
mniip
a121c62c3b
Add some helper methods and rewrite some of the string manipulation code
2018-05-02 01:32:04 +03:00
mniip
ff27d69424
Switch from std::string to String/ByteString in most of the code
...
Also switch SimulationData from weird arrays to std::vector
2018-04-30 21:13:24 +03:00
jacob1
db8b32363e
remove tpt-math.h includes
2018-04-28 00:09:14 -04:00
Saveliy Skresanov
cda029ff42
Use xoroshiro128+ random generator (everywhere besides BSON code).
2018-04-23 22:47:44 +07:00
wolfy1339
27f6a6b297
Strip whitespace from files in repo ( #553 )
2018-04-03 21:46:01 -04:00
jacob1
67bc12de97
Fix issue where TPT was bought by EA
2018-04-01 15:26:13 -04:00
jacob1
40d2850ff7
TPT has now gone free to play! Many elements are unlocked by default, but by using Powdercoins you can unlock new elements and promote your saves to front page!
2018-03-31 22:40:23 -04:00
jacob1
ac24810da5
add some defines to reduce usages of hardcoded r>>8
2017-12-28 12:03:26 -05:00
QuanTech0
c52c2d7a6f
Expanding vocabulary.
...
:)
2017-10-07 17:32:28 -04:00
jacob1
5ee10d14e4
reduce unnecessary #include dependency chains
...
for example, elements no longer include Client.h or Graphics.h, and interface stuff won't include Window.h or Graphics.h unless requested
2017-07-13 23:24:35 -04:00
jacob1
057435baa6
Differentiate between created date / updated date in save preview
...
still only shows most recent date, this just changes the text
2017-06-30 21:21:09 -04:00
jacob1
25b3244d6c
add warning messages when certain words are found in comments
2017-06-09 22:19:54 -04:00
jacob1
8cfe2af6ca
I think the word "for" made more sense before
2016-07-26 21:12:18 -04:00
cxi
e313e4bf3d
Add reporting because of tags to report dialog ( #316 )
2016-07-26 21:10:40 -04:00
jacob1
f0f104097d
finish / fix ecb08952e5
...
must have accidentally reverted Keys.h halfway through making it?
2016-07-23 19:15:07 -04:00
jacob1
e68dd74b68
less scary report message
2016-07-03 12:51:40 -04:00
jacob1
40c2ff27b0
Test using DownloadManager from my mod instead of RequestBroker
...
The crash when opening saves on mac is definitely something to do with the threading, and i'd rather just test this first to see if it fixes it
Copied from my mod almost entirely as-is, with the changes to HTTP.cpp included, also added locks into Download.cpp even though it is probably overkill
2016-03-27 11:41:36 -04:00
jacob1
b184c78cff
"Save from a newer version" is now just a warning (OPS format never changes)
...
Also, actual save errors now prevent you from clicking "Open" (which allowed you to vote and do other stuff even though the save was never loaded)
2015-10-01 21:35:40 -04:00
jacob1
9f9fef6cad
Add new function ParseServerReturn, try to properly display all http errors
...
Also fix crash with invalid ptsave link, and fix some cases where it wouldn't ever tell you it errored
2015-08-29 13:14:17 -04:00
jacob1
c786640c74
always use a ScrollPanel in the profile viewer
...
also fix Textbox autosize. TODO: add a bunch more info to the profile viewer
2015-07-09 14:25:01 -04:00