summaryrefslogtreecommitdiff
path: root/myhighscore/api.lua
diff options
context:
space:
mode:
Diffstat (limited to 'myhighscore/api.lua')
-rwxr-xr-xmyhighscore/api.lua9
1 files changed, 9 insertions, 0 deletions
diff --git a/myhighscore/api.lua b/myhighscore/api.lua
new file mode 100755
index 0000000..bbad4d7
--- /dev/null
+++ b/myhighscore/api.lua
@@ -0,0 +1,9 @@
+
+myhighscore.registered_games = {}
+
+
+-- You can register a new arcade game using this function
+myhighscore.register_game(name, definition)
+ definition.description = definition.description or name
+ myhighscore.registered_games[name] = definition
+end