RPC wrote:If you want to check if this event is being called then use this and look at debuglog:
Code: Select all
<Events>
<CanBeUninstalled>
(block nil
(PrintTo 'log "Is this being used at all?")
)
</CanBeUninstalled>
</Events>
If 'Is this being used at all?' is not showing in the debuglog then this event is not being run/ it is not the right event :/
Apparently it’s just not getting called at all. And if that’s not where this sort of thing is supposed to go, then I’m at a total loss.
…Also, was one of those two suggestions you made supposed to be identical to to the code I’d posted, or was that just a copypasta misfire…?
EDIT: Ah-
ha! Progress! The code I posted up at the top
does work. …Kinda. It keeps the launcher from being uninstalled on its own — which I found out when I de-virtual-ized it on a hunch — but it does
not keep another launcher from “overwriting” it, so to speak. Apparently <CanBeUninstalled> doesn’t get called when you remove something by installing something else in its place?
RE-EDIT:
Code: Select all
<Events>
<CanBeUninstalled>
"No can do."
</CanBeUninstalled>
</Events>
Just that was sufficient to prevent uninstallation by any means other than “overwriting” with another launcher, apparently, without mucking about with all the extra code. I would have that out a
lot sooner if I hadn’t made the thing a virtual weapon.
So. I guess the real question now is, how to do I about convincing the game to not “overwrite” the thing?