Ted John
974ef800cb
Rename remaining platform c files to cpp
2018-01-18 21:12:41 +00:00
Ted John
bea500638b
Remove old file enumerator functions from platform
2018-01-18 11:38:52 +01:00
Michael Steenbeek
755add6c9a
Compile localisation folder as C++
2018-01-06 18:32:25 +01:00
Michael Steenbeek
1a9975d683
Compile util and cheats as C++
2017-12-14 10:03:21 +01:00
Ted John
66a6aa95f6
Redirect platform_get_user_directory to IPlatformEnvironment
...
- Remove old code for getting user directory, redirect to IPlatformEnvironment.
- Fix config loading so that it uses path straight from IPlatformEnvironment.
- Add more special folder implementation in Platform2.
2017-12-01 21:09:52 +00:00
Paul
bf87489da8
make changes suggested in review
2017-11-07 00:15:22 -08:00
Paul
9325fffd9c
Update posix.c
2017-11-06 20:19:43 -08:00
Paul
f202f19897
Update posix.c
2017-11-06 19:49:02 -08:00
Paul
62383f7cb5
fix indentation
2017-11-06 14:58:06 -08:00
Paul
8093b6369b
replace flock with fnctl for better compatibility
2017-11-06 14:53:59 -08:00
Robert Jordan
c9c0c07eca
RCT2 Steam path locator: improve OS support
...
Now looks for RCT2 install within OS-specific steam install directories.
Also checks the registry in Windows in case Steam has a custom install
path.
2017-10-24 18:36:40 +02:00
Michał Janiszewski
c4538496c5
Make sure variables are either static or declared externally
2017-10-09 22:59:40 +02:00
Michał Janiszewski
23ec1d29e7
Don't report elevated process on Emscripten
2017-09-08 11:57:24 +02:00
Michał Janiszewski
7a0a344014
Don't use unavailable fts.h for Emscripten
2017-09-08 11:57:24 +02:00
Michał Janiszewski
a13c30795d
Add fcntl.h include to POSIX platform
...
Required for `open()`, etc.
2017-09-03 14:48:50 +02:00
rwjuk
b70c748ff6
Fix changelog resolution on linux
2017-08-08 00:10:42 +02:00
rwjuk
4132b85c02
Implement platform-specific changelog path funcs
2017-08-08 00:10:42 +02:00
Richard Jenkins
06d1f49d61
Display a warning dialog if user runs program elevated ( #6063 )
2017-07-29 15:21:33 +01:00
Ted John
7e9f7df7d1
Use standard platform defines
2017-06-12 18:01:51 +01:00
Ted John
902bba6906
Fix compiler errors, add ctype.h in required source files
2017-06-11 23:43:28 +01:00
Ted John
ee7c97b7be
Move scancode to key to openrct2ui
2017-06-11 23:22:32 +01:00
Michał Janiszewski
61d38511bc
Expand tabs to spaces
...
This commit expands tabs to spaces (ts=4) in all the files under src/
and test/.
Until now we had two wildly different code styles with C using tabs and
new C++ using spaces. It is painful to maintain as none of the commonly
used tools support this kind of setup and in reality is needless, as we
can simply convert all the sources to spaces and have opened PRs do the
same, where needed.
Additionally, trailing whitespace has been removed.
2017-06-06 23:46:14 +02:00
Ted John
40fc54291a
Remove STUB from platform_get_locale_date_format
...
It is really annoying having the stub message appear on startup.
2017-06-05 19:57:51 +01:00
Michał Janiszewski
79d76759bb
Fix #5516 : Update copyrights for 2017
...
Not all files were necessarily _changed_, but all were touched, see
https://github.com/OpenRCT2/OpenRCT2/pull/4932
2017-06-01 21:55:10 +02:00
Ted John
98d59ccaa3
Fix Linux build errors
2017-05-29 22:38:44 +02:00
Ted John
3fcd42fe2b
Move more window code to UiContext
2017-05-29 22:38:43 +02:00
Richard Jenkins
2f9f613201
Fix #3178 : Precompose file name strings on macOS to prevent mojibake when displayed
...
* Precompose file name strings on macOS to prevent mojibake when displayed
* Ensure decomp-to-precomp string replacement is handled safely
* Add macOS non-ASCII handling to changelog; add comments to relevant block
* Fix #ifdef alignment
* Fix comment alignment
2017-05-23 09:30:13 +02:00
Richard Jenkins
86d8863496
Fix #5456 : Paths with non-ASCII characters mishandled on macOS ( #5463 )
2017-05-11 09:43:53 +02:00
Ted John
c4d2cd175d
Use utf8 instead of char for platform_get_absolute_path
2017-05-07 19:17:11 +01:00
X7123M3-256
03606adbeb
Fix more formatting
2017-05-07 01:01:07 +01:00
Gymnasiast
3d9e6a4e2d
Fix formatting
2017-05-07 01:01:07 +01:00
Ted John
9a42edc695
Fix return of exit code
2017-05-07 01:01:07 +01:00
X123M3-256
d89fc32864
Use get_directory_path instead of dirname()
2017-05-07 01:01:06 +01:00
X7123M3-256
5e7ca2207e
Fix indentation
2017-05-07 01:01:05 +01:00
X7123M3-256
3b12e4cc66
Add function to get an absolute path from a relative one
2017-05-07 01:01:05 +01:00
Marco Costa
6f0232431e
Replace comment with STUB macro
2017-04-09 17:05:48 -04:00
Marco Costa
8ed51d46ff
Add import for date format
2017-04-08 22:58:45 -04:00
Marco Costa
8d2d430de0
Default implementation of date format
2017-04-08 22:50:34 -04:00
Ted John
fb2c835d52
Include new config header
2017-02-18 15:45:10 +00:00
Broxzier
60603ae10a
Use types from common.h
2017-01-14 12:37:31 +01:00
Ted John
25bc798ff8
Move contents of src into project sub directory
2017-01-04 17:44:12 +00:00