1 Commits

Author SHA1 Message Date
b51ef4ba64 - [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
2026-05-01 15:42:13 +02:00
6 changed files with 14 additions and 10 deletions

View File

@@ -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

View File

@@ -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

View File

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

View File

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

View File

@@ -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

View File

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