# Path: fofix/core/constants.py
# def isTrue(value):
#     """ Check if the value looks like True """
#     return value in ["1", "true", "yes", "on"]


import logging
import os
import sys
import time
import string
import pygame.image
from random import random
from OpenGL.GL import *
from OpenGL.GL.ARB.shader_objects import *
from OpenGL.GL.ARB.vertex_shader import *
from OpenGL.GL.ARB.fragment_shader import *
from OpenGL.GL.ARB.multitexture import *
from OpenGL.GL.EXT.texture3D import *
from fofix.core.constants import isTrue
from fofix.core import Config
from fofix.core import Version
            self.globals["breActive"] = False
            self.globals["dfActive"] = False
            self.globals["isDrum"] = False
            self.globals["isFailing"] = False
            self.globals["isMultChanged"] = False
            self.globals["killswitch"] = False
            self.globals["killswitchPos"] = -10.0
            self.globals["multChangePos"] = -10.0
            self.globals["notepos"] = -10.0
            self.globals["rockLevel"] = 0.5
            self.globals["scoreMult"] = 1
            self.globals["soloActive"] = False
            self.globals["songpos"] = 0.0

    def checkIfEnabled(self):
        """Check settings to enable, disable or assign shaders"""
        if Config.get("video", "shader_use"):
            if self.enabled:
                self.turnon = True
            else:
                self.set(os.path.join(Version.dataPath(), "shaders"))
        else:
            self.turnon = False

        if self.turnon:
            for i in self.shaders.keys():
                try:
                    value = Config.get("video", "shader_"+i)
                    if value != "None":
                        if value == "theme":

# Path: fofix/core/constants.py
# def isTrue(value):
#     """ Check if the value looks like True """
#     return value in ["1", "true", "yes", "on"]


# Path: fofix/core/Shader.py
import logging
import os
import sys
import time
import string
import pygame.image
from random import random
from OpenGL.GL import *
from OpenGL.GL.ARB.shader_objects import *
from OpenGL.GL.ARB.vertex_shader import *
from OpenGL.GL.ARB.fragment_shader import *
from OpenGL.GL.ARB.multitexture import *
from OpenGL.GL.EXT.texture3D import *
from fofix.core.constants import isTrue
from fofix.core import Config
from fofix.core import Version

            self.globals["breActive"] = False
            self.globals["dfActive"] = False
            self.globals["isDrum"] = False
            self.globals["isFailing"] = False
            self.globals["isMultChanged"] = False
            self.globals["killswitch"] = False
            self.globals["killswitchPos"] = -10.0
            self.globals["multChangePos"] = -10.0
            self.globals["notepos"] = -10.0
            self.globals["rockLevel"] = 0.5
            self.globals["scoreMult"] = 1
            self.globals["soloActive"] = False
            self.globals["songpos"] = 0.0

    def checkIfEnabled(self):
        """Check settings to enable, disable or assign shaders"""
        if Config.get("video", "shader_use"):
            if self.enabled:
                self.turnon = True
            else:
                self.set(os.path.join(Version.dataPath(), "shaders"))
        else:
            self.turnon = False

        if self.turnon:
            for i in self.shaders.keys():
                try:
                    value = Config.get("video", "shader_"+i)
                    if value != "None":
                        if value == "theme":

                            if isTrue(Config.get("theme","shader_"+i).lower()):