- [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
This commit is contained in:
2026-05-01 15:42:13 +02:00
parent d1e8425b09
commit b51ef4ba64
6 changed files with 14 additions and 10 deletions

View File

@@ -7,7 +7,7 @@ set -e
#fi #fi
# Leer versión desde version.h # 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" echo "Versión detectada: $VERSION"
#PARAM=$1 #PARAM=$1

View File

@@ -14,7 +14,7 @@ if [ -z "$GITEA_TOKEN" ]; then
fi fi
# Leer versión desde version.h # 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" echo "Versión detectada: $VERSION"
#PARAM=$1 #PARAM=$1

View File

@@ -91,6 +91,10 @@ namespace backend
SDL_SetClipboardText(value); SDL_SetClipboardText(value);
} }
uint64_t get_time_ms() {
return SDL_GetTicks();
}
} }
#endif #endif

View File

@@ -3,12 +3,12 @@
namespace backend namespace backend
{ {
uint64_t get_time_ms() { // uint64_t get_time_ms() {
using namespace std::chrono; // using namespace std::chrono;
return duration_cast<milliseconds>( // return duration_cast<milliseconds>(
steady_clock::now().time_since_epoch() // steady_clock::now().time_since_epoch()
).count(); // ).count();
} // }
void exit() { void exit() {
current_state = quitting; current_state = quitting;

View File

@@ -135,7 +135,7 @@ int main(int argc,char*argv[]){
//#ifdef DEBUG //#ifdef DEBUG
// SDL_SetLogPriority(SDL_LOG_CATEGORY_APPLICATION, SDL_LOG_PRIORITY_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 //#endif
// Gestió de arguments // Gestió de arguments

View File

@@ -1,3 +1,3 @@
#pragma once #pragma once
#define MINI_VERSION "1.5.1" #define MINI_VERSION "1.5.1Test"