• 0 Posts
  • 9 Comments
Joined 3 years ago
cake
Cake day: June 27th, 2023

help-circle




  • I’m usually playing steam games, and I often will find a solution to make it work on protondb if I have issues. Most of my games I can just install and run though. But I understand it being frustrating if your favourite games don’t work or require lots of tinkering. I have played a few older games outside steam as well. I usually use Bottles for that, as it creates a wine prefix for me that’s set up with DXVK, etc out of the box.





  • I know how to fix this!

    bool IsEven(int number) {
        bool even = true;
        for (int i = 0; i < number; ++i) {
            if (even == true) {
                even = false;
            }
            else if (even == false) {
                even = true;
            }
            else {
                throw RuntimeException("Could not determine whether even is true or false.");
            }
        }
    
        if (even == true) {
            return even ? true : false;
        }
        else if (even == false) {
            return (!even) ? false : true;
        }
        else {
            throw RuntimeException("Could not determine whether even is true or false.");
        }
    }