Commit 409efd94 authored by Oskar Skog's avatar Oskar Skog

Removed no flag count option; require settings for highscores in the configuration files

parent dcebbcd2
2019-03-11 Oskar Skog <https://oskog97.com/#contact>
0.5.7
* anonymine.py, anonymine_engine.py: Removed the no flag count option.
*: Minor clean ups every here and there.
* anonymine.py (main): $(prefix)/etc is a weird place to expect to find
configuration files. They wouldn't be there unless you've run
./configure && make && make install on a system where such a
directory exists. Not needed as a backup search path.
* anonymine.py, anonymine_engine.py: Settings for highscores are now
mandatory.
2019-03-09 Oskar Skog <https://oskog97.com/#contact>
0.5.6
* anonymine_engine.py (game_engine):
......
0.5.7
- No option to disable flagcount.
- enginecfg: 'hiscores' is now required.
- Both configuration files: Settings for highscores are now required.
- anonymine_engine.py: The hiscores_dummy class has been removed.
0.5.6
......
......@@ -1408,14 +1408,7 @@ def highscores_display(title, headers, rows, cfgfile):
'''
# Settings:
cfg = eval(open(cfgfile).read())
try:
hs_conf = cfg['highscores']
except KeyError:
hs_conf = {
'tabsize': 6,
'min_tabspace': 2,
'less_step': 3,
}
hs_conf = cfg['highscores']
# Create all rows to be displayed.
header_underline = ['='*len(col) for col in headers]
header_blankline = ['' for col in headers]
......@@ -1579,7 +1572,6 @@ def main():
locations = (
os.path.expanduser('~/.' + GAME_FILENAME + '/' + cfgfile),
"MAKEFILE_CFGDIR" + '/' + cfgfile,
sys.prefix + '/etc/' + GAME_FILENAME + '/' + cfgfile,
'/etc/' + GAME_FILENAME + '/' + cfgfile,
'windows-beta/' + cfgfile,
)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment