diff options
author | Adam Borowski <kilobyte@angband.pl> | 2011-04-01 01:00:14 +0200 |
---|---|---|
committer | Adam Borowski <kilobyte@angband.pl> | 2011-04-01 01:00:14 +0200 |
commit | 452ff385766f7f82e4ff92f319dd3a284795fd2e (patch) | |
tree | 35f3bfd02c4d16d05cda2126aaf82dd945690686 /crawl-ref/source/tiledoll.cc | |
parent | 778a975c1cf474d6c585d2177956daff30cffc24 (diff) | |
parent | 5485922b1f7b6c4e369d0b885ccfbff0e6e0d850 (diff) | |
download | crawl-ref-452ff385766f7f82e4ff92f319dd3a284795fd2e.tar.gz crawl-ref-452ff385766f7f82e4ff92f319dd3a284795fd2e.zip |
Merge branch 'unicode'.
There are some issues left, like incorrect wrapping in some cases, but
we can fix them later.
Diffstat (limited to 'crawl-ref/source/tiledoll.cc')
-rw-r--r-- | crawl-ref/source/tiledoll.cc | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/crawl-ref/source/tiledoll.cc b/crawl-ref/source/tiledoll.cc index 0a4d91064e..bd896aa657 100644 --- a/crawl-ref/source/tiledoll.cc +++ b/crawl-ref/source/tiledoll.cc @@ -12,6 +12,7 @@ #include <sys/stat.h> #include "files.h" +#include "syscalls.h" #include "tilebuf.h" #include "tiledef-player.h" #include "tilepick-p.h" @@ -58,7 +59,7 @@ bool save_doll_data(int mode, int num, const dolls_data* dolls) : dollsTxtString.c_str(); FILE *fp = NULL; - if ((fp = fopen(dollsTxt, "w+")) != NULL) + if ((fp = fopen_u(dollsTxt, "w+")) != NULL) { fprintf(fp, "MODE=%s\n", (mode == TILEP_MODE_EQUIP) ? "EQUIP" : @@ -104,7 +105,7 @@ bool load_doll_data(const char *fn, dolls_data *dolls, int max, : dollsTxtString.c_str(); - if ((fp = fopen(dollsTxt, "r")) == NULL) + if ((fp = fopen_u(dollsTxt, "r")) == NULL) { // File doesn't exist. By default, use equipment settings. *mode = TILEP_MODE_EQUIP; |