blob: 337293673c0d9d4e492262c920c44c9b225791ef (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
// Copyright (c) 2026 Bitflash developers
// Distributed under the MIT/X11 software license.
//
// Stand-ins for the handful of symbols the node core expects the GUI to
// provide, so a headless binary can be linked without ImGui, GLFW or OpenGL.
//
// This exists because linking the GUI made the node need libGL at load time
// even when started with -nogui: the dynamic loader resolves everything before
// main() runs, so the flag came far too late. On a clean server -- which is
// where a node most naturally lives -- that is a hard failure with an error
// message about shared libraries and no hint that the program would otherwise
// have worked fine.
#include "headers_core.h"
// The GUI uses this to mark itself dirty. With no window to repaint there is
// nothing to do, and the call sites in main.cpp and net.cpp stay unchanged.
void MainFrameRepaint()
{
}
|