summaryrefslogtreecommitdiff
path: root/main.cpp
diff options
context:
space:
mode:
authorFox Caminiti <fox@foxcam.net>2022-08-24 20:40:39 -0400
committerFox Caminiti <fox@foxcam.net>2022-08-24 20:40:39 -0400
commitae94b4b9fc5b4443f6d9eb6bb450de1def108cdb (patch)
treef2b3fbbb490c36d06f5704024bc1ab6be7feada9 /main.cpp
parent2e0e12140e95be18abf3cf7e54230ef22f410fbd (diff)
fixes for gl core; create/delete developing
Diffstat (limited to 'main.cpp')
-rw-r--r--main.cpp9
1 files changed, 6 insertions, 3 deletions
diff --git a/main.cpp b/main.cpp
index 85f1ed4..52cfae6 100644
--- a/main.cpp
+++ b/main.cpp
@@ -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);