• R/O
  • HTTP
  • SSH
  • HTTPS

hengbandosx: Commit

The master and develop branches track hengband.

OS X development happens on the macos-1-6-2, macos-2-2-1, and macos-develop branches.


Commit MetaInfo

Revision8932a9b162f50d202675fed3caf90dd31a47166b (tree)
Time2021-05-17 20:55:34
Authorshimitei <shimitei@gmai...>
CommiterGitHub

Log Message

Merge pull request #1110 from shimitei/feature/#1108_fix_english_build

[Fix] 英語版ビルドエラー修正

Change Summary

Incremental Difference

--- 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)
110110 GetPrivateProfileStringA(section.section_name, read_key, "", buf, MAIN_WIN_MAX_PATH, this->cfg_path.c_str());
111111 if (*buf != '\0') {
112112 cfg_values *filenames = new cfg_values();
113+#ifdef JP
113114 // .cfg (UTF-8) to Shift-JIS
114115 guess_convert_to_system_encoding(buf, MAIN_WIN_MAX_PATH);
116+#endif
115117 const int num = tokenize_whitespace(buf, SAMPLE_MAX, tokens);
116118 for (int j = 0; j < num; j++) {
117119 path_build(path, MAIN_WIN_MAX_PATH, dir, tokens[j]);
Show on old repository browser