From ed78991edc4755c0276dcb4eb454b43fa38296fc Mon Sep 17 00:00:00 2001 From: dacctal Date: Fri, 3 Apr 2026 14:56:05 +0000 Subject: countless changes --- src/lua_build.cc | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'src/lua_build.cc') diff --git a/src/lua_build.cc b/src/lua_build.cc index b75e2f3..7d89450 100644 --- a/src/lua_build.cc +++ b/src/lua_build.cc @@ -5,11 +5,12 @@ #include #include -#include "vars.cc" +#include "lua_build.hh" +#include "vars.hh" std::map build_files; -void lua_build (const char *path) { +bool lua_build(const char *path) { lua_State *L = lua_open(); luaL_openlibs(L); @@ -47,12 +48,11 @@ void lua_build (const char *path) { std::cout << "calling lua build function according to key filename '"<< key << "'...\n"; if (lua_pcall(L, 1, 0, 0) != 0) { std::cout << print_error << "lua build function failed to run\n"; + break; } if (build_found) { break; } } lua_pop(L, 1); } - if (!build_found) { - std::cout << print_error << "no usable build system was found\n"; - } + return build_found; } -- cgit v1.2.3