Commit Graph

49 Commits

Author SHA1 Message Date
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
36d034dc2e
Fix 8-bit-uncleanliness of most of the Lua API
This fixes bugs like "type\0hello mom" being a property name sim.partProperty accepts and half-fixes bugs like text formatting codes making gfx.drawText exit prematurely.
2022-08-22 19:42:51 +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
0179cefc78
Flatten include trees 2019-04-20 15:36:11 +02:00
Tamás Bálint Misius
59afaec70f
Fix Element::Identifier assignment leak (closes #205)
I didn't use 'fixes' because this doesn't strictly fix that specific
bug (I think?). Anyway, it does remove strdup which is mentioned in the
issue.

Also fix elem.free not allowing DEFAULTFOO_PT_STUFF and similar to
be freed.
2019-04-12 00:27:27 +02:00
jacob1
6d6a615a37 msvc min/max fixes 2017-04-23 12:30:39 -04:00
jacob1
cd448a5747 fix Misc.cpp file_load (this function isn't used anywhere) 2017-02-27 22:28:03 -05:00
wolfy1339
b65e94900e Use C++ includes (#308)
Replaces stdio.h, stdlib.h, string.h, math.h, time.h, limits.h and othters with their C++ equivalents.
2016-07-17 23:37:24 -04:00
jacob1
a8427ef33a only use -Wno-unused-result on Linux, also actually fix the unused results that we could possibly care about
Fixes cross compilers, TODO: I don't think scons can check if a flag exists but might support adding a test for that, even if through hacky means, like CheckFramework
2016-04-26 23:55:14 -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
e990eead10 add CleanText function from my mod, used when copying / pasting / loading signs 2015-07-10 00:05:58 -04:00
jacob1
d67cb4b582 add new s: sign which does a save search
also change some searchController stuff to properly queue searches when one is already going on
2015-06-27 19:03:41 -04:00
jacksonmj
d08621a0f6 Remove unused register_extension()
(Client::DoInstallation is used instead)
2015-06-17 20:36:33 +01: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
6463d04f6c fix a few of the most spammy warnings (there are still hundreds of warnings though)
TODO: actually fix all the warnings
2014-10-23 00:42:13 -04:00
mniip
96c889bcab fix gettime compilation on OS X 2014-02-25 01:12:26 +04:00
mniip
a105ed9df8 Use system clock instead of used CPU time. Fixes key repeat and some
other stuff. close #206
2014-02-13 00:26:34 +04:00
jacob1
138cb4d757 exception bluescreens print what the exception was, some (probably unnecessary) fixes to fusion that were never merged in, and probably a compiling fix 2013-12-03 22:05:35 -05:00
mniip
41e058e3b2 Fix a few cpu time leaks in request broker and HTTP, also add a global sleep function
(and why did HTTP.c have it's own copy of mystrdup anyway)
2013-10-30 21:39:30 +04:00
mniip
bf908bbfbf Fix various warnings, remove silly useless NO_INLINE system, remove the need for -fkeep-inline-functions 2013-10-30 04:47:07 +04:00
mniip
9183fa1755 apparently Ximon hates const; a lot;
added a bunch of const everywhere, had to modify a few functions to be const-compliant
2013-10-30 04:38:13 +04:00
Simon Robertshaw
aa09c0e753 Reject {b:1|blah} signs 2013-10-25 20:40:45 +01:00
Simon Robertshaw
b59c381177 Do not allow 't/c' signs to lack an ID 2013-10-19 22:10:53 +01:00
Simon Robertshaw
8f4296ac39 Spark sign tool, {b|sometext}, when the sign is clicked, the a spark will be created at the signs position. Also MouseDown events that draw particles from being triggered when clicking on a sign 2013-10-19 18:59:49 +01:00
mniip
e2cb5838c6 specially per @savask's request, put matcher into a function
returns 0 if no match, returns position of pipe character if there is
2013-08-22 19:50:20 +04:00
mniip
4a308cbf66 oh, and remove dependency 2013-08-22 17:52:32 +04:00
jacob1
01cd146ee9 fix mac compiling, fix renderer, fix other minor compiling issues 2013-02-14 23:31:31 -05:00
jacob1
ded94b475d move clipboard functions out of misc.cpp without creating errors 2013-01-18 14:37:24 -05:00
jacob1
73fdfd411c copy support in linux 2013-01-13 15:24:52 -05:00
jacob1
01bfd486e7 local copy / paste support inside tpt for all platforms 2013-01-12 21:25:22 -05:00
jacob1
110fa71a2c Comment out cpu_check, which only creates errors 2012-12-25 20:11:48 -05:00
Simon Robertshaw
02e09224e0 Prevent crash when pasting in Linux 2012-09-30 17:22:08 +01:00
jacob1
f8f70a3f77 Visual studio compatibility
This removes some inlines when using visual studio to compile, uisng TPT_NO_INLINE. It also fixes many other problems visual studio has with the code
2012-09-07 00:52:56 +01:00
ntoskrnl
f94fabd999 Rename WIN32 preprocessor definition to WIN 2012-08-02 15:21:16 +01:00
ntoskrnl
87dfc47c97 Separate operating system and architecture preprocessor definitions
Conflicts:

	SConscript
2012-08-02 15:20:14 +01:00
Simon Robertshaw
f8a6d2ea1f Textboxes for decoration, addresses "No text boxes in deco editor to directly edit the values" in issue #23 2012-07-29 14:58:56 +01:00
Simon Robertshaw
5befe5c25f Local file browser + some more interesting things like Progress bar UI component 2012-07-27 20:06:17 +01:00
Simon Robertshaw
d6de5fc997 Remove AMD detection from CPU check 2012-07-20 21:19:17 +01:00
Simon Robertshaw
d7e12b7b43 Missing includes and declarations for Linux 2012-06-13 14:36:56 +01:00
Simon Robertshaw
20e85066dc TPT: Fix crash when pasting text on platforms which don't support it d0b57d7d99 2012-06-12 17:27:21 +01:00
Simon Robertshaw
51b17badf4 A bit of refactoring (elements) 2012-05-07 17:59:50 +01:00
Simon Robertshaw
bb8a3f76e3 OS X compiling working, Make it a bit more friendly with stricter compilers 2012-04-26 13:10:47 +01:00
Simon Robertshaw
22d7865e6d Inline restrict_flt 2012-04-22 22:37:00 +01:00
Simon Robertshaw
64063fbc0f Add missing for OpenURI on 64bit Linux 2012-04-14 15:32:19 +01:00
savask
54c8dbb250 Fix pointer errors for linux. 2012-02-05 20:29:52 +08:00
Simon Robertshaw
f86091d421 Use useragent for version, fix URl encoding 2012-02-01 21:20:27 +00:00
Simon Robertshaw
038da72c61 Console UI, open in browser button, tab and enter shortcut for Login UI, various 2012-02-01 18:45:59 +00:00
Simon Robertshaw
4949a5eac0 Fix case for header files 2012-01-20 22:10:42 +00:00
Simon Robertshaw
b0ea52690b Initial 2012-01-08 17:39:03 +00:00