1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2026-01-19 21:13:05 +01:00
Commit Graph

360 Commits

Author SHA1 Message Date
Michał Janiszewski
3f7fd56328 Remove trailing whitespace in sources 2016-11-13 20:32:55 +01:00
Michał Janiszewski
a8b8b04dd4 Unify key modifiers definition 2016-11-13 19:36:03 +01:00
TELK
7718acfde8 Fix #4775: File name of screenshot that is taken at 00:xx is named wrong
Use `GetLocalTime` instead of `GetSystemTime`
2016-11-11 17:55:41 +00:00
Daniel Kamil Kozar
46b6ff35a0 Initialise the pointer to bitcount_fn in a new early initialisation function
In order to avoid the overhead of checking whether the function pointer
to bitcount's actual implementation has been initialised every time
bitcount is called, initialise it at application startup.
2016-10-31 00:45:30 +01:00
Daniel Kamil Kozar
2894bea5dd fix realpath() return value in platform_resolve_openrct_data_path
realpath() returns NULL on error, so the existing code treated its success as a
critical error. this commit fixes this.
2016-10-29 20:06:05 +02:00
Ted John
43ec7febff Fix #4711: Cannot open System Dialogue Window when saving game
Another regression from e5ff7412e4, we want to append an extension, not a directory.
2016-10-29 14:55:14 +01:00
Ted John
aef32c0fba Merge pull request #4696 from IntelOrca/render/night-lights
The light effects mod branch #3798 by @JeroenDStout has become quite out of date. I plan to properly implement it, but first I want to merge in what we have already, so that I can branch off develop again and rebase (currently rebasing this branch is too difficult, far too many commits).

Most code that this is merging is protected by the __ENABLE_LIGHTFX__ directive, so it should not make any difference until its time to enable it via a new pull request.

I have isolated it as much as possible to lightfx.c.
2016-10-25 12:12:48 +01:00
Ted John
ebe4ca4df4 Rename lightfx guard 2016-10-24 13:06:44 +01:00
Ted John
adb2ae616c Windows: Call FreeConsole if one was attached. 2016-10-23 23:10:30 +01:00
Ted John
7611b04ad1 Add --console switch for Windows
Windows subsystem does not work like console subsystem which makes it almost impossible to obtain `stdout` until the application has finished. This adds a `--console` switch to make the game either attach to an existing console or show a new one and redirect the C streams to it.
2016-10-23 16:16:20 +01:00
Michał Janiszewski
ead79360c8 Add architecture info to crash dump file name 2016-10-18 12:25:57 +01:00
Ted John
c4f67e9d95 Use lightfx palette transform 2016-10-17 20:34:53 +01:00
Michał Janiszewski
7f5b70ea78 Move WINVER definition before including common.h 2016-10-17 09:52:26 +02:00
Michał Janiszewski
33c3432556 Update MinGW to use APIs from WINVER 0x0600 2016-10-17 09:46:08 +02:00
Ted John
b64f8861f4 Merge branch 'stout-expanded-rendering-2' into render/night-lights 2016-10-16 23:40:59 +01:00
Michał Janiszewski
2e4a5cd441 Fix mingw builds 2016-10-16 00:24:12 +02:00
王少东
5fa5f29fc4 Fix #4596: Failed to build on MSVC 2015 Update 3, problem with file encoding
This ellipsis character is causing compiling issue on Windows 10 system in Chinese language.
2016-10-14 16:43:37 +01:00
Alexander Overvoorde
55d3ab8cc8 Fix #3062: Backtick ` opens console when inputting text into chat or other things
For some reason SDL_IsTextInputActive() returns SDL_TRUE before any call to SDL_StartTextInput(). This may be an SDL bug, but I've worked around it for this feature by also checking if there is a valid gTextInput.buffer. I've made an exception for the console itself, where the backtick should probably continue to close it.
2016-10-12 21:52:33 +01:00
Ted John
a08052ecb9 Remove _cursors, no longer used 2016-10-11 20:06:36 +01:00
Ted John
33a6c4fce3 Refactor cursors to C++ and improve isolation 2016-10-11 18:23:49 +01:00
Manuel Vögele
36578fc47b Fix #4513: Use system encoding when accessing paths with posix 2016-10-10 14:13:51 +01:00
Michał Janiszewski
8cd7126d63 Fix casts in windows.c platform file for -Wall 2016-10-09 22:41:18 +02:00
LRFLEW
e5ff7412e4 Refactor/Improve String and Path Handling 2016-10-09 15:29:58 -05:00
Michał Janiszewski
9966052ca7 Fix more configurations 2016-10-06 23:32:10 +02:00
Aaron van Geffen
d52add4486 Removed reference to deprecated NSWarningAlertStyle. 2016-09-22 22:20:42 +02:00
Michał Janiszewski
8afaf33b1c Fix #4453: path separators being mishandled 2016-09-19 17:59:06 +01:00
Marijn van der Werf
487d6d8f15 Remove unnecessary addresses.h imports 2016-09-17 20:59:55 +01:00
Ted John
51277227eb Remove unused globals 2016-09-10 21:57:43 +01:00
Ted John
653c77c9da Remove unused globals in windows.c 2016-09-10 18:34:30 +01:00
Ted John
91eb33255b Remove Exception::GetMsg()
We can undef any macro windows.h defines and interferes with our code base. In this case GetMessage
2016-09-08 21:37:27 +01:00
Ted John
1e65c7e940 Replace cursor position globals with gCursorState 2016-09-05 22:37:57 +01:00
Ted John
9d49dbd782 Integrate gCurrentCursor 2016-09-05 20:53:30 +01:00
Ted John
1338f7cedd Remove mouse state globals, use parameters instead 2016-09-05 20:50:33 +01:00
Michał Janiszewski
f8145b6edc Refactor inclusion of addresses.h
addresses.h is now only included when necessary, limiting scope as much
as possible.
2016-09-03 21:25:19 +01:00
Ted John
c586b887fd Fix warnings in crash.cpp 2016-08-28 17:19:13 +01:00
Ted John
12ef20ef31 Re-enable crash dumping 2016-08-28 17:17:20 +01:00
Ted John
8cf7e87b5c Fix many warnings for x64 2016-08-27 23:32:15 +01:00
Marijn van der Werf
3243e89cf9 Honor preferred user language on macOS 2016-08-21 22:15:35 +02:00
Marijn van der Werf
2c89d30f26 Fix #4318: Use user locale on macOS 2016-08-21 15:18:09 +02:00
Ted John
c645eee046 Enable DPI awareness for Windows x64 2016-08-18 18:37:51 +01:00
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