Michał Janiszewski
3f7fd56328
Remove trailing whitespace in sources
2016-11-13 20:32:55 +01:00
Ted John
4662b648d2
Merge pull request #4700 from IntelOrca/refactor/language-cpp
...
Refactor language.cpp
2016-11-09 18:38:24 +00:00
Michał Janiszewski
44e9129af5
Remove unused semicolons after end of function
...
[ci skip]
2016-11-09 13:15:46 +01:00
Ted John
941d92dc2a
Fix convert_multibyte_charset
2016-11-08 17:02:37 +00:00
Michał Janiszewski
b164c2be61
Extract openrct2_assert to guard.h ( #4753 )
...
* Extract openrct2_assert to Guard.hpp
`openrct2_assert` is not defined in util.c and including all of
openrct2.h is unnecessary.
2016-11-06 21:02:25 +01:00
Michał Janiszewski
43a7e6b854
Add missing static keyword to template-ised functions ( #4750 )
...
This fixes building with ICC
2016-11-06 21:01:07 +01:00
Ted John
c268b51521
Merge pull request #4757 from janisozaur/memory
...
Ensure all memory allocated with Memory is valid
2016-11-06 11:28:30 +00:00
Michał Janiszewski
2c6c99dfe0
Add user-friendly information about failed allocation
2016-11-06 11:59:30 +01:00
Michał Janiszewski
c9a1ce593c
Fix wrong return value in Stopwatch::GetElapsedTicks
2016-11-05 22:40:28 +00:00
Michał Janiszewski
e4e6f2f68a
Ensure all memory allocated with Memory is valid
2016-11-05 23:12:35 +01:00
Ted John
3d529ff6b8
Fix more memory leaks in FileScanner
2016-10-24 12:23:27 +01:00
Michał Janiszewski
6c4ff285b4
Fix memory leak in FileScanner
2016-10-23 22:58:18 +02:00
Michał Janiszewski
73aede6052
Fix memory leak in TrackDesignRepository
2016-10-23 22:46:59 +02:00
Michał Janiszewski
a75c1f1bc4
Fix memory leak in FileScanner
2016-10-23 22:28:35 +02:00
Ted John
712e062bcc
Only load tracks if cache is invalid
2016-10-23 01:12:17 +01:00
Ted John
25a7b98be0
Omit . and .. from linix file scanning too
2016-10-22 23:09:45 +01:00
Ted John
a2efab7c45
Add unix file scanner implementation
2016-10-22 22:36:45 +01:00
Ted John
7834afb34a
Re-write FileScanner for easier cross platform and multiple patterns
2016-10-22 22:36:45 +01:00
Ted John
9118f24778
Rename FileEnumerator to FileScanner
2016-10-22 22:36:45 +01:00
Ted John
16626eabb8
Convert FileEnumerator to IFileScanner
2016-10-22 22:36:45 +01:00
Ted John
29f75a71fb
Use new item structure with std::string
2016-10-22 22:36:45 +01:00
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