Skip to content

Commit

Permalink
レビュー指摘対応:マジックナンバーを書かずにマクロを使うように変更
Browse files Browse the repository at this point in the history
  • Loading branch information
beru committed Jan 5, 2019
1 parent a507336 commit 3b0f5e0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sakura_core/env/CShareData_IO.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ bool CShareData_IO::ShareData_IO_2( bool bRead )
/* 設定ファイルが存在しない */
LANGID langId = GetUserDefaultUILanguage();
// Windowsの表示言語が日本語でない場合は言語設定を英語にする
if (langId != 0x0411) {
if (langId != MAKELANGID( LANG_JAPANESE, SUBLANG_JAPANESE_JAPAN )) {
DLLSHAREDATA* pShareData = &GetDllShareData();
_tcscpy(pShareData->m_Common.m_sWindow.m_szLanguageDll, L"sakura_lang_en_US.dll");
cProfile.IOProfileData( L"Common", L"szLanguageDll", MakeStringBufferT( pShareData->m_Common.m_sWindow.m_szLanguageDll ) );
Expand Down

0 comments on commit 3b0f5e0

Please sign in to comment.