Ted John
35df72e61f
Remove use of gCurrentLanguage
2018-05-11 20:39:00 +01:00
Ted John
7dc170ef85
Use shared_ptr for long-life objects
...
Use unique_ptr and shared_ptr for IContext, IPlatformEnvironment, IUiContext, and IAudioContext.
2018-05-11 20:37:48 +01:00
Ted John
2ea857a10e
Improve IZipArchive so that it is more C++
2018-05-06 17:46:45 +01:00
Gymnasiast
60b864441a
Fix encoding of scenario index names
2018-04-12 13:13:14 +02:00
Gymnasiast
778ba466c5
Remove almost every extern C block
2018-02-05 16:20:15 +01:00
rwjuk
f2792688ea
Fix #7084 : SC4 scenario completion not marked correctly
2018-01-28 21:38:37 +01:00
Michael Steenbeek
755add6c9a
Compile localisation folder as C++
2018-01-06 18:32:25 +01:00
Ted John
02c58a6c5a
Remove custom base Exception class
2018-01-05 18:11:47 +00:00
Michał Janiszewski
4d0c88fb94
Mark constructors explicit ( #6928 )
2018-01-04 01:12:34 +00:00
Ted John
49f5611bd1
Rename scenario.c|h to cpp
2018-01-03 15:07:17 +01:00
Robert Jordan
92fc010b9a
Feature: "Load Scenario" title sequence command
...
New command goes by LOADSC in script files and in the enumeration.
Scenarios are stored using the internal also used for localisation.
Scenarios selected can only be scenarios to originally come with one of
the games or expansions.
Modified Scenario Select window to have a mode just for title editor
scenario selection.
2017-12-31 12:42:40 +01:00
Hielke Morsink
79aa4a99cf
Use range-based for loops
2017-12-08 11:06:43 +01:00
Robert Jordan
7d6bfa19ea
Fix #6452 : scenario text truncated when switching architectures
...
`ScenarioFileIndex`'s `Serialize` and `Deserialize` now read and write each
individual value of a `scenario_index_entry` instead of the entire struct
at once. Thus the difference in pointer sizes of `highscore` on different
architecture builds will not cause issues with `scenarios.idx`.
2017-10-13 10:00:42 +02:00
Gymnasiast
e6faf6b7c4
Fix #6201 , #6250 : custom RCT1 scenarios cause empty scenario list entry
...
The scenario repository did not correctly handle custom RCT1 scenarios.
They were not listed, but if they existed, an empty entry would appear in the scenario list.
This fixes both issues, and also prints a warning message, should this ever happen again.
2017-10-03 07:48:02 +02:00
Michał Janiszewski
00fd18809c
Move extern "C" {} blocks to headers ( #6282 )
2017-09-18 17:05:28 +02:00
Ted John
8808444562
Refactor TrackDesignRepository to use FileIndex
2017-08-30 21:01:07 +01:00
Ted John
92b17b149c
Remove old index code from ScenarioRepository
2017-08-30 19:35:43 +01:00
Ted John
ed8483f5c3
Time index building and handle bad files
2017-08-30 19:27:25 +01:00
Ted John
ff6f257a87
Clean up mega park import
2017-08-30 19:11:39 +01:00
Ted John
e417d2f8b0
Fix all errors
2017-08-30 18:40:42 +01:00
Ted John
2646ac3f56
Create index file for scenario repository
...
Speeds up load time for game and scenario select window.
2017-08-29 17:58:35 +01:00
Keatzee
b89e01de8b
Fix #5788 : Empty scenario name becomes invisible list entry ( #6197 )
2017-08-19 07:49:35 +02:00
Keatzee
96a3f6a861
Resolve #5909 : Import mp.dat from RCT1 installation
2017-08-10 21:46:15 +02:00
Ted John
8b2eb8a13e
Move screen variables to OpenRCT2.h
2017-07-29 20:29:29 +01:00
Ted John
e6e503a853
Move path related functions to Context.cpp
...
- rct2_init_directories
- get_file_path
2017-07-29 20:29:26 +01:00
Ted John
2eb9657781
Fix premature deletion of dependencies ( #5952 )
...
In particular, the object repository can potentially be deleted before the object manager is deleted. This causes a crash when the object manager is deleted because it requires the object repository within the destructor.
2017-07-20 17:44:31 +01:00
rwjuk
ab38c07fb9
Make object window work with S4s and scenarios
2017-07-01 01:29:34 +01:00
Ted John
0d8f9d6618
Refactor IPlatformEnvironment ( #5590 )
2017-06-11 12:53:37 +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
fb2c835d52
Include new config header
2017-02-18 15:45:10 +00:00
Ted John
5eee31f69a
Use SawyerChunkReader instead of SawyerEncoding
2017-02-05 12:18:07 +00:00
Ted John
fed4c248e3
Remove use of SDL RWOps from title sequence player
2017-02-02 22:00:01 +00:00
Ted John
5c1f2f4c43
Replace IS4Importer with IParkImporter
2017-02-02 22:00:01 +00:00
Ted John
2b045ddb9b
Use streams for reading parks in S4 importer
2017-02-02 22:00:01 +00:00
Ted John
72800acd5c
Fix std::string used as char *
2017-01-31 17:59:42 +00:00
Ted John
a8e329ef99
Implement getting sc entries from SC4s
2017-01-31 17:54:39 +00:00
Ted John
c9d7cd8216
Refactor loading of SC6 information when scanning scenarios
2017-01-31 17:54:39 +00:00
Ted John
8fb55a1f06
Move scores.dat structs to rct2.h
2017-01-17 12:21:57 +00:00
Broxzier
60603ae10a
Use types from common.h
2017-01-14 12:37:31 +01:00
Ted John
b79af110c7
Fix more warnings
2017-01-12 18:02:28 +00:00
Ted John
25bc798ff8
Move contents of src into project sub directory
2017-01-04 17:44:12 +00:00