From 86ec1c08c2bf41940512ad48538f8a9b9a1b5f1a Mon Sep 17 00:00:00 2001 From: Ray Date: Fri, 5 Sep 2025 23:07:29 +0200 Subject: [PATCH] Update rexm.c --- tools/rexm/rexm.c | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/tools/rexm/rexm.c b/tools/rexm/rexm.c index 4c1667dbe..8eee12ba4 100644 --- a/tools/rexm/rexm.c +++ b/tools/rexm/rexm.c @@ -2287,8 +2287,16 @@ static void UpdateSourceMetadata(const char *exSrcPath, const rlExampleInfo *inf // Update copyright message // String: "* Copyright (c) 2019-2025 Contributor Name (@github_user) and Ramon Santamaria (@raysan5)" - exTextUpdated[4] = TextReplaceBetween(exTextUpdated[3], - TextFormat("%i-%i %s (@%s", info->yearCreated, info->yearReviewed, info->author, info->authorGitHub), "Copyright (c) ", ")"); + if (info->yearCreated == info->yearReviewed) + { + exTextUpdated[4] = TextReplaceBetween(exTextUpdated[3], + TextFormat("%i %s (@%s", info->yearCreated, info->author, info->authorGitHub), "Copyright (c) ", ")"); + } + else + { + exTextUpdated[4] = TextReplaceBetween(exTextUpdated[3], + TextFormat("%i-%i %s (@%s", info->yearCreated, info->yearReviewed, info->author, info->authorGitHub), "Copyright (c) ", ")"); + } // Update window title // String: "InitWindow(screenWidth, screenHeight, "raylib [shaders] example - texture drawing");"