2 Commits
1.5.1 ... 1.5.2

Author SHA1 Message Date
d117cd3b8b - [FIX] Canvi de tipus del timer 2026-05-01 19:49:54 +02:00
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
7 changed files with 7 additions and 6 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

@@ -31,6 +31,7 @@ namespace backend
window = SDL_CreateWindow(title, width*zoom, height*zoom, SDL_WINDOW_OPENGL|(mini::win::state.fullscreen?SDL_WINDOW_FULLSCREEN:0)); window = SDL_CreateWindow(title, width*zoom, height*zoom, SDL_WINDOW_OPENGL|(mini::win::state.fullscreen?SDL_WINDOW_FULLSCREEN:0));
SDL_SetHint(SDL_HINT_RENDER_DRIVER, "opengl"); SDL_SetHint(SDL_HINT_RENDER_DRIVER, "opengl");
renderer = SDL_CreateRenderer(window, NULL); renderer = SDL_CreateRenderer(window, NULL);
SDL_SetRenderVSync(renderer, SDL_RENDERER_VSYNC_DISABLED);
// Mostrar o ocultar el cursor // Mostrar o ocultar el cursor
if (mini::win::state.cursor) SDL_ShowCursor(); else SDL_HideCursor(); if (mini::win::state.cursor) SDL_ShowCursor(); else SDL_HideCursor();

View File

@@ -3,7 +3,7 @@
namespace backend namespace backend
{ {
uint64_t get_time_ms() { uint32_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()

View File

@@ -20,7 +20,7 @@ namespace backend
void poll_events(); void poll_events();
const state_t& state(); const state_t& state();
void exit(); void exit();
uint64_t get_time_ms(); uint32_t get_time_ms();
char* clipboard(); char* clipboard();
void clipboard(const char* value); void clipboard(const char* value);

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"