Basssiiie
8ebb607fc4
Fix #21632 : Crash when loading custom image larger than 300 by 300 pixels ( #26934 )
...
Fixes #21632 : a few crashes that can occur when loading a custom image via plugins.
- Catch `std::exception` instead of `std::runtime_error` because the 300x300 check throws a [`std::invalid_argument`](https://github.com/OpenRCT2/OpenRCT2/blob/11da390704950cd30f1275c392140480908183a0/src/openrct2/drawing/ImageImporter.cpp#L34 ) exception and `std::exception` is the base class of both (`std::runtime_error` is not).
- Replaced a few asserts with `std::runtime_error`s as well, because the test script supplied in the issue was tripping over those as well.
Now instead of crashing the game or throwing an assert, they log nice readable errors to the console for plugin developers.
2026-08-16 10:58:51 +00:00
Michael Bernardi
99dee55494
Fix JSDrawCustomImage using wrong ctx
2026-04-01 02:19:01 +11:00
Michael Bernardi
421530c3ea
Use class prototypes for all script types.
2026-04-01 02:19:01 +11:00
16cd1c07ff
Swap Duktape for quickjs-ng
...
Co-authored-by: Basssiiie <Basssiiie@users.noreply.github.com >
Co-authored-by: Tulio Leao <tupaschoal@gmail.com >
2026-04-01 02:18:36 +11:00
Aaron van Geffen
40aaf97c07
Update copyright years to 2026 ( #25741 )
2026-01-05 13:42:59 +00:00
Gymnasiast
c2b4158573
Split tracks.dat from g2.dat
2025-05-29 21:25:33 +02:00
Michael Steenbeek
7ddb806063
Close #24324 : Split font.dat from g2.dat
2025-05-09 14:01:28 +02:00
73
b9b2c96c97
Rename sprites.h to SpriteIds.h ( #23804 )
2025-02-13 15:51:46 +00:00
Aaron van Geffen
fa06a49302
Update copyright year to 2025 ( #23514 )
2024-12-31 20:30:04 +01:00
Aaron van Geffen
3685d1a24b
clang-format: change IndentPPDirectives to BeforeHash ( #23287 )
2024-11-29 12:04:56 +09:00
Arnold Zhou
0254b570d8
Dukvalue uint int fixes
2024-06-06 21:39:22 +02:00
James103
1d8dc111f1
Replace 2023 with 2024 in copyright headers ( #21139 )
...
Replace all instances of the year 2023 with 2024 in all copyright headers
2024-01-01 12:52:28 +01:00
James103
73738bbdc8
Replace 2022 with 2023 in copyright headers
...
Replace all instances of the year 2022 with 2023 in all copyright headers
2023-01-01 11:58:01 +01:00
73
b9e677945d
Replace 20XX with 2022 ( #18158 )
...
* Replace 2020 with 2022
Replace all 2020 headers with 2022
* replace other years with 2022
add missing years
2022-10-01 08:42:14 +01:00
Ted John
6863fb1ecb
Return undefined instead of null
2022-03-24 23:33:07 +00:00
Ted John
818dcacb31
Add draw to image API
2022-03-24 22:37:22 +00:00
Ted John
e3a1733cdd
Implement plugin ownership of images
2022-03-24 22:37:22 +00:00
Ted John
e74396b464
Refactor and implement RLE custom images
2022-03-24 22:37:22 +00:00
Ted John
8f30ed910f
Start working on custom image APIs
2022-03-24 22:37:21 +00:00
Ted John
a324bfab63
Add image manager plugin API ( #16144 )
2021-12-07 20:55:27 +00:00