mirror of
https://github.com/goatcorp/Dalamud.git
synced 2025-12-12 10:17:22 +01:00
chore: annotate __try workaround
This commit is contained in:
parent
740d7240b2
commit
1ad222a4b8
1 changed files with 3 additions and 2 deletions
|
|
@ -143,7 +143,8 @@ void xivfixes::unhook_dll(bool bApply) {
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
const auto aaaa = [&]() {
|
// This is needed since try and __try cannot be used in the same function. Lambdas circumvent the limitation.
|
||||||
|
const auto windows_exception_handler = [&]() {
|
||||||
for (size_t i = 0; i < mods.size(); i++) {
|
for (size_t i = 0; i < mods.size(); i++) {
|
||||||
const auto& mod = mods[i];
|
const auto& mod = mods[i];
|
||||||
__try {
|
__try {
|
||||||
|
|
@ -154,7 +155,7 @@ void xivfixes::unhook_dll(bool bApply) {
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
aaaa();
|
windows_exception_handler();
|
||||||
}
|
}
|
||||||
|
|
||||||
using TFnGetInputDeviceManager = void* ();
|
using TFnGetInputDeviceManager = void* ();
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue