RejectedSoftware Forums

Sign up

dub dustmite with OPTLINK popup

How would I use dub dustmite to reduce an OPTLINK popup?

https://github.com/CyberShadow/DustMite/wiki/Reducing-OPTLINK%27s-Message-Box-of-Death talks about it, but I don't understand how to do this using dub.

Total dustmite newbie :)

Re: dub dustmite with OPTLINK popup

Am 04.08.2015 um 16:20 schrieb Lemonfiend:

How would I use dub dustmite to reduce an OPTLINK popup?

https://github.com/CyberShadow/DustMite/wiki/Reducing-OPTLINK%27s-Message-Box-of-Death talks about it, but I don't understand how to do this using dub.

Total dustmite newbie :)

I'll have a look at integrating that workaround into DUB directly. It
might also make sense to open a ticket for optlink to replace the popup
by a message to stdout: https://github.com/DigitalMars/optlink/issues

In the meantime, that script could be adjusted to do:

auto pipes = pipeProcess(["link_orig.exe", args[1 .. $]);
auto ret = wait(pipes.pid);
return optlinkCrashed ? -256 : ret)

The original link.exe would then have to be renamed to "link_orig.exe"
and the script compiled as "link.exe". DMD should then invoke the
wrapper script.