Fulgen301

Results 8 comments of Fulgen301

This will probably become more relevant with C++23 and [std::expected](https://en.cppreference.com/w/cpp/header/expected).

[lua-5.4.4.tar.gz](https://github.com/llvm-mos/llvm-mos/files/10283659/lua-5.4.4.tar.gz)

I've already figured it out for myself, forgot to update this issue, sorry :/ The problem is that failed casts generate a Lua error, which isn't re-raised as `LuaException`, but...

> `AUDCLNT_E_DEVICE_INVALIDATED` This has its own page in the documentation: https://learn.microsoft.com/en-us/windows/win32/coreaudio/recovering-from-an-invalid-device-error

Better late than never, sorry about that: https://fulgen.at/files/011.wav (it has the wrong file extension as it contains MPEG data, but SDL_mixer doesn't check them anyway).

>How do you expect your code should work in a case where "Remove" is assigned from Lua? My code shall store it inside a map and return it, effectively shadowing...

Can confirm this. Referencing the internal callback fixed the crash with UpdateActivity for me as a quick developing hack, but still crashes when searching for lobbies. Also, as this "hack"...

> core->NetworkManager().Flush(); Shouldn't that be [`core->LobbyManager().FlushNetwork()`](https://discord.com/developers/docs/game-sdk/lobbies#flushnetwork)?