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
Ted John
7754204a25
finish conversion of RCT1 import to c++
2016-04-22 18:25:19 +01:00
Ted John
cf7b81fd3a
start moving RCT1 importer to C++
2016-04-22 18:24:54 +01:00
IntelOrca
4b2776f266
move code from Diagnostics and Guard to cpp
2016-04-20 18:11:06 +01:00
IntelOrca
1daa657657
fix #3091 : Korean words corrupted if over byte limit
2016-03-10 18:48:00 +00:00
Michał Janiszewski
2ebb691e71
minor fixes
...
* initialize variables properly
* fixes to handling of zenity/kdialog on Linux
* remove unnecessary call
2016-02-14 21:06:44 +01:00
Michał Janiszewski
d274abdcce
Fixes for GCC
...
Makes jansson library required as well
2016-02-03 18:23:47 +00:00
IntelOrca
5c2e951d3f
fix remaining issues with theme refactor branch
2016-02-03 18:23:45 +00:00
IntelOrca
7e1ce4fcc6
reinstate theme editor and fix bugs
2016-02-03 18:23:45 +00:00
IntelOrca
caf9bd9939
get game working with new theme manager
...
Theme editor currently unavailable.
2016-02-03 18:23:44 +00:00
IntelOrca
0eb57e5fb5
start work on theme manager
2016-02-03 18:23:43 +00:00
IntelOrca
b1b9741090
add JSON helpers
2016-02-03 18:23:42 +00:00
IntelOrca
d67d6a4831
add more core classes
2016-02-03 18:23:41 +00:00
Michał Janiszewski
95e3895b89
Game commands' argument validation
2016-01-24 19:31:40 +01:00
IntelOrca
4c1605f268
refactor and format old C++ code
2016-01-23 18:58:31 +00:00
Michał Janiszewski
3bf1e0e06d
Rename safe_strncpy to safe_strcpy
2016-01-18 20:49:52 +01:00