mirror of
https://github.com/CalcProgrammer1/OpenRGB.git
synced 2026-10-20 07:35:03 -04:00
Fix CLI
It was not changing the colors sincee3e6c034and had an overflow on `options->devices.size()` since0f4ddd16causing options not to be applied Second issue was a bit trickier as it was not reproducable when using a debug build. It seemed like `std::vector<DeviceOptions> devices` had an overflow. I saw a bunch of warnings regarding comparison with implicit cast so I figured I'd fix that first and see if it makes a difference. Turns out it did and fixed the issue. While toying around, I also noticed that `throw` didn't seem to work, causing crashes later in the program. It turns out the catch-all clause `catch (...)` is not necessary matching a `throw NULL` expression as it might be of type `int`. The solution is to use `thrown nullptr;` instead. Reference: https://en.cppreference.com/w/cpp/language/try_catch
This commit is contained in:
500 Internal Server Error
Gitea Version: 1.28.0+dev-477-g8b6ad49a5f