Goober5000
343d9a36d4
std::unique_ptr refactoring
...
Use `std::unique_ptr` rather than `vm_malloc` and `vm_free` to handle optional strings in ship classes. This makes the code more robust and increases memory safety. This also allows several string variables to be consolidated in the ship class and weapon class script APIs.
Also add new `stuff_string()` overloads and a new `F_TRIMMED` string parsing type to handle the new fields and the string trimming done inside `stuff_malloc_string()`.
2025-03-04 22:52:53 -05:00
..
2024-03-13 15:23:44 -04:00
2024-03-13 15:23:44 -04:00
2024-11-25 20:10:38 +01:00
2024-06-16 01:58:47 -04:00
2022-12-09 13:10:39 -05:00
2009-06-20 08:08:20 +00:00
2023-07-13 01:54:25 -04:00
2009-06-20 08:08:20 +00:00
2024-11-07 23:33:13 -05:00
2024-11-07 23:33:13 -05:00
2023-12-06 09:59:36 -06:00
2009-06-20 08:08:20 +00:00
2023-12-06 09:59:36 -06:00
2021-12-23 09:06:26 -05:00
2024-06-18 20:10:01 +02:00
2024-04-17 17:48:57 +00:00
2024-06-18 20:10:01 +02:00
2024-06-18 20:10:01 +02:00
2022-05-17 07:50:50 -04:00
2009-06-20 08:08:20 +00:00
2024-06-03 22:19:29 -04:00
2017-03-15 19:34:11 +01:00
2023-11-26 12:23:57 +01:00
2023-03-28 03:07:03 +09:00
2020-11-21 00:57:03 -05:00
2020-11-21 00:57:03 -05:00
2024-09-21 01:00:24 -04:00
2024-06-18 20:10:01 +02:00
2022-05-17 07:50:50 -04:00
2019-12-26 07:59:14 -05:00
2025-02-22 20:55:01 -05:00
2023-12-06 09:59:36 -06:00
2024-04-07 12:28:24 -04:00
2024-04-07 12:28:24 -04:00
2025-01-12 11:29:11 -05:00
2009-06-20 08:08:20 +00:00
2016-05-30 14:08:28 -07:00
2016-05-30 13:59:51 -07:00
2022-06-23 05:55:52 -04:00
2016-08-22 17:54:53 +02:00
2022-01-18 06:39:50 -05:00
2019-12-12 08:06:59 -05:00
2025-02-22 20:55:01 -05:00
2024-03-13 15:23:44 -04:00
2019-11-03 16:27:23 -05:00
2017-01-04 00:28:22 +01:00
2024-11-07 23:33:13 -05:00
2024-11-07 23:33:13 -05:00
2022-05-13 00:35:40 -04:00
2022-05-13 00:35:40 -04:00
2019-11-08 02:07:14 -05:00
2019-11-08 02:07:14 -05:00
2022-12-23 00:51:31 -05:00
2013-11-25 18:40:16 +10:00
2022-11-14 10:30:28 -05:00
2022-11-14 10:30:28 -05:00
2022-11-14 15:58:41 +00:00
2022-11-14 15:58:41 +00:00
2015-11-20 12:24:10 +01:00
2009-06-20 08:08:20 +00:00
2024-05-31 14:53:39 +02:00
2009-06-20 08:08:20 +00:00
2022-05-17 07:50:50 -04:00
2011-09-06 21:22:39 +00:00
2024-03-22 11:51:27 -04:00
2024-03-22 11:51:27 -04:00
2021-05-04 18:26:06 -07:00
2020-08-30 00:01:00 -04:00
2025-03-02 23:07:09 -05:00
2024-11-07 23:33:13 -05:00
2025-03-04 22:52:53 -05:00
2024-04-17 13:24:27 -04:00
2024-04-08 19:19:03 -04:00
2024-04-02 17:34:06 +00:00
2024-12-08 23:34:58 -05:00
2024-11-07 23:33:13 -05:00
2024-11-25 20:10:38 +01:00
2024-11-25 20:10:38 +01:00
2024-11-25 20:10:38 +01:00
2021-12-23 09:06:26 -05:00
2022-12-09 13:10:39 -05:00
2023-10-24 20:33:45 -04:00
2020-02-29 17:09:55 +01:00
2024-11-25 20:10:38 +01:00
2021-12-23 09:06:26 -05:00