regions and a whole bunch of other shit

This commit is contained in:
2026-01-30 01:13:28 -05:00
parent ca3a0f6691
commit 1b7a49c25d
28 changed files with 988 additions and 107 deletions
+2 -1
View File
@@ -86,7 +86,8 @@ namespace anm2ed
}
case SDL_EVENT_USER: // Opening files
{
std::string droppedFile = event.drop.data ? event.drop.data : "";
std::string droppedFile = event.user.data1 ? static_cast<const char*>(event.user.data1) : "";
if (event.user.data1) SDL_free(event.user.data1);
if (droppedFile.empty()) break;
auto droppedPath = path::from_utf8(droppedFile);
if (path::is_extension(droppedPath, "anm2"))