1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2026-01-20 21:43:06 +01:00
Commit Graph

313 Commits

Author SHA1 Message Date
Michał Janiszewski
db00598d18 Fix main() signature for Windows 2016-08-08 07:25:22 +02:00
Ted John
c55d72412c Add x64 VS project configurations 2016-08-07 01:47:18 +01:00
Aaron van Geffen
29b0b4885e Reduce code verbosity.
This introduces the function `platform_get_cursor_position_scaled` as a common means of getting the cursor position compensated for window scaling.
2016-07-30 22:05:13 +02:00
Niels NTG
017e688fcc New file naming convention for screenshots
- With this change screenshot file names have the following pattern:
save file name +  + YYYY-MM-DD hh-mm-ss + .png

- To get the correct date and time the method platform_get_time and platform_get_date are rewritten and to a version for UTC and a version for local time. This change gave the opportunity to simplify the code generating file names for autosaves.

- SOUND_WINDOW_OPEN is now the new "shutter" sound when taking screenshot.
2016-07-24 20:32:55 +02:00
Michał Janiszewski
31a219a961 Fix declaration of Windows' StartOpenRCT 2016-07-14 14:11:50 +02:00
Michał Janiszewski
a6d0e6916e Fix function definitions to match their declarations
This makes sure every function is properly declared, which includes
proper `extern` wrappers.
2016-07-14 14:11:49 +02:00
Ted John
33d0bebad9 fix file / directory enumeration 2016-07-08 22:58:38 +01:00
Sven Slootweg
b343db3948 Fix incorrect variable name in posix.c log statement (#3980) 2016-07-03 22:20:36 +02:00
Michał Janiszewski
644a36a310 Fixes to -Wall compilation
By default, not all warnings are enabled. This change makes sure that
the project compiles correctly with following options turned on:

    -Wall -Wno-unused-but-set-variable -Wno-missing-braces \
    -Wno-unknown-pragmas -Wno-unused-function
2016-06-20 13:46:27 +01:00
Marijn van der Werf
42ee299f65 Replace references to OS X 2016-06-13 19:49:06 +02:00
Alexander Overvoorde
ca1590c086 Add parameter to utf8_remove_formatting to allow colour codes (fixes #3638) (#3831) 2016-06-09 12:30:32 +01:00
Ted John
313110ab8d reinstate hardware display 2016-06-07 22:47:31 +01:00
Ted John
3b627651aa add drawing engine config 2016-06-07 22:47:31 +01:00
Ted John
8920c73ea4 add software / hardware rendering switch 2016-06-07 22:45:36 +01:00
Ted John
2fa0c7977a add OpenGL drawing engine with FillRect impl 2016-06-07 22:45:36 +01:00
Ted John
3da57d0865 route old functions to new drawing interface
- hardware display temporarily removed
- rain, fps and other non-window elements not drawn
2016-06-07 22:45:36 +01:00
Goddesen
c60fce3549 Substituted tabs for spaces 2016-06-02 00:56:24 +02:00
Goddesen
9aa5958484 Added support for Norwegian (nb-NO) 2016-06-02 00:55:49 +02:00
Michał Janiszewski
451379c8a3 Handle SDL builds which already have HAVE_MATH_H defined (#3765)
ArchLinux's SDL2 build for mingw already has HAVE_MATH_H define, this
fixes warnings I was getting, as they are now upgraded to errors.
2016-05-28 12:24:52 +01:00
Michał Janiszewski
1cdbd1e459 Take care not to overflow buffers in platform_resolve_user_data_path (#3761) 2016-05-28 09:31:02 +01:00
Michał Janiszewski
642bfeb44e Ensure user directory exists when specifying custom path
This is done anyway in openrct2.c:openrct2_initialise(), but we will
have wrong custom user data path by then.
2016-05-27 21:43:52 +02:00
Michał Janiszewski
d9062f1f07 Wrap overly long lines in posix.c 2016-05-27 21:43:52 +02:00
Ted John
781c422c76 integrate tick variables 2016-05-20 22:56:45 +01:00
Hielke Morsink
c7a8e0cab7 Removed space from dump filename, and clearer output. 2016-05-15 01:00:06 +02:00
Hielke Morsink
e69574be12 Including short commit hash in dump filename 2016-05-15 01:00:05 +02:00
Ted John
0710eb7e87 Merge pull request #3585 from janisozaur/fixes 2016-05-13 18:22:20 +01:00
janisozaur
ca430e1b23 Drop unused variables (#3586) 2016-05-13 18:21:58 +01:00
Michał Janiszewski
070f298878 Make sure variables don't end up uninitialised 2016-05-13 13:23:37 +02:00
janisozaur
658e877955 Name all the typdef-ed structs (#3581) 2016-05-12 22:57:40 +01:00
janisozaur
deeafc5a60 Add --silent-breakpad switch, fixes #3535 (#3544) 2016-05-11 12:25:21 +01:00
Alexander Overvoorde
85a2614a6a Fix pasting of formatting characters being allowed and fix memory leak 2016-05-10 14:12:06 +02:00
janisozaur
2c3a832970 Swizzle bits of a window correctly for mingw builds (#3521) 2016-05-07 22:44:46 +01:00
janisozaur
fe826cd64f Fix posix's platform_file_copy (#3500)
The method may fail to properly copy data for files of sizes not being
a multiple of FILE_BUFFER_SIZE.
2016-05-05 22:59:27 +01:00
YJSoft
f3c1762a5a fix #3494 platform_file_copy always return false on posix 2016-05-05 16:50:07 +09:00
janisozaur
68bad6505c Add and correct licence headers to all sources (#3108) 2016-05-04 18:24:41 +01:00
Patrick de Wit
13701660c9 Implement customizable toggle windowed mode shortcut (#3462)
Implement customizable toggle windowed mode shortcut
2016-05-03 20:07:33 +01:00
Ted John
45843ec1d5 fix sub directory search for Windows
Fixes a small issue related to #3408
2016-04-24 23:55:28 +01:00
Ted John
652b1c83db integrate variables for lightning and toolbar dirty flags 2016-04-24 21:49:09 +01:00
Ted John
98f732aaf7 integrate screen variables (#3411) 2016-04-24 00:36:39 +01:00
Ted John
ee509caf35 integrate game paused variable and refactor 2016-04-23 13:34:55 +01:00
Ted John
57301def05 disable register-shell for mingw 2016-04-21 23:48:58 +01:00
Ted John
3f1e49d510 use unicode for registering file associations 2016-04-21 23:03:25 +01:00
Ted John
c51f9a8ecc register file associations on Windows 2016-04-21 21:41:53 +01:00
Ted John
b499a4589f embed OpenRCT2 icon for Windows (#3372)
Embeds the OpenRCT2 icon file using Win32 native resources and sets the window icon to it.
2016-04-21 19:17:26 +01:00
janisozaur
fb5d281eaf Check return value from realpath(). Fixes #2483 (#3309) 2016-04-15 18:17:45 +01:00
IntelOrca
547837f208 fix warnings in crash.cpp 2016-04-10 19:51:44 +01:00
IntelOrca
51a7e3f278 clean up and refactor the crash handler 2016-04-10 01:00:31 +02:00
Michał Janiszewski
9e2610fc08 Switch dump format to MiniDumpWithDataSegs 2016-04-09 20:47:31 +02:00
Hielke Morsink
46fb82fd91 Fix interface redifinition warning. 2016-04-09 19:40:57 +02:00
Michał Janiszewski
17bc485fb5 Breakpad for windows
This enables breakpad Windows support **only**.

The scope of this was limited to allow for inclusion into 0.0.4 release.
Breakpad for now is a Windows-only functionality, as this platform has
largest audience and is the only one that has no system-provided stack
tracing utility.

Upon crash, breakpad will try to create a dump and save current game,
present user with some vital information, then open explorer on the
created files for user convenience, asking him/her to create a new
issue with OpenRCT2 on Github.
2016-04-09 18:57:14 +02:00