Commit Graph

7 Commits

Author SHA1 Message Date
EmosewaMC
9f156d59e1 Even more proper handling... 2022-09-07 01:39:54 -07:00
EmosewaMC
96d3af3fcc Error handling for string 2022-09-07 01:18:26 -07:00
EmosewaMC
c94909e4f5 Address numerous bugs
DELETE CASCADE is not a valid SQL command so this was changed to a better delete statement.

Added user confirmation before deleting a broken model.
Address appending the string model appending bad data, causing excess deletion.
Addressed memory leaks with sql::Blob
2022-09-07 01:13:03 -07:00
EmosewaMC
b434bf9e78 Delete from query change
Changed from delete to delete cascade and instead deleting from properties_contents as opposed to ugc.
2022-09-06 04:18:56 -07:00
EmosewaMC
5d7efbd174 Add functionality to delete bad models
Adds functionality to delete bad models.  Models are batched together and deleted in one commit.

More testing is needed to ensure data safety.  Positive tests on a live database reveal the broken models were truncated and complete ones were kept around successfully.  Tests should be done to ensure larger sd0 models are properly saved and not truncated since this command should be able to be run any time.

Valgrind tests need to be run as well to ensure no memory leaks exist.
2022-09-06 03:57:36 -07:00
EmosewaMC
06a1778c6f moving to laptop
ignore this commit.  I need to move this to my laptop
2022-09-05 23:59:54 -07:00
EmosewaMC
8cd7526dae Add Sd0Conversion
Add brick by brick conversion commands with 2 parameters to tell the program what to do with the data.

Add zlib -> sd0 conversion.  Files look good at a glance but should be tested in game to ensure stability.  Tests to come.
2022-08-19 01:58:50 -07:00