added VISUALIZER_DATA_PATH variable

This commit is contained in:
ALEXks
2025-06-04 13:01:50 +03:00
parent db32a3e2b2
commit f53d514a47
5 changed files with 33 additions and 27 deletions

View File

@@ -67,6 +67,7 @@ using json = nlohmann::json;
extern set<short*> allocated;
extern set<int*> allocatedInt;
extern bool runAsClient;
extern const char* VISUALIZER_DATA_PATH;
bool showDebug = false;
static const string interruptEx = "Interrupted by user";
@@ -298,7 +299,7 @@ static void runPassesForVisualizer(const short *projName, const vector<passes> &
while (passDone == 0)
{
FILE* interrupt_old = fopen("INTERRUPT", "r");
FILE* interrupt = fopen("visualiser_data/INTERRUPT", "r");
FILE* interrupt = fopen((string(VISUALIZER_DATA_PATH) + "/INTERRUPT").c_str(), "r");
if (interrupt || interrupt_old)
{
if (showDebug)