windows build fixes
Some checks failed
demo.yaml / windows build fixes (push) Failing after 0s

This commit is contained in:
Jorijn van der Graaf 2026-03-01 15:47:13 +01:00
commit 390f12a17c

View file

@ -105,7 +105,7 @@ namespace Crafter {
std::filesystem::path GetPath() { std::filesystem::path GetPath() {
char path[MAX_PATH]; char path[MAX_PATH];
DWORD length = GetModuleFileNameA(NULL, path, MAX_PATH); DWORD length = GetModuleFileNameA(NULL, path, MAX_PATH);
std::cout << lenght << std::endl; std::cout << length << std::endl;
if (length == 0) { if (length == 0) {
std::cout << "failed" << std::endl; std::cout << "failed" << std::endl;
throw std::runtime_error("Failed to get executable path"); throw std::runtime_error("Failed to get executable path");