Skip to content

Commit

Permalink
Remove some leftover Config methods from ancient mods.
Browse files Browse the repository at this point in the history
  • Loading branch information
stump committed Mar 18, 2010
1 parent 5b9c3e9 commit aeebe1d
Showing 1 changed file with 1 addition and 92 deletions.
93 changes: 1 addition & 92 deletions src/Config.py
Expand Up @@ -365,98 +365,7 @@ def set(self, section, option, value):
self.config.write(f, self.type)
f.close()

def getModOptions1(self, twoChord, hopo8th, compact = False):
#For use with single digit flags
#Do not change the order

#0
#Value 0 not used / 1 used
if twoChord > 0:
twoChordUsed = 1
else:
twoChordUsed = 0

#1
#Value 0 off / 1 on
disableVBPMUsed = int(self.get("game", "disable_vbpm"))

#2
#Value 0 on / 1 on - removed.
hopoDisableUsed = 0

#3
#Value 0 FoF / 1 RFmod
hopoMarks = 1

#4
#Value 0 FoF / 1 RFmod / 2 RFmod2
hopoStyle = int(self.get("game", "hopo_system"))

#5
#Value 0 FoF / 1 GH / 2 Custom
pov = int(self.get("fretboard", "point_of_view"))

#6
#Value 0 FoF / 1 Capo -- akedrou: no game effect - removing key.
margin = 0

#7
#Value 0 no / 1 yes
hopo8thUsed = int(hopo8th)

#8
#Value 0 bpm / 1 difficulty
boardSpeed = 0

encode = "%d%d%d%d%d%d%d%d%d" % (twoChordUsed, disableVBPMUsed, hopoDisableUsed, hopoMarks, hopoStyle, pov, margin, hopo8thUsed, boardSpeed)
#return encode
return "000000000"

def getModOptions2(self):
#For use with more than single digit flags
#Do not change order
#Will be used for some of the Cmod values
encode = ""
boardSpeedMult = 0
return encode


def prettyModOptions(self, modOptions):
encode = ""

modOptions1, mod2 = modOptions.split(',', 2)

if modOptions1 != "" and modOptions1 != "Default":
if modOptions1[0] == '1':
encode += "2"
if modOptions1[1] == '1':
encode += "v"
if modOptions1[2] == '1':
encode += "h"
if modOptions1[3] == '1':
encode += "m"
if modOptions1[4] == '1':
encode += "k"
elif modOptions1[4] == '2':
encode += "K"
if modOptions1[5] == '1':
encode += "p"
elif modOptions1[5] == '2':
encode += "P"
if modOptions1[6] == '1':
encode += "C"
if modOptions1[7] == '1':
encode += "9"
if modOptions1[8] == '1':
encode += "d"

if mod2 != "" and mod2 != "Default":
encode += ","
modOptions2 = mod2.split(',')
if modOptions2[0] != "":
encode += "BS=%s" % (modOptions2[0])
return encode

def get(section, option):
"""
Read the value of a global configuration key.
Expand Down Expand Up @@ -520,4 +429,4 @@ def getOptions(section, option):
global config
return config.getOptions(section, option)

#-------------------------
#-------------------------

0 comments on commit aeebe1d

Please sign in to comment.