Skip to content
Snippets Groups Projects
Commit 515c9e2b authored by DarkGod's avatar DarkGod
Browse files

Disabled highscore on the main menu, coe on nobody cared about that anyway

parent ff31794a
No related branches found
No related tags found
No related merge requests found
......@@ -41,7 +41,7 @@ function _M:init()
l[#l+1] = {name="New Game", fct=function() game:registerDialog(require("mod.dialogs.NewGame").new()) end}
l[#l+1] = {name="Load Game", fct=function() game:registerDialog(require("mod.dialogs.LoadGame").new()) end}
-- l[#l+1] = {name="Online Profile", fct=function() game:registerDialog(require("mod.dialogs.Profile").new()) end}
l[#l+1] = {name="View High Scores", fct=function() game:registerDialog(require("mod.dialogs.ViewHighScores").new()) end}
-- l[#l+1] = {name="View High Scores", fct=function() game:registerDialog(require("mod.dialogs.ViewHighScores").new()) end}
l[#l+1] = {name="Addons", fct=function() game:registerDialog(require("mod.dialogs.Addons").new()) end}
-- if config.settings.install_remote then l[#l+1] = {name="Install Module", fct=function() end} end
-- l[#l+1] = {name="Update", fct=function() game:registerDialog(require("mod.dialogs.UpdateAll").new()) end}
......
......@@ -82,7 +82,7 @@ function _M:generateList()
-- Have to load the profile to get the highscores
profile:addStatFields(unpack(mod.profile_stats_fields or {}))
profile:loadModuleProfile(mod.short_name)
profile:loadModuleProfile(mod.short_name, mod)
print ("Loaded profile for "..mod.short_name.."\n")
mod.highscores = {}
if (profile.mod.scores and profile.mod.scores.sc) then
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment