Commit Graph
81 Commits
Author SHA1 Message Date
Ted John 31d4f79dc5 Merge pull request #4878 from Broxzier/cpp_fixes
CppCheck fixes
2016-12-28 12:57:34 +00:00
Ted John 1e780d656f Make CLI object scan a command instead of a flag. 2016-12-28 01:18:13 +00:00
wolfreak99 6ba51e36da Make -force-scan command run without starting game
reformat object_list_load to use parameter instead of external flag boolean

remove object_list_load_force_scan, call directly from RootCommands
2016-12-26 19:27:58 -05:00
wolfreak99 5cd6c864a5 implement "force-scan" command
Formatting improvements
2016-12-26 19:27:55 -05:00
wolfreak99 47fe2d42b1 Count number of object conflicts during scan 2016-12-26 19:27:49 -05:00
Broxzier 6c29bdbf21 CppCheck fixes 2016-12-24 13:10:03 +01:00
Michał Janiszewski 50d26d87eb Initialise fields to safe values 2016-12-19 23:59:03 +01:00
Ted John c5899139d7 Move scenario sources to sub directory 2016-12-16 01:25:05 +00:00
Ted John 3e21e56b9e Use correct directory base 2016-12-14 00:32:06 +00:00
Ted John cc227b7761 Create repositories in OpenRCT2.c 2016-12-14 00:32:06 +00:00
Ted John c3285ef8f5 Use enum class instead of enum 2016-12-14 00:32:06 +00:00
Ted John e9c778e886 Use IPlatformEnvironment for ObjectRepository 2016-12-14 00:32:06 +00:00
Michał Janiszewski 54e622659d Extract common parts from rct2.h to common.h 2016-12-01 16:03:16 +01:00
Michał Janiszewski 3f7fd56328 Remove trailing whitespace in sources 2016-11-13 20:32:55 +01:00
Michał Janiszewski 3653baf720 Remove needless const for returned values 2016-11-04 09:44:13 +01:00
Ted John 712e062bcc Only load tracks if cache is invalid 2016-10-23 01:12:17 +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 babf261542 Refactor scenario list 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
Michał Janiszewski 3c4a683701 Fix #4558: Crash on loading invalid scenario 2016-10-08 21:23:03 +01:00
Michał Janiszewski 7b637a8f95 Fix #4477: Pack ObjectRepositoryHeader to ensure cache is valid in all builds 2016-09-24 15:56:25 +01:00
Michał Janiszewski b90f27a971 Plug memory leak in ObjectRepository 2016-09-19 18:34:08 +01:00
Michał Janiszewski 163e314379 Remove unused or set-but-not-read variables 2016-09-07 13:39:29 +01:00
Ted John 8cf7e87b5c Fix many warnings for x64 2016-08-27 23:32:15 +01:00
Ted John 5f41e3a0eb add function and line info to guards 2016-07-16 14:17:36 +01:00
Ted John edb4a4a822 fix get capacity string for vehicles 2016-07-11 22:50:55 +01:00
Ted John 4bf9748143 fix drawing of object preview
We can't use dpi->width and dpi->height as they only define the clip region, not the viewport
2016-07-11 22:09:15 +01:00
Ted John 81a597ab0d append salt bytes inside encoded data chunk 2016-07-11 19:09:16 +01:00
Ted John cf59929eaa add extra salt bytes to exported objects if checksum is wrong 2016-07-11 18:42:43 +01:00
Ted John 0a5ce82632 log warnings and information as verbose 2016-07-10 16:34:54 +01:00
Ted John 853e002b4f disable checksum validation 2016-07-10 00:29:32 +01:00
Ted John 8fd81c3b75 initialise legacy object list on startup 2016-07-09 22:37:22 +01:00
Ted John ce878723d7 add helper methods for object entry names 2016-07-09 15:29:04 +01:00
Ted John 3c64010fe1 Make Console::Error::WriteLine formattable 2016-07-09 15:02:05 +01:00
Ted John 8c2393f5c5 don't export invalid objects 2016-07-09 14:52:56 +01:00
Ted John a25d7aa535 check for LoadObjects failure 2016-07-09 14:13:46 +01:00
Ted John a8c1c451d5 fix freeing of non-pointer / union issue 2016-07-08 22:58:38 +01:00
Ted John 78c6b6a251 remove all unnecessary object resets 2016-07-08 22:58:38 +01:00
Ted John 4664b73488 remove object_unload_all 2016-07-08 22:58:38 +01:00
Ted John 8b03b996c0 ensure _objectRepository and _objectManager are freed 2016-07-08 22:58:38 +01:00
Ted John 60098aeef0 remove last use of object_load_chunk 2016-07-08 22:58:38 +01:00
Ted John 03674a450f improve performance of objects.idx loading 2016-07-08 22:58:38 +01:00
Ted John f59d6b7a00 implement unloading arbitrary objects 2016-07-08 22:58:38 +01:00
Ted John 488da7942c use object_manager_get_loaded_object instead 2016-07-08 22:58:38 +01:00
Ted John 5b9cb813e7 fix load_object cc 2016-07-08 22:58:38 +01:00
Ted John 13e9a76732 force a object repo reload if language changes 2016-07-08 22:58:38 +01:00
Ted John 2f8f10cd11 improve object loading efficiency 2016-07-08 22:58:38 +01:00
Ted John e8635c1307 prepare for better object loading 2016-07-08 22:58:38 +01:00