home
·
contact
·
privacy
projects
/
plomrogue
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Client: Save commands config file path in world struct.
[plomrogue]
/
src
/
client
/
command_db.c
diff --git
a/src/client/command_db.c
b/src/client/command_db.c
index f5670a8f207b9638ce420e0775afb5aa492ccfd5..a74a93b1984014f7132f5a345c048eab2bc37cc2 100644
(file)
--- a/
src/client/command_db.c
+++ b/
src/client/command_db.c
@@
-56,8
+56,7
@@
extern struct Command * get_command(char * dsc_short)
extern void init_command_db()
{
char * f_name = "init_command_db()";
extern void init_command_db()
{
char * f_name = "init_command_db()";
- char * path = "confclient/commands";
- FILE * file = try_fopen(path, "r", f_name);
+ FILE * file = try_fopen(world.path_commands, "r", f_name);
uint32_t lines;
uint32_t linemax = textfile_sizes(file, &lines);
char line[linemax + 1];
uint32_t lines;
uint32_t linemax = textfile_sizes(file, &lines);
char line[linemax + 1];