bool h_does_file_exist()

in helpers.c [7:18]


bool h_does_file_exist(const char* path)
{
    WIN32_FIND_DATAA data = { 0 };
    HANDLE handle = INVALID_HANDLE_VALUE;
    bool result = false;

    handle = FindFirstFileA(path, &data);
    result = INVALID_HANDLE_VALUE != handle;
    CloseHandle(handle);

    return result;
}