mirror of
https://github.com/k1tbyte/Wand-Enhancer.git
synced 2026-08-30 18:01:20 +00:00
572b61ac25
Launch Wand with DEBUG_PROCESS and patch the integrity fuse byte in every process Electron spawns, then detach once the startup burst settles. Electron respawns children from its own on-disk exe, so patching only the main process left renderers crashing with -36861. Remove the version.dll proxy project and its CMake build step; the launcher no longer ships a native helper. Update the README to describe the debugger-based mechanism and drop CMake from the build requirements. Time the detach with Stopwatch instead of Environment.TickCount, which wraps. Check the PatchFuse result and surface a failure to the startup log. Scan for the fuse sentinel byte by byte rather than assuming 8-byte alignment. Close the image handle the kernel hands over with each process event. Name the DEBUG_EVENT and fuse wire offsets. Re-quote forwarded argv so Squirrel paths containing spaces survive. Keep an unobserved task exception from terminating the process.
22 lines
701 B
C#
22 lines
701 B
C#
using System;
|
|
using System.Reflection;
|
|
|
|
namespace WandEnhancer
|
|
{
|
|
public static class Constants
|
|
{
|
|
public const string RepoName = "Wand-Enhancer";
|
|
public const string Owner = "k1tbyte";
|
|
public static readonly string RepositoryUrl = $"https://github.com/{Owner}/{RepoName}";
|
|
public static readonly Version Version;
|
|
public static readonly string[] WeModBrandNames = { "Wand", "WeMod" };
|
|
public const string AppSettingsFileName = "appsettings.json";
|
|
public const string AutoPatchConfigFileName = "enhancer.json";
|
|
|
|
static Constants()
|
|
{
|
|
Version = Assembly.GetExecutingAssembly().GetName().Version;
|
|
}
|
|
}
|
|
}
|