Convertit "param" a variable global en lloc de anar marejant amb punterets i passant 8.000.000 de paràmetres

This commit is contained in:
2024-09-27 17:42:25 +02:00
parent c1bf0b8aed
commit 46b41757b2
28 changed files with 279 additions and 293 deletions

10
source/param.h Normal file
View File

@@ -0,0 +1,10 @@
#pragma once
#include <SDL2/SDL.h>
#include "common/utils.h"
#include "const.h"
extern param_t param;
// Establece valores para los parametros a partir de un fichero de texto
void loadParamsFromFile(std::string filePath);