From 0d6e1ba96df7dd06ca40069e4cc6b7d83c5a0475 Mon Sep 17 00:00:00 2001 From: Sara Date: Fri, 20 Sep 2024 11:53:29 +0200 Subject: [PATCH] chore: cleanup of some LOGs and comment formatting --- src/core/resources.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/core/resources.c b/src/core/resources.c index c718d5e..6332c39 100644 --- a/src/core/resources.c +++ b/src/core/resources.c @@ -96,19 +96,18 @@ void Internal_IndexResourceDirectory() { .type = ResourceGetTypeFromPath(g_resource_files.paths[i]) }; // only index resources that the engine knows how to load - if(placeholder.type == RESOURCE_SHADER) { // shaders are made up of two files, so their paths are treated differently + // shaders are made up of two files, so their paths are treated differently + if(placeholder.type == RESOURCE_SHADER) { // if the shader has already been added, don't accidentally add it twice. ResourceContainer *found_container = hash_map_get_as(ResourceContainer, &g_resource_map, &placeholder.name); if(found_container == NULL) { placeholder.path = GetDirectoryPath(placeholder.path); LOG_INFO("Internal_IndexResourceDirectory: Indexing %s as %s", placeholder.path, placeholder.name); hash_map_insert(&g_resource_map, &placeholder.name, &placeholder); - LOG_INFO("hash: %zu", strhash(placeholder.name)); } } else if(placeholder.type != RESOURCE_MAX) { // regular resources LOG_INFO("Internal_IndexResourceDirectory: Indexing %s as %s", placeholder.path, placeholder.name); hash_map_insert(&g_resource_map, &placeholder.name, &placeholder); - LOG_INFO("hash: %zu", strhash(placeholder.name)); } } }