Ted John
f519bc6cad
Fix bugs
2016-10-15 21:50:52 +01:00
Ted John
babf261542
Refactor scenario list to C++
2016-10-15 21:50:52 +01:00
Ted John
b7f7af3123
Refactor scenario sources to C++
2016-10-15 21:50:52 +01:00
LRFLEW
e5ff7412e4
Refactor/Improve String and Path Handling
2016-10-09 15:29:58 -05:00
Duncan
b29be9bfeb
Merge pull request #4527 from zaxcav/fixPathfindHistory
...
Further pathfinding improvements
2016-10-07 12:08:36 +01:00
Michał Janiszewski
71d0861be1
Mark classes as final
...
This may hint compiler to de-virtualise some calls.
2016-10-04 18:14:29 +01:00
zaxcav
1810e56cc6
Fix #if defined for when compiling on DEBUG on non-Windows platforms.
2016-10-04 10:05:51 +02:00
Ted John
bf7feefb7d
Fix GCC / clang
2016-09-13 18:58:45 +01:00
Ted John
fdc0010525
Remove List.hpp
2016-09-13 18:29:38 +01:00
Ted John
774c72e1d1
Remove usage of List and refactor S4Importer
...
Extending the collection classes isn't being adopted enough and adds to much maintenance. Use collection utility methods instead.
2016-09-13 18:14:47 +01:00
Michał Janiszewski
a2a067f0f1
Add missing virtual destructor to IStringReader
2016-09-10 22:00:34 +02: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
Michał Janiszewski
163e314379
Remove unused or set-but-not-read variables
2016-09-07 13:39:29 +01:00
Ted John
eccea88388
Fix Guard::Assert with null message
2016-09-06 18:41:05 +01:00
Ted John
8cf7e87b5c
Fix many warnings for x64
2016-08-27 23:32:15 +01:00
Ted John
8b79ededd9
Fix #4164 : Keep on crashing on OpenRCT2 0.0.5
...
Caused by hrow; instead of hrow Exception() when the image table is too large.
2016-07-24 11:37:42 +01:00
Ted John
e5722e1d9a
Fix #4139 : Windows first time firewall launch
...
std::string can not handle nullptr as argument. Create and use helper method instead.
2016-07-19 21:53:18 +01:00
Ted John
fd32eef2f7
Merge pull request #4129 from janisozaur/g_sprite_list
...
Refactor access to g_sprite_list
2016-07-17 23:27:58 +01:00
Ted John
e6d1a71dad
Use assertion code for Guard::Fail
2016-07-17 23:20:40 +01:00
Michał Janiszewski
ce03b2fa5e
Add openrct2_assert function for C
2016-07-17 23:54:12 +02:00
Ted John
c413c43123
only include windows.h on windows
2016-07-16 14:49:41 +01:00
Ted John
bd3331df4f
call assert() if not using breakpad
2016-07-16 14:34:10 +01:00
Ted John
5f41e3a0eb
add function and line info to guards
2016-07-16 14:17:36 +01:00
Ted John
d25baf7bd3
improve assertion messages
2016-07-16 14:12:16 +01: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
81a597ab0d
append salt bytes inside encoded data chunk
2016-07-11 19:09:16 +01:00
Ted John
3c64010fe1
Make Console::Error::WriteLine formattable
2016-07-09 15:02:05 +01:00
Michał Janiszewski
639f19adbf
Fix define checks in project
2016-07-09 10:05:12 +02:00
Ted John
72f7f0f329
refactor object factory loading
2016-07-08 22:58:38 +01:00
Ted John
8ce9a66286
add better object read error logging
2016-07-08 22:58:38 +01:00
Ted John
d1dc6b528d
Add Memory::Copy overlap check and Memory::Move
2016-07-08 22:58:38 +01:00
Ted John
995bbffb84
trim string entries
2016-07-08 22:58:38 +01:00
Ted John
33d0bebad9
fix file / directory enumeration
2016-07-08 22:58:38 +01:00
Ted John
1b4079536d
try to read objects with bad image tables
2016-07-08 22:58:38 +01:00
Ted John
f0844370bb
create new FileEnumerator class
2016-07-08 22:58:38 +01:00
Ted John
09782e980c
implement saving of objects and fix other bugs
2016-07-08 22:58:38 +01:00
Ted John
2c02412f98
add ride object loading
2016-07-08 22:58:38 +01:00
Ted John
c9a1357994
add new MemoryStream class
2016-07-08 22:58:38 +01:00
Ted John
0fa703a1cb
add new ObjectCache class with Entry
2016-07-08 22:58:38 +01:00
Ted John
8dfbabbd07
refactor network, create ITcpSocket
...
Abstracts all socket code into a new class TcpSocket which is only exposed by a light interface, ITcpSocket. This now means that platform specific headers like winsock2.h and sys/socket.h do not have to be included in OpenRCT2 header files reducing include load and other issues.
2016-06-01 23:01:20 +01:00
Michał Janiszewski
4507ffdcb7
Fix clang builds
2016-05-27 20:28:35 +02:00
Ted John
3a1a474c7c
refactor key map to User and UserManager classes
2016-05-27 20:28:35 +02:00
Ted John
fe057c4470
handle null group ids
2016-05-27 20:28:34 +02:00
Ted John
d62c94f14a
use Console::WriteLine instead of log_info
2016-05-27 20:28:34 +02:00
janisozaur
658e877955
Name all the typdef-ed structs ( #3581 )
2016-05-12 22:57:40 +01:00
janisozaur
68bad6505c
Add and correct licence headers to all sources ( #3108 )
2016-05-04 18:24:41 +01:00
Ted John
ff1de46ca6
improve List::AddRange performance
2016-04-22 18:26:28 +01:00
Ted John
f3356caa39
add a CLI command for converting saved games <-> scenarios
2016-04-22 18:26:27 +01:00
Ted John
fb192bba0e
prevent adding duplicate footpath entries
2016-04-22 18:25:28 +01:00
Ted John
512ed6ce98
fix compile issues and bugs
2016-04-22 18:25:20 +01:00