OSDN Git Service
(root)
/
hengbandforosx
/
hengbandosx.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
aaaff16
)
[Fix] 英語版ビルドエラー修正
author
shimitei
<shimitei@gmail.com>
Sun, 16 May 2021 21:12:58 +0000
(06:12 +0900)
committer
shimitei
<shimitei@gmail.com>
Sun, 16 May 2021 21:12:58 +0000
(06:12 +0900)
src/main-win/main-win-cfg-reader.cpp
patch
|
blob
|
history
diff --git
a/src/main-win/main-win-cfg-reader.cpp
b/src/main-win/main-win-cfg-reader.cpp
index
c1ccf62
..
67ed46d
100644
(file)
--- a/
src/main-win/main-win-cfg-reader.cpp
+++ b/
src/main-win/main-win-cfg-reader.cpp
@@
-110,8
+110,10
@@
CfgData *CfgReader::read_sections(std::initializer_list<cfg_section> sections)
GetPrivateProfileStringA(section.section_name, read_key, "", buf, MAIN_WIN_MAX_PATH, this->cfg_path.c_str());
if (*buf != '\0') {
cfg_values *filenames = new cfg_values();
+#ifdef JP
// .cfg (UTF-8) to Shift-JIS
guess_convert_to_system_encoding(buf, MAIN_WIN_MAX_PATH);
+#endif
const int num = tokenize_whitespace(buf, SAMPLE_MAX, tokens);
for (int j = 0; j < num; j++) {
path_build(path, MAIN_WIN_MAX_PATH, dir, tokens[j]);