diff --git a/.gitignore b/.gitignore index 964321c..4e6bb04 100755 --- a/.gitignore +++ b/.gitignore @@ -7,6 +7,7 @@ mods/test .cache UpgradeLog*.XML +xbot.db *.so *.dll *.lib diff --git a/mods/lua/scripts b/mods/lua/scripts deleted file mode 100755 index d7a1022..0000000 --- a/mods/lua/scripts +++ /dev/null @@ -1,2 +0,0 @@ -hello.lua -test.lua diff --git a/scripts/t1.lua b/scripts/t1.lua deleted file mode 100755 index e69de29..0000000 diff --git a/test.db b/test.db deleted file mode 100755 index aa5dc16..0000000 Binary files a/test.db and /dev/null differ diff --git a/test1.db b/test1.db deleted file mode 100755 index b4cdfc9..0000000 Binary files a/test1.db and /dev/null differ diff --git a/test_db.c b/test_db.c deleted file mode 100755 index 3dc4f3f..0000000 --- a/test_db.c +++ /dev/null @@ -1,57 +0,0 @@ -#include "db.h" -#include -#include -#include -#include - -#define FNAME "xbot.db" - -int main() -{ - struct db_table *db; - int i; - - if (access(FNAME, F_OK) == -1) - { - printf("Creating db\n"); - - db = (struct db_table *)malloc(sizeof(struct db_table)); - db->count = 0; - db->hashes = NULL; - } - else - { - db = read_db(FNAME); - } - - // write some data if db is empty - if (db->count == 0) - { - db_set_hash_char(db, "lua.scripts", "hello.lua,test.lua,youtube.lua"); - db_set_hash_int(db, "lua.scriptcount", 2); - db_set_hash_float(db, "lua.version", 5.1); - write_db(db, FNAME); - - return 0; - } - - for (i = 0; i < db->count; i++) - { - if (db->hashes[i].type == DB_TYPE_INT) - { - printf("Key: %s, Value: %d\n", db->hashes[i].key, get_hash_int(db, db->hashes[i].key)); - } - else if (db->hashes[i].type == DB_TYPE_FLOAT) - { - printf("Key: %s, Value: %f\n", db->hashes[i].key, get_hash_float(db, db->hashes[i].key)); - } - else if (db->hashes[i].type == DB_TYPE_CHAR) - { - printf("Key: %s, Value: %s\n", db->hashes[i].key, get_hash_char(db, db->hashes[i].key)); - } - } - - free(db); - - return 0; -} diff --git a/testdb b/testdb deleted file mode 100755 index 479996c..0000000 Binary files a/testdb and /dev/null differ diff --git a/xbot.db b/xbot.db deleted file mode 100755 index 973d318..0000000 Binary files a/xbot.db and /dev/null differ