Files
spice2x.github.io/src/spice2x/avs/ea3.h
T
bicarus-dev 61d79f76b2 ea3: remove verbose debug logs by default (#385)
## Link to GitHub Issue, if one exists
n/a

## Description of change
Recently distributed iidx data has this enabled in ea3-config.xml by
default, exposing people's PCBID in the logs.

Find the node in the XML and remove it on boot, unless user overrides it
with a new option.

## Testing
Tested using asphyxia.
2025-09-28 20:31:48 -07:00

56 lines
1.3 KiB
C++

#pragma once
#include <string>
#include <windows.h>
namespace avs {
/*
* helpers
*/
namespace ea3 {
// import mapping
struct avs_ea3_import {
const char *version;
const char *boot;
const char *shutdown;
};
// settings
extern std::string CFG_PATH;
extern std::string APP_PATH;
extern std::string BOOTSTRAP_PATH;
extern std::string PCBID_CUSTOM;
extern std::string SOFTID_CUSTOM;
extern std::string URL_CUSTOM;
extern int HTTP11;
extern int URL_SLASH;
extern int PCB_TYPE;
extern bool EA3_DEBUG_VERBOSE;
// handle
extern std::string VERSION_STR;
extern HINSTANCE DLL_INSTANCE;
extern std::string DLL_NAME;
extern std::string EA3_BOOT_URL;
extern std::string EA3_BOOT_PCBID;
// functions
void load_dll();
void boot(unsigned short easrv_port, bool easrv_maint, bool easrv_smart);
void shutdown();
}
/*
* library functions
*/
typedef int (*AVS_EA3_BOOT_STARTUP_T)(void *);
extern AVS_EA3_BOOT_STARTUP_T avs_ea3_boot_startup;
typedef void (*AVS_EA3_SHUTDOWN_T)(void);
extern AVS_EA3_SHUTDOWN_T avs_ea3_shutdown;
}