summaryrefslogtreecommitdiff |
diff options
author | nsensfel <SpamShield0@noot-noot.org> | 2018-07-12 17:48:41 +0200 |
---|---|---|
committer | nsensfel <SpamShield0@noot-noot.org> | 2018-07-12 17:48:41 +0200 |
commit | a132188ccc244a6d802bd1c32fbf196d4cb53cbd (patch) | |
tree | bd54e576ea8164d3efc801d9c56420218a74e591 /src/db/db_node.erl | |
parent | b853df7a1c3efef6b84b90fe8c492611564f8b53 (diff) |
Got it to load the map (full of "error" tiles).
Diffstat (limited to 'src/db/db_node.erl')
-rw-r--r-- | src/db/db_node.erl | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/db/db_node.erl b/src/db/db_node.erl index be295c6..aaf6ae3 100644 --- a/src/db/db_node.erl +++ b/src/db/db_node.erl @@ -25,7 +25,9 @@ wait_for_stop () -> %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% -spec start () -> 'ok'. start () -> - DB = db_model:new(battle_db, "/tmp/battle_db.mnesia", []), - db_model:start(DB), + Mnesia = db_model:new("/tmp/to_db_node.mnesia", []), + db_model:start(Mnesia), + db_model:add_db(battle_db, Mnesia), + db_model:add_db(map_db, Mnesia), wait_for_stop(), ok. |