1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2026-01-15 11:03:00 +01:00
Commit Graph

343 Commits

Author SHA1 Message Date
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
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
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
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