- [FIX] en macos necesita stdlib.h explicit

This commit is contained in:
2026-05-16 08:10:27 +02:00
parent 342a74102b
commit d4e91ac56d
+2 -1
View File
@@ -3,6 +3,7 @@
#include "ascii.h"
#include <SDL3/SDL.h>
#include <math.h>
#include <stdlib.h>
void reverse(char* str, int len) {
int i = 0, j = len - 1, temp;
@@ -419,7 +420,7 @@ bool lua_is_playing() {
return lua_state == STATE_PLAYING;
}
const char boot[] = "function init()mode(1)cls()play('o5l0v5cegv4cegv3cegv2cegv1ceg')memcpy(360,4608,240)memcpy(1560,4848,240)ink(1)print('G A M E',8,16)ink(4)print('S Y S T E M',20,16)ink(7)print('mini',9,8)ink(8)print('v0.6.1',34,29)w=0 end function update()w=w+1 if w>90 then cls()load()end end";
const char boot[] = "function init()mode(1)cls()play('o5l0v5cegv4cegv3cegv2cegv1ceg')memcpy(360,4608,240)memcpy(1560,4848,240)ink(1)print('G A M E',8,16)ink(4)print('S Y S T E M',20,16)ink(7)print('mini',9,8)ink(8)print('v0.7.0',34,29)w=0 end function update()w=w+1 if w>90 then cls()load()end end";
void lua_init(const char* filename, const bool start_playing) {
if (lua_state != STATE_STOPPED) lua_quit();