View Single Post
05-31-10, 05:26 PM   #3
corveroth
A Fallenroot Satyr
AddOn Author - Click to view addons
Join Date: Apr 2006
Posts: 29
I don't mean to be an ass, but on that count, you are quite simply wrong. The Saved Variable files in the WTF folder contain both "configuration" and "data" - those files are the only files to which an addon can write. The contents of the Interface folder contain only the functional code and the defaults and cannot be modified by the addon.

By way of demonstration, these are the contents of WTF\Account\<USER>\SavedVariables\Ara_Broker_Money.lua. In addition to the "configuration" setting (whether or not to use the compact display), it contains quite a bit of "data" (the amount of money each character has, and the totals for each of the last seven days):

lua Code:
  1. AraBrokerMoneyDB = {
  2.     ["Skullcrusher"] = {
  3.         ["days"] = {
  4.             [14750] = 83384820,
  5.             [14751] = 87458003,
  6.             [14752] = 90751121,
  7.             [14753] = 115161726,
  8.             [14754] = 117113504,
  9.             [14755] = 120109780,
  10.             [14756] = 139316668,
  11.         },
  12.         ["chars"] = {
  13.             ["Adumbrate"] = 678797,
  14.             ["Çorvette"] = 40151684,
  15.             ["Irdair"] = 10410502,
  16.             ["Corv"] = 32383718,
  17.             ["Corveroth"] = 41496731,
  18.             ["Víllage"] = 6315971,
  19.             ["Untoterezept"] = 8561091,
  20.         },
  21.     },
  22.     ["compact"] = true,
  23. }
  Reply With Quote