From b51ef4ba64c3e39e9aac207d4c912648aceea3bc Mon Sep 17 00:00:00 2001 From: Raimon Zamora Date: Fri, 1 May 2026 15:42:13 +0200 Subject: [PATCH] - [FIX] Arreglats paths a version.h en el scripts - [TEST] Tornat a SDL_GetTicks per a probar si te que vore en el mode 'Benny Hill' de Joup --- do_release.sh | 2 +- publish_gitea.sh | 2 +- source/backends/SDL3/base.cpp | 4 ++++ source/backends/backend.cpp | 12 ++++++------ source/mini/mini.cpp | 2 +- source/mini/version.h | 2 +- 6 files changed, 14 insertions(+), 10 deletions(-) diff --git a/do_release.sh b/do_release.sh index 6cc3f52..f29068f 100755 --- a/do_release.sh +++ b/do_release.sh @@ -7,7 +7,7 @@ set -e #fi # Leer versión desde version.h -VERSION=$(grep '#define MINI_VERSION' version.h | sed 's/.*"\(.*\)".*/\1/') +VERSION=$(grep '#define MINI_VERSION' source/mini/version.h | sed 's/.*"\(.*\)".*/\1/') echo "Versión detectada: $VERSION" #PARAM=$1 diff --git a/publish_gitea.sh b/publish_gitea.sh index 7210fa6..33b1377 100755 --- a/publish_gitea.sh +++ b/publish_gitea.sh @@ -14,7 +14,7 @@ if [ -z "$GITEA_TOKEN" ]; then fi # Leer versión desde version.h -VERSION=$(grep '#define MINI_VERSION' version.h | sed 's/.*"\(.*\)".*/\1/') +VERSION=$(grep '#define MINI_VERSION' source/mini/version.h | sed 's/.*"\(.*\)".*/\1/') echo "Versión detectada: $VERSION" #PARAM=$1 diff --git a/source/backends/SDL3/base.cpp b/source/backends/SDL3/base.cpp index d8b0683..eea2efe 100644 --- a/source/backends/SDL3/base.cpp +++ b/source/backends/SDL3/base.cpp @@ -91,6 +91,10 @@ namespace backend SDL_SetClipboardText(value); } + uint64_t get_time_ms() { + return SDL_GetTicks(); + } + } #endif \ No newline at end of file diff --git a/source/backends/backend.cpp b/source/backends/backend.cpp index 11f755d..1782e6b 100644 --- a/source/backends/backend.cpp +++ b/source/backends/backend.cpp @@ -3,12 +3,12 @@ namespace backend { - uint64_t get_time_ms() { - using namespace std::chrono; - return duration_cast( - steady_clock::now().time_since_epoch() - ).count(); - } +// uint64_t get_time_ms() { +// using namespace std::chrono; +// return duration_cast( +// steady_clock::now().time_since_epoch() +// ).count(); +// } void exit() { current_state = quitting; diff --git a/source/mini/mini.cpp b/source/mini/mini.cpp index 90d2b3a..12ebb08 100644 --- a/source/mini/mini.cpp +++ b/source/mini/mini.cpp @@ -135,7 +135,7 @@ int main(int argc,char*argv[]){ //#ifdef DEBUG // SDL_SetLogPriority(SDL_LOG_CATEGORY_APPLICATION, SDL_LOG_PRIORITY_DEBUG); - // log_msg(LOG_UNSALTED, "MINI v%s\n",MINI_VERSION); + log_msg(LOG_UNSALTED, "MINI v%s\n",MINI_VERSION); //#endif // Gestió de arguments diff --git a/source/mini/version.h b/source/mini/version.h index 958ad73..7650286 100644 --- a/source/mini/version.h +++ b/source/mini/version.h @@ -1,3 +1,3 @@ #pragma once -#define MINI_VERSION "1.5.1" +#define MINI_VERSION "1.5.1Test"