public Texture loadTexture(String paramFileName, boolean paramFlipped, boolean paramUseRes)
	{
        String fileLoc;
        try
        {
            if (paramUseRes)
            {
                fileLoc = "resources/" + paramFileName;
            }
            else
            {
                fileLoc = paramFileName;
            }
            return TextureLoader.getTexture("PNG", new FileInputStream(new File(fileLoc)), paramFlipped);
        } 
        catch (IOException ex)
        {
        	String usedResources = paramUseRes ? " using resources directory." : " not using resources directory.";
        	Game.log(EnumLogWeight.MEDIUM, "CTextureLoader: Unable to load texture \"" + paramFileName + "\", was" + usedResources);
            Logger.getLogger(TexturesEntity.class.getName()).log(Level.SEVERE, null, ex);
        }
        return null;
    }