hippich / Bitcoin-Poker-Room

Sources for Bitcoin Poker Room.
http://betco.in
Other
132 stars 88 forks source link

Load additional table configs from /etc/poker-network/tables.d #93

Closed gg closed 13 years ago

gg commented 13 years ago

Table descriptions are normally loaded from the server config (defaults to /etc/poker-network/poker.server.xml). This update allows additional table descriptions to loaded from table configs located in /etc/poker-network/tables.d. Table descriptions from table configs take precedence over table descriptions in the server config.

Here is an example table config file:

<?xml version="1.0" encoding="UTF-8"?>
<tables>
  <table name="SomeTable" variant="holdem" betting_structure=".5-.10-no-limit" seats="6" player_timeout="60" currency_serial="1"/>
  <table name="SomeOtherTable" variant="holdem" betting_structure="50-100-limit" seats="10" player_timeout="60" currency_serial="1"/>
</tables>

Notice the <table /> node structure remains unchanged from the server config, and the root node is <tables> instead of <server>).