Tamás Bálint Misius
6ceb51b408
Handle ptsave urls with GameController
2023-08-22 23:51:17 +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
c2f8a7df25
Fix crash on exit when multiple windows are open
...
Controllers would delete their Views even if they failed to pop them from the window stack.
Have I mentioned that I really hate our MVC?
2023-06-10 18:56: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
159d0eb4b7
Group platform files into their own directory
2023-01-27 17:31:40 +01: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
jacob1
d1016cf58d
move Platform.cpp to common/, seems to fit in a little better there
2021-06-26 00:58:37 -04: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
0179cefc78
Flatten include trees
2019-04-20 15:36:11 +02:00
Tamás Bálint Misius
5bc3c03082
Change scheme to https everywhere
2019-03-18 23:50:38 -04:00
mniip
f8586ea3a2
Remove ByteString::Stream
2018-05-04 23:10:39 +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
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
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
cdc8f64896
fix clang compile warnings, fixes #406
...
also, sim.ambientAirTemp takes floats now
2017-04-27 23:08:06 -04:00
cxi1
0c972469b8
Improve consistency of error messages, use InformationMessage instead of ErrorMessage
2016-07-17 16:27:13 -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
55d20f1bb2
Adding a comment updates the comment total / number of pages
2015-10-01 22:26:23 -04:00
jacob1
9048a3c50e
new lua API: platform
...
you can get current OS / build information, exe name, restart tpt, open a link in the web browser, and use clipboard copy/paste functions
Also remove some older Platform.h file which wasn't really needed or used
2015-08-31 23:33: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
Ryan Jacobs
55a30673c4
Remove unnecessary pointer checks.
...
There are *no* more spacing issues. I used tabs exclusively.
Also, I made changes off of the develop branch.
Here's the Ruby regex that I used:
text.gsub!(/(( |\t)*)if ?\((.*)\) ?{?\n?( |\t)*(free ?\(|delete |delete\[\] )(.*)\)?;/, "\\1\\5\\6;")
2015-02-14 22:13:26 -08:00
jacob1
ace9e36cc6
fix ALL the warnings
...
mostly just using more size_t. Also do some formatting around if statements
2015-01-16 22:35:32 -05:00
jacob1
efd69b208d
fix a ton more errors in the interface code, including all the -Wreorder ones
2015-01-16 19:58:39 -05:00
mniip
09beafed3a
Fix ParseExceptions falling through;
...
Apparently since when the RequestBroker was added, the logic has been changed,
and the exception no longer comes through PreviewController's try{} block.
2014-01-25 15:39:44 +04:00
jacob1
bfc1cf99ca
instant save option option, hold ctrl when clicking a save in the save preview to skip the entire preview and not load the comments
2013-07-25 19:43:25 -04:00
jacob1
e0913d2639
can change comment pages without the scrollwheel, click and hold scrollbar area to have it scroll to that point
2013-07-21 17:05:55 -04:00
jacob1
7a2114bc65
add error messages when errors happening while fav. / unfav.ing a save, deleting a save, or unpublishing one. Also don't use session key in url to add a comment since it isn't needed
2013-06-20 22:01:07 -04:00
Simon Robertshaw
bdc69f31c0
Fix includes for GUI stuff
2013-03-22 14:26:24 +00:00
Simon Robertshaw
9abe51526c
Move all GUI source files into gui/
2013-03-22 14:14:17 +00:00