summaryrefslogtreecommitdiff
path: root/src/map/itemdb.c
diff options
context:
space:
mode:
authorshennetsind <shennetsind@54d463be-8e91-2dee-dedb-b68131a5f0ec>2012-01-04 18:05:41 +0000
committershennetsind <shennetsind@54d463be-8e91-2dee-dedb-b68131a5f0ec>2012-01-04 18:05:41 +0000
commitca8e7b4d7621570ee770dd6114eab9986f13accd (patch)
treefe0ed86847b3f9264d352d666fb1e6dcf3a54b6b /src/map/itemdb.c
parent38fc07331284161a3833c295dfa3633d3eecfa66 (diff)
downloadhercules-ca8e7b4d7621570ee770dd6114eab9986f13accd.tar.gz
hercules-ca8e7b4d7621570ee770dd6114eab9986f13accd.tar.bz2
hercules-ca8e7b4d7621570ee770dd6114eab9986f13accd.tar.xz
hercules-ca8e7b4d7621570ee770dd6114eab9986f13accd.zip
Re-designed /db/ folder structure as previously discussed.
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@15390 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/map/itemdb.c')
-rw-r--r--src/map/itemdb.c17
1 files changed, 10 insertions, 7 deletions
diff --git a/src/map/itemdb.c b/src/map/itemdb.c
index 48532dd60..972d351a5 100644
--- a/src/map/itemdb.c
+++ b/src/map/itemdb.c
@@ -566,8 +566,11 @@ static void itemdb_read_itemgroup_sub(const char* filename)
static void itemdb_read_itemgroup(void)
{
char path[256];
- snprintf(path, 255, "%s/item_group_db.txt", db_path);
-
+#if REMODE
+ snprintf(path, 255, "%s/re/item_group_db.txt", db_path);
+#else
+ snprintf(path, 255, "%s/pre-re/item_group_db.txt", db_path);
+#endif
memset(&itemgroup_db, 0, sizeof(itemgroup_db));
itemdb_read_itemgroup_sub(path);
ShowStatus("Done reading '"CL_WHITE"%s"CL_RESET"'.\n", "item_group_db.txt");
@@ -867,14 +870,14 @@ static bool itemdb_parse_dbrow(char** str, const char* source, int line, int scr
*------------------------------------------*/
static int itemdb_readdb(void)
{
- /**
- * ro-resources inheritance: item_db -> item_db_re -> item_db2 (user customs)
- **/
+ const char* filename[] = {
#if REMODE
- const char* filename[] = { "item_db.txt","item_db_re.txt","item_db2.txt" };
+ "re/item_db.txt",
#else
- const char* filename[] = { "item_db.txt","item_db2.txt" };
+ "pre-re/item_db.txt",
#endif
+ "item_db2.txt" };
+
int fi;
for( fi = 0; fi < ARRAYLENGTH(filename); ++fi )