diff options
author | Fox Caminiti <fox@foxcam.net> | 2022-08-24 20:40:39 -0400 |
---|---|---|
committer | Fox Caminiti <fox@foxcam.net> | 2022-08-24 20:40:39 -0400 |
commit | ae94b4b9fc5b4443f6d9eb6bb450de1def108cdb (patch) | |
tree | f2b3fbbb490c36d06f5704024bc1ab6be7feada9 /main.cpp | |
parent | 2e0e12140e95be18abf3cf7e54230ef22f410fbd (diff) |
fixes for gl core; create/delete developing
Diffstat (limited to 'main.cpp')
-rw-r--r-- | main.cpp | 9 |
1 files changed, 6 insertions, 3 deletions
@@ -331,8 +331,11 @@ int main(int argc, char *argv[]) { { ImGui_ImplSDL2_ProcessEvent(&event); if (event.type == SDL_DROPFILE) { - printf("%s", event.drop.file); - // AddSource(File, Memory, event.drop.file); + char *DropFile = event.drop.file; + // TODO(fox): Free failed strings if too many get created! + void *SourceString = String_GenerateFromChar(Memory, DropFile); + Source_Generate(File, Memory, SourceString); + SDL_free(DropFile); } if (event.type == SDL_QUIT) State.IsRunning = false; @@ -356,7 +359,7 @@ int main(int argc, char *argv[]) { ImGui_EffectsPanel(&File, &State, &Memory, &UI, io); - ImGui_PropertiesPanel(&File, &State, &UI, &Memory); + ImGui_PropertiesPanel(&File, &State, &UI, &Memory, io); ImGui_Timeline(&File, &State, &Memory, &UI, io); |