1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2026-01-20 05:23:04 +01:00
Commit Graph

58 Commits

Author SHA1 Message Date
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
Ted John
52928e1e08 protect objects against invalid allocation ids 2016-07-08 22:58:38 +01:00
Ted John
6f97ec798e remove object entry addresses and use constants 2016-07-08 22:58:38 +01:00
Ted John
7124143b89 do more cleanup of old object code 2016-07-08 22:58:38 +01:00
Ted John
faf1f08b7f fix loading object via console 2016-07-08 22:58:38 +01:00
Ted John
a47c039f22 remove lots of old object code 2016-07-08 22:58:38 +01:00
Ted John
7e1f948e19 remove required flag (unused) and fix scenery selection 2016-07-08 22:58:38 +01:00
Ted John
52c11267bc add small scenery preview 2016-07-08 22:58:38 +01:00
Ted John
13a560fb1d fix ride type sorting and add water preview 2016-07-08 22:58:38 +01:00
Ted John
f6d6d93580 fix highlight object in object selection 2016-07-08 22:58:38 +01:00
Ted John
554d445db4 migrate more of object selection 2016-07-08 22:58:38 +01:00
Ted John
343623c815 move more code from old object list to new repository 2016-07-08 22:58:38 +01:00
Ted John
db304cdfcb fix filtering on object selection 2016-07-08 22:58:38 +01:00
Ted John
840179299c scrap object exetended and add sort ability
Not yet sure if we need to sort object repository, but add code for it anyway.
2016-07-08 22:58:38 +01:00
Ted John
6c7bc9b158 add methods to get object repo items 2016-07-08 22:58:38 +01:00
Ted John
202b754d8d fix ride type to ride entry map 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
cf714e9a1a save new objects to user directory 2016-07-08 22:58:38 +01:00
Ted John
904b5923ca support objdata recursive and user directory 2016-07-08 22:58:38 +01:00
Ted John
9e142efbd2 display the number of files scanned 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
01cd37316c prepare unpacking objects 2016-07-08 22:58:38 +01:00
Ted John
84bd948488 report object scan time 2016-07-08 22:58:38 +01:00
Ted John
50b7e4222f remove a lot of old object code 2016-07-08 22:58:38 +01:00