Commit Graph

170 Commits

Author SHA1 Message Date
Ted John 7ac0fa1316 Demonstrate using Windows 10 WRL API and GameBar API 2016-10-28 23:33:52 +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
LRFLEW 2392e2658a Replace spinlock in main game loop 2016-10-18 22:13:10 +01:00
Michał Janiszewski b0dc6fe5fe Introduce `UNUSED(x)` macro, mark some variables as unused 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 4bfd5c6f4c Hide unused variables in some configurations 2016-10-06 23:13:28 +02:00
Ted John 9359379d29 Do not load title screen by default
There may be crashes if something fails to load or initialise without an explicit fallback to show the title screen. These will need to be fixed when found.
2016-10-03 19:06:13 +01:00
Ted John 862b715003 Fix #4522: Theme music doesn't stop when connected to paused server
Refactor audio initialisation and stop all music and sounds when the screen mode changes.
2016-10-03 18:14:34 +01:00
Ted John 23b5af6145 Close #3981: Global configuration option/argument for RCT2 data path
Add the command line option --rct2-data-path which allows the RCT2 data path to be set irrespective of the config file.
2016-09-18 22:25:49 +01:00
Michał Janiszewski 2d5de506f4 Fix guards for NO_RCT2 builds 2016-09-17 22:59:32 +01:00
Ted John 20863bce52 Guard segments definition in USE_MMAP 2016-09-17 21:07:17 +01:00
Marijn van der Werf 487d6d8f15 Remove unnecessary addresses.h imports 2016-09-17 20:59:55 +01:00
Ted John 7c05ceb275 Make x64 fully stand alone without segment loading 2016-09-17 19:29:39 +01:00
Michał Janiszewski f354c0ec3f Fix testpaint target for Linux 2016-09-16 19:44:45 +02:00
Michał Janiszewski aa3dd894ee Optimise tweening by skipping get_sprite() and its assert 2016-09-14 23:25:37 +01:00
Ted John 75dde0467f Add static modifier 2016-08-27 14:40:05 +01:00
Ted John 691995246f Use binary path for segment data, not working directory 2016-08-27 13:31:45 +01:00
Yaroslav Tretyakov 88be245504 Fix another cause of #4204 2016-08-20 14:06:48 +01:00
Michał Janiszewski 645bb44eb4 Minor fixes to 64 bit builds 2016-08-08 23:06:10 +01:00
Michał Janiszewski 796f496677 Remove leftover debug code from openrct2.c 2016-08-08 10:22:46 +02:00
Michał Janiszewski af91148051 Cast pointer to segment to satisfy mingw 2016-08-08 07:30:34 +02:00
Ted John 94397784bb Let x64 Windows builds use mmap configuration 2016-08-08 07:25:23 +02:00
Ted John c93a6f1275 Fix build for MSVC
Variable not used, but warning can be suppressed by initialising it
2016-08-08 07:25:22 +02:00
Michał Janiszewski 79e755a36b Fix segments pointer type 2016-08-08 07:25:22 +02:00
Michał Janiszewski 7e5102dd6f mmap data segment to arbitrary location 2016-08-08 07:25:22 +02:00
Aaron van Geffen 8ddef5f889 Move version information to separate C file.
Note: crash.cpp is still using the constants passed at compile-time.
2016-07-31 19:01:26 +02:00
Michał Janiszewski 1fe5fc56c0 Checksum sprites occasionally in multiplayer
This creates a checksum (SHA1) every so often on server and sends this
value together with PRNG seed for client to check it has still not
desynced.

It's useful to detect a desync early on, as PRNG seeds may remain
unchanged for some more time, while damage may have already been caused.
2016-07-27 15:54:02 +02:00
Michał Janiszewski 0421c59eff Refactor `sprite_set_coordinates` 2016-07-26 22:29:54 +02:00
Yaroslav Tretyakov dd4e4caeaa Reset sprite quadrant placements as part of sprite reset command
This addresses some sources of desyncs in multiplayer.
2016-07-26 22:29:54 +02:00
Michał Janiszewski 9f57c82653 Refactor access to g_sprite_list
Hide g_sprite_list behind accessor function with a check. `assert` is
temporarily disabled, as it breaks nearly every park.
2016-07-17 22:19:34 +02:00
Ted John dca816cfd3 Merge pull request #4024 from IntelOrca/refactor/object-list
Refactor and improve the object system:
- Objects are now exported to user directory under 'object'.
- Object directories are scanned recursively.
- Improves reliability of object loading and handling of bad objects.
- Improve performance of object scanning.
- Only load new objects when loading a new game.
- Improve changing language experience.
2016-07-11 23:45:45 +01:00
Ted John 4de1f2912a remove unnecessary functions 2016-07-09 15:36:48 +01:00
Michał Janiszewski 639f19adbf Fix define checks in project 2016-07-09 10:05:12 +02:00
Michał Janiszewski 35676d31f7 Integrate path variables used by game 2016-06-24 23:25:40 +02:00
Ted John d9bcf2d946 remove RCT2 memory checksum for Win32 NO_RCT2 2016-06-24 23:25:40 +02:00
Michał Janiszewski dfa482b1b5 Revert "Merge pull request #3897 from janisozaur/rebase-no-rct2"
This reverts commit 22c0cc92e6, reversing
changes made to 7b421c8052.
2016-06-24 22:40:37 +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
Michał Janiszewski 5a7bbf71fe Fix condition guarding memory checksum verification 2016-06-20 00:05:30 +02:00
Michał Janiszewski 402e5a32a0 Integrate path variables used by game 2016-06-19 23:52:20 +02:00
Ted John 858a781347 remove RCT2 memory checksum for Win32 NO_RCT2 2016-06-19 18:12:14 +02:00
Michał Janiszewski 580789bcf4 Fixes to object loading for x86-64 2016-06-19 18:12:14 +02:00
Michał Janiszewski ded905a259 Fixes to object loading 2016-06-19 18:12:14 +02:00
Michał Janiszewski 4be4ed19a3 Don't tween objects when minimised (#3891) 2016-06-17 08:13:15 +01:00
Ted John d07b9535c2 integrate variables: object entry lists 2016-06-16 11:36:15 +02:00
duncanspumpkin 31812a08a5 Remove hooks. All string code now implemented 2016-06-15 19:11:51 +01:00
Marijn van der Werf 42ee299f65 Replace references to OS X 2016-06-13 19:49:06 +02:00
Ted John 83fc6ec4af remove usages of gScreenDPI and gWindowDPI 2016-06-07 22:45:36 +01:00
Ted John 85557d169d reinstate all drawing and fix resize 2016-06-07 22:45:36 +01:00
Ted John b58766aa3f clean up the logo and make it scalable
- fixes #1776: graphical glitches on intro
- fixes #708: screen turns white when resizing intro
2016-05-13 21:36:07 +01:00
janisozaur deeafc5a60 Add `--silent-breakpad` switch, fixes #3535 (#3544) 2016-05-11 12:25:21 +01:00