mirror of
https://github.com/afska/gba-link-connection.git
synced 2026-10-02 05:47:11 -05:00
didQueueOverflow(...) shouldn't be [[nodiscard]]
This commit is contained in:
@@ -268,7 +268,7 @@ class LinkCable {
|
||||
* this call, the overflow flag is cleared if `clear` is `true` (default
|
||||
* behavior).
|
||||
*/
|
||||
[[nodiscard]] bool didQueueOverflow(bool clear = true) {
|
||||
bool didQueueOverflow(bool clear = true) {
|
||||
bool overflow = false;
|
||||
|
||||
for (u32 i = 0; i < LINK_CABLE_MAX_PLAYERS; i++) {
|
||||
|
||||
@@ -162,7 +162,7 @@ class LinkCube {
|
||||
* this call, the overflow flag is cleared if `clear` is `true` (default
|
||||
* behavior).
|
||||
*/
|
||||
[[nodiscard]] bool didQueueOverflow(bool clear = true) {
|
||||
bool didQueueOverflow(bool clear = true) {
|
||||
bool overflow = newIncomingQueue.overflow;
|
||||
if (clear)
|
||||
newIncomingQueue.overflow = false;
|
||||
|
||||
@@ -369,7 +369,7 @@ class LinkUniversal {
|
||||
* this call, the overflow flag is cleared if `clear` is `true` (default
|
||||
* behavior).
|
||||
*/
|
||||
[[nodiscard]] bool didQueueOverflow(bool clear = true) {
|
||||
bool didQueueOverflow(bool clear = true) {
|
||||
bool overflow = mode == Mode::LINK_CABLE ? linkCable.didQueueOverflow()
|
||||
: linkWireless.didQueueOverflow();
|
||||
|
||||
|
||||
@@ -691,7 +691,7 @@ class LinkWireless {
|
||||
* this call, the overflow flag is cleared if `clear` is `true` (default
|
||||
* behavior).
|
||||
*/
|
||||
[[nodiscard]] bool didQueueOverflow(bool clear = true) {
|
||||
bool didQueueOverflow(bool clear = true) {
|
||||
bool overflow = sessionState.newIncomingMessages.overflow;
|
||||
if (clear)
|
||||
sessionState.newIncomingMessages.overflow = false;
|
||||
|
||||
Reference in New Issue
Block a user