diff --git a/LilithPort/AssemblyInfo.cpp b/LilithPort/AssemblyInfo.cpp index f1bae86..f561021 100644 --- a/LilithPort/AssemblyInfo.cpp +++ b/LilithPort/AssemblyInfo.cpp @@ -1,4 +1,4 @@ -#include "stdafx.h" +#include "stdafx.h" using namespace System; using namespace System::Reflection; @@ -7,9 +7,9 @@ using namespace System::Runtime::InteropServices; using namespace System::Security::Permissions; // -// ƒAƒZƒ“ƒuƒŠ‚ÉŠÖ‚·‚éˆê”ʏî•ñ‚͈ȉº‚Ì‘®«ƒZƒbƒg‚ð‚Æ‚š‚µ‚ЧŒä‚³‚ê‚Ü‚·B -// ƒAƒZƒ“ƒuƒŠ‚ÉŠÖ˜A•t‚¯‚ç‚ê‚Ä‚¢‚éî•ñ‚ð•ÏX‚·‚é‚ɂ́A -// ‚±‚ê‚ç‚Ì‘®«’l‚ð•ÏX‚µ‚Ä‚­‚Ÿ‚³‚¢B +// アセンブリに関する䞀般情報は以䞋の属性セットをずおしお制埡されたす。 +// アセンブリに関連付けられおいる情報を倉曎するには、 +// これらの属性倀を倉曎しおください。 // [assembly:AssemblyTitleAttribute("LilithPort")]; [assembly:AssemblyDescriptionAttribute("")]; @@ -21,15 +21,15 @@ using namespace System::Security::Permissions; [assembly:AssemblyCultureAttribute("")]; // -// ƒAƒZƒ“ƒuƒŠ‚̃o[ƒWƒ‡ƒ“î•ñ‚́AˆÈ‰º‚Ì 4 ‚‚̒l‚ō\¬‚³‚ê‚Ä‚¢‚Ü‚·: +// アセンブリのバヌゞョン情報は、以䞋の 4 ぀の倀で構成されおいたす: // // Major Version // Minor Version // Build Number // Revision // -// ‚·‚ׂĂ̒l‚ðŽw’è‚·‚é‚©A‰º‚Ì‚æ‚€‚É '*' ‚ðŽg‚Á‚ăŠƒrƒWƒ‡ƒ“‚š‚æ‚уrƒ‹ƒh”ԍ†‚ð -// Šù’è’l‚É‚·‚邱‚Æ‚ª‚Å‚«‚Ü‚·: +// すべおの倀を指定するか、䞋のように '*' を䜿っおリビゞョンおよびビルド番号を +// 既定倀にするこずができたす: [assembly:AssemblyVersionAttribute("1.0.0.0")]; diff --git a/LilithPort/LilithPort.cpp b/LilithPort/LilithPort.cpp index 5429b7b..47381ff 100644 --- a/LilithPort/LilithPort.cpp +++ b/LilithPort/LilithPort.cpp @@ -1,4 +1,4 @@ -// LilithPort.cpp : ƒƒCƒ“ ƒvƒƒWƒFƒNƒg ƒtƒ@ƒCƒ‹‚Å‚·B +// LilithPort.cpp : メむン プロゞェクト ファむルです。 #include "stdafx.h" #include "MainForm.h" @@ -6,7 +6,7 @@ using namespace LilithPort; -// ƒOƒ[ƒoƒ‹ +// グロヌバル MT_SP_INFORMATION MTINFO; MT_SP_OPTION MTOPTION; MT_SP_WINDOW_STATE MTWS; @@ -17,18 +17,18 @@ CRITICAL_SECTION CS_CAPTION; [STAThreadAttribute] int main(array ^args) { - // ƒRƒ“ƒgƒ[ƒ‹‚ªì¬‚³‚ê‚é‘O‚ɁAWindows XP ƒrƒWƒ…ƒAƒ‹Œø‰Ê‚ð—LŒø‚É‚µ‚Ü‚· + // コントロヌルが䜜成される前に、Windows XP ビゞュアル効果を有効にしたす Application::EnableVisualStyles(); Application::SetCompatibleTextRenderingDefault(true); - // Ž©ƒvƒƒOƒ‰ƒ€‚̃pƒX + // 自プログラムのパス TCHAR drive[_MAX_DRIVE], dir[_MAX_DIR]; GetModuleFileName(NULL, MTOPTION.PATH, _MAX_PATH); _tsplitpath_s(MTOPTION.PATH, drive, _MAX_DRIVE, dir, _MAX_DIR, NULL, 0, NULL, 0); _stprintf_s(MTOPTION.PATH, _T("%s%s"), drive, dir); - // ƒRƒ}ƒ“ƒhƒ‰ƒCƒ“ˆø” + // コマンドラむン匕数 if(args->Length > 0){ if(args[0] == "-s"){ MTINFO.SERVER_MODE = true; @@ -53,28 +53,28 @@ int main(array ^args) LoadMTOption(); CheckMTOption(); - // —”‚̏‰Šú‰»•‚Ü‚º‚Ü‚º + // 乱数の初期化たぜたぜ XorShift((UINT)DateTime::Now.Ticks); XorShift(); XorShift(); XorShift(); - // ‰¹—Ê(dB)‚ð‚ ‚ç‚©‚¶‚ߌvŽZ‚µ‚Ä‚š‚­ + // 音量(dB)をあらかじめ蚈算しおおく MTINFO.VOLUME[0] = -10000; for(int i = 1; i < 21; i++){ - // -6dB‚ʼn¹—Ê”ŒŒžADirectSound“I‚É‚Í-600 + // -6dBで音量半枛、DirectSound的には-600 // 19.931568f = -6.0f / log10(0.5f); MTINFO.VOLUME[i] = (INT32)(19.931568f*log10((float)(i*5)/100.0f)*100.0f); } InitializeCriticalSection(&CS_CAPTION); - // –¢ˆ—‚Ì—áŠO‚ðƒLƒƒƒbƒ` + // 未凊理の䟋倖をキャッチ Application::ThreadException += gcnew ThreadExceptionEventHandler(ApplicationThreadException); Threading::Thread::GetDomain()->UnhandledException += gcnew UnhandledExceptionEventHandler(ApplicationUnhandledException); - // ƒƒCƒ“ ƒEƒBƒ“ƒhƒE‚ðì¬‚µ‚āAŽÀs‚µ‚Ü‚· + // メむン りィンドりを䜜成しお、実行したす Application::Run(gcnew MainForm()); DeleteCriticalSection(&CS_CAPTION); diff --git a/LilithPort/LilithPort.vcproj b/LilithPort/LilithPort.vcproj index 9acca3d..7140dce 100644 --- a/LilithPort/LilithPort.vcproj +++ b/LilithPort/LilithPort.vcproj @@ -1,4 +1,4 @@ - + @@ -235,7 +235,7 @@ @@ -274,7 +274,7 @@ diff --git a/LilithPort/MainForm.cpp b/LilithPort/MainForm.cpp index fb65035..f4973cf 100644 --- a/LilithPort/MainForm.cpp +++ b/LilithPort/MainForm.cpp @@ -1,4 +1,4 @@ -#include "stdafx.h" +#include "stdafx.h" #include "MainForm.h" using namespace LilithPort; @@ -26,16 +26,16 @@ void MainForm::Begin() bk->IP_EP = gcnew IPEndPoint(0, 0); bk->ID = 0; - // “ÁŽêƒT[ƒoƒ‚[ƒh”»’è + // 特殊サヌバモヌド刀定 if(ServerName[0] == '#'){ ServerMode = SM_NORA; ListView = LV_BLIND; - me->NAME = gcnew String("Ÿ"); + me->NAME = gcnew String("◆"); me->COMMENT = String::Empty; MemberList->Add(me); MemberListBackUp->Add(bk); - listBoxMember->Items->Add(gcnew String("–쎎‡‰ïê")); + listBoxMember->Items->Add(gcnew String("野詊合䌚堎")); } else{ MemberList->Add(me); @@ -56,7 +56,7 @@ void MainForm::Begin() } try{ - // ‰ñüÝ’è + // 回線蚭定 if(MTOPTION.CONNECTION_TYPE == CT_SERVER || MTOPTION.CONNECTION_TYPE == CT_HOST){ UDP = gcnew UdpClient(MTOPTION.OPEN_PORT); } @@ -68,20 +68,20 @@ void MainForm::Begin() UDP = nullptr; if(e->ErrorCode == WSAEADDRINUSE){ - WriteMessage("ŠJ•úƒ|[ƒg‚ª‘Œ‚̃AƒvƒŠƒP[ƒVƒ‡ƒ“‚ÅŽg—p‚³‚ê‚Ä‚¢‚Ü‚·B\n", ErrorMessageColor); + WriteMessage("開攟ポヌトが他のアプリケヌションで䜿甚されおいたす。\n", ErrorMessageColor); } else{ - WriteMessage(String::Format("UDP‚̏‰Šú‰»‚ÉŽž”s‚µ‚Ü‚µ‚œB({0})\n", e->ErrorCode), ErrorMessageColor); + WriteMessage(String::Format("UDPの初期化に倱敗したした。({0})\n", e->ErrorCode), ErrorMessageColor); if(MTINFO.DEBUG){ WriteMessage(e->ToString() + "\n", DebugMessageColor); } } } - // ƒlƒbƒg‚ɐڑ± + // ネットに接続 if(UDP != nullptr){ - // Ý’è‚ð•Û‘¶ + // 蚭定を保存 SaveMTOption(); if(MTOPTION.AUTO_REST && MemberList[0]->STATE == MS_FREE){ @@ -91,19 +91,19 @@ void MainForm::Begin() if(MTOPTION.CONNECTION_TYPE == CT_SERVER){ - // ŽIŽóMŠJŽn + // 鯖受信開始 UDP->BeginReceive(gcnew AsyncCallback(ReceivePackets), this); - // ƒ\ƒi[‹O“¹ + // ゜ナヌ軌道 Ranging = true; SonarThread = gcnew Thread(gcnew ThreadStart(this, &MainForm::RunSonar)); SonarThread->Start(); this->Text += String::Format(" [{0}] [Server Port:{1}]", ServerName, MTOPTION.OPEN_PORT); WriteTime(0, SystemMessageColor); - WriteMessage("ƒT[ƒo‚̏€”õ‚ªŠ®—¹‚µ‚Ü‚µ‚œB\n[ƒT[ƒo[’m]-------------------\n", SystemMessageColor); + WriteMessage("サヌバの準備が完了したした。\n[サヌバヌ告知]-------------------\n", SystemMessageColor); - // WelcomeƒƒbƒZ[ƒW‚Ì•\ŽŠ + // Welcomeメッセヌゞの衚瀺 int len = _tcslen(MTOPTION.WELCOME); for(int i = 0; i < len; i++){ if(MTOPTION.WELCOME[i] == _T('\t')){ @@ -117,19 +117,19 @@ void MainForm::Begin() WriteMessage("-------------------------------\n", SystemMessageColor); - // IPƒAƒhƒŒƒX‚ðŽæ“Ÿ‚µ‚Ä•\ŽŠ + // IPアドレスを取埗しお衚瀺 if(MTOPTION.GET_IP_ENABLE){ GetIPAddress(); } } else{ - // ƒNƒ‰ƒCƒAƒ“ƒg + // クラむアント _int64 address; int port = MTOPTION.PORT; array^ host = ConnectIP->Split(gcnew array{':'}, 2, StringSplitOptions::RemoveEmptyEntries); - // ƒ|[ƒg":"Žw’è + // ポヌト":"指定 if(host->Length > 1){ try{ port = Convert::ToInt32(host[1]); @@ -141,72 +141,72 @@ void MainForm::Begin() try{ - // MTSPƒAƒhƒŒƒXÚ‘± + // MTSPアドレス接続 if(host[0]->Length == 5){ try{ if(MTINFO.DEBUG){ - WriteMessage("ƒAƒhƒŒƒX‚ð•ÏŠ·‚µ‚Ü‚·(MTSP)\n", DebugMessageColor); + WriteMessage("アドレスを倉換したす(MTSP)\n", DebugMessageColor); } address = MTDecryptionIP(host[0]); } catch(Exception^ e){ if(MTINFO.DEBUG){ - WriteMessage("ƒAƒhƒŒƒX•ÏŠ·(MTSP)Žž”s\n", ErrorMessageColor); + WriteMessage("アドレス倉換(MTSP)倱敗\n", ErrorMessageColor); WriteMessage(e->ToString() + "\n", DebugMessageColor); } } } - // •ÏŠ·ƒAƒhƒŒƒXÚ‘±(ASCII) + // 倉換アドレス接続(ASCII) if(address == 0){ try{ if(MTINFO.DEBUG){ - WriteMessage("ƒAƒhƒŒƒX‚ð•ÏŠ·‚µ‚Ü‚·(ASCII)\n", DebugMessageColor); + WriteMessage("アドレスを倉換したす(ASCII)\n", DebugMessageColor); } address = DecryptionIP(host[0], true); } catch(Exception^ e){ if(MTINFO.DEBUG){ - WriteMessage("ƒAƒhƒŒƒX•ÏŠ·(ASCII)Žž”s\n", ErrorMessageColor); + WriteMessage("アドレス倉換(ASCII)倱敗\n", ErrorMessageColor); WriteMessage(e->ToString() + "\n", DebugMessageColor); } } } - // DNSÚ‘± + // DNS接続 if(address == 0){ try{ if(MTINFO.DEBUG){ - WriteMessage("DNS‚ðŽæ“Ÿ‚µ‚Ü‚·\n", DebugMessageColor); + WriteMessage("DNSを取埗したす\n", DebugMessageColor); } address = Dns::GetHostEntry(host[0])->AddressList[0]->Address; } catch(Exception^ e){ if(MTINFO.DEBUG){ - WriteMessage("DNSŽæ“ŸŽž”s\n", ErrorMessageColor); + WriteMessage("DNS取埗倱敗\n", ErrorMessageColor); WriteMessage(e->ToString() + "\n", DebugMessageColor); } address = 0; } } - // •ÏŠ·ƒAƒhƒŒƒXÚ‘±(Unicode) + // 倉換アドレス接続(Unicode) if(address == 0){ try{ if(MTINFO.DEBUG){ - WriteMessage("ƒAƒhƒŒƒX‚ð•ÏŠ·‚µ‚Ü‚·(Unicode)\n", DebugMessageColor); + WriteMessage("アドレスを倉換したす(Unicode)\n", DebugMessageColor); } address = DecryptionIP(host[0], false); } catch(Exception^ e){ if(MTINFO.DEBUG){ - WriteMessage("ƒAƒhƒŒƒX•ÏŠ·(Unicode)Žž”s\n", ErrorMessageColor); + WriteMessage("アドレス倉換(Unicode)倱敗\n", ErrorMessageColor); WriteMessage(e->ToString() + "\n", DebugMessageColor); } } } - // ƒ[ƒJƒ‹Ú‘±—p + // ロヌカル接続甚 /* if(address == 0){ try{ @@ -216,7 +216,7 @@ void MainForm::Begin() } catch(Exception^ e){ if(MTINFO.DEBUG){ - WriteMessage("ƒ[ƒJƒ‹Ú‘±Žž”s\n", ErrorMessageColor); + WriteMessage("ロヌカル接続倱敗\n", ErrorMessageColor); WriteMessage(e->ToString() + "\n", DebugMessageColor); } address = 0; @@ -226,7 +226,7 @@ void MainForm::Begin() if(address == 0){ - WriteMessage("Ú‘±æ‚ªŒ©‚‚©‚è‚Ü‚¹‚ñ‚Å‚µ‚œB\n", ErrorMessageColor); + WriteMessage("接続先が芋぀かりたせんでした。\n", ErrorMessageColor); throw gcnew SocketException; } @@ -246,17 +246,17 @@ void MainForm::Begin() pp->Pack((BYTE)cmnt->Length); pp->Pack(cmnt); - // ƒT[ƒo‚ɐڑ±—v‹ + // サヌバに接続芁求 UDP->Send(pp->Packet, pp->Length, ep); - // •ÔM‘Ò‚¿ + // 返信埅ち UDP->Client->ReceiveTimeout = TIME_OUT; array^ rcv = UDP->Receive(ep); UDP->Client->ReceiveTimeout = 0; PacketDivider^ pd = gcnew PacketDivider(rcv); - // Ú‘±OK + // 接続OK if(pd->Divide() == PH_RES_CONNECTION){ int len = pd->Divide(); @@ -274,24 +274,24 @@ void MainForm::Begin() mi->NUM_VS = 0; mi->RESPONSE = timeGetTime(); - // –Œ‘O + // 名前 len = pd->Divide(); mi->NAME = Encoding::Unicode->GetString(pd->Divide(len)); - // ƒRƒƒ“ƒg + // コメント len = pd->Divide(); mi->COMMENT = Encoding::Unicode->GetString(pd->Divide(len)); - // ó‘Ô + // 状態 mi->STATE = pd->Divide(); MemberList->Add(mi); AddListView(mi); - // ƒo[ƒWƒ‡ƒ“Šm”F + // バヌゞョン確認 UINT ServerVersion; try{ - // 1.03ˆÈã‚È‚ç—ˆ‚é + // 1.03以䞊なら来る ServerVersion = pd->Divide(); MTINFO.VERSION_CHECKED = true; } @@ -299,19 +299,19 @@ void MainForm::Begin() MTINFO.VERSION_CHECKED = false; } if(MTINFO.VERSION_CHECKED) { - WriteMessage(String::Format("ƒT[ƒo‚̃o[ƒWƒ‡ƒ“ : v{0}\n", ServerVersion), SystemMessageColor); + WriteMessage(String::Format("サヌバのバヌゞョン : v{0}\n", ServerVersion), SystemMessageColor); if(LP_VERSION > ServerVersion){ - WriteMessage("ƒT[ƒo‚̃o[ƒWƒ‡ƒ“‚ªŒÃ‚¢‚œ‚߁Aˆê•”‹@”\‚̌݊·«‚ªŽæ‚ê‚È‚¢ê‡‚ª‚ ‚è‚Ü‚·B\n", ErrorMessageColor); + WriteMessage("サヌバのバヌゞョンが叀いため、䞀郚機胜の互換性が取れない堎合がありたす。\n", ErrorMessageColor); } else if(LP_VERSION < ServerVersion) { - WriteMessage("LilithPort‚̃o[ƒWƒ‡ƒ“‚ªƒT[ƒo‚æ‚è’á‚¢‚œ‚߁Aˆê•”‹@”\‚̌݊·«‚ªŽæ‚ê‚È‚¢ê‡‚ª‚ ‚è‚Ü‚·B\nÅVƒo[ƒWƒ‡ƒ“‚ðŠm”F‚µ‚Ä‚­‚Ÿ‚³‚¢B\n", ErrorMessageColor); + WriteMessage("LilithPortのバヌゞョンがサヌバより䜎いため、䞀郚機胜の互換性が取れない堎合がありたす。\n最新バヌゞョンを確認しおください。\n", ErrorMessageColor); } } else{ - WriteMessage("MTSP, ‚Ü‚œ‚͌¢ƒo[ƒWƒ‡ƒ“‚ÌLilithPortƒT[ƒo‚Å‚·Bˆê•”‹@”\‚̌݊·«‚ªŽæ‚ê‚È‚¢ê‡‚ª‚ ‚è‚Ü‚·B\n", ErrorMessageColor); + WriteMessage("MTSP, たたは叀いバヌゞョンのLilithPortサヌバです。䞀郚機胜の互換性が取れない堎合がありたす。\n", ErrorMessageColor); } - // ‘ ŽóMŠJŽn + // 蔵受信開始 UDP->BeginReceive(gcnew AsyncCallback(ReceivePackets), this); @@ -321,34 +321,34 @@ void MainForm::Begin() else{ this->Text += String::Format(" [{0}] [Client]", ServerName); } - WriteMessage(String::Format("{0}‚ɐڑ±‚µ‚Ü‚µ‚œB (ID = {1})\n", ServerName, me->ID), SystemMessageColor); + WriteMessage(String::Format("{0}に接続したした。 (ID = {1})\n", ServerName, me->ID), SystemMessageColor); if(ServerName->Length > 0){ if(ServerName[0] == '+'){ ServerMode = SM_MIX; - WriteMessage("¬ÝƒT[ƒo‚Å‚·B\n", SystemMessageColor); + WriteMessage("混圚サヌバです。\n", SystemMessageColor); } if(ServerName[0] == '@'){ ServerMode = SM_MATCH; - WriteMessage("ƒ`ƒƒƒbƒg‹ÖŽ~ƒT[ƒo‚Å‚·B\n", SystemMessageColor); + WriteMessage("チャット犁止サヌバです。\n", SystemMessageColor); } else if(ServerName[0] == '#'){ ServerMode = SM_NORA; - WriteMessage("‚š‚š‚Á‚ƁI –ì—ǃT[ƒo\n", SystemMessageColor); + WriteMessage("おおっず 野良サヌバ\n", SystemMessageColor); ListView = LV_BLIND; - listBoxMember->Items[0] = gcnew String("–쎎‡‰ïê"); + listBoxMember->Items[0] = gcnew String("野詊合䌚堎"); } } - // ƒƒ“ƒo[ƒŠƒXƒg‚ð—v‹ + // メンバヌリストを芁求 pp->Clear(); pp->Pack(PH_REQ_LIST); pp->Pack(0); pp->Pack(0); UDP->Send(pp->Packet, pp->Length, ep); - // ƒ\ƒi[‹N“® + // ゜ナヌ起動 Ranging = true; SonarThread = gcnew Thread(gcnew ThreadStart(this, &MainForm::RunSonar)); SonarThread->Start(); @@ -362,27 +362,27 @@ void MainForm::Begin() if(e->ErrorCode == 0){ if(me->ID == 0xFFFF){ - WriteMessage(String::Format("{0}‚Í–žŽº‚Å‚·B\n", ServerName), ErrorMessageColor); + WriteMessage(String::Format("{0}は満宀です。\n", ServerName), ErrorMessageColor); } else if(me->ID == 0xFFFE){ - WriteMessage("–{‘̂̃o[ƒWƒ‡ƒ“‚ªˆá‚¢‚Ü‚·B\n", ErrorMessageColor); + WriteMessage("本䜓のバヌゞョンが違いたす。\n", ErrorMessageColor); } else if(me->ID > MAX_ID){ - WriteMessage(String::Format("{0}‚Í‚±‚êˆÈãID‚𔭍s‚Å‚«‚Ü‚¹‚ñB\n", ServerName), ErrorMessageColor); + WriteMessage(String::Format("{0}はこれ以䞊IDを発行できたせん。\n", ServerName), ErrorMessageColor); } else if(address != 0){ - WriteMessage("ƒT[ƒo‚ɐڑ±‚Å‚«‚Ü‚¹‚ñ‚Å‚µ‚œB\n‰ñü‚ª¬ŽG‚µ‚Ä‚¢‚é‰Â”\«‚ª‚ ‚è‚Ü‚·B\n", ErrorMessageColor); + WriteMessage("サヌバに接続できたせんでした。\n回線が混雑しおいる可胜性がありたす。\n", ErrorMessageColor); } } else{ if(e->ErrorCode == WSAECONNRESET){ - WriteMessage("ƒT[ƒo‚̃|[ƒg‚ªŠJ‚¢‚Ä‚¢‚Ü‚¹‚ñB\n", ErrorMessageColor); + WriteMessage("サヌバのポヌトが開いおいたせん。\n", ErrorMessageColor); } else if(e->ErrorCode == WSAETIMEDOUT){ - WriteMessage("ƒT[ƒo‚©‚ç‚̉ž“š‚ª‚ ‚è‚Ü‚¹‚ñ‚Å‚µ‚œB\nƒT[ƒo‚ª‰Ò“­‚µ‚Ä‚¢‚È‚¢‚©AƒAƒhƒŒƒX‚ªŠÔˆá‚Á‚Ä‚¢‚é‰Â”\«‚ª‚ ‚è‚Ü‚·B\n", ErrorMessageColor); + WriteMessage("サヌバからの応答がありたせんでした。\nサヌバが皌働しおいないか、アドレスが間違っおいる可胜性がありたす。\n", ErrorMessageColor); } else if(e->ErrorCode != WSAHOST_NOT_FOUND){ - WriteMessage(String::Format("ƒ\ƒPƒbƒgƒGƒ‰[ > {0}\n", e->ErrorCode), ErrorMessageColor); + WriteMessage(String::Format("゜ケット゚ラヌ > {0}\n", e->ErrorCode), ErrorMessageColor); } if(MTINFO.DEBUG){ WriteMessage(e->ToString() + "\n", DebugMessageColor); @@ -460,7 +460,7 @@ void MainForm::ReceivePackets(IAsyncResult^ asyncResult) case PH_REQ_CONNECTION: case PH_REQ_CONNECTION_H: - // ŽI‚¶‚á‚È‚¢‚̂ɐڑ±—v‹‚ª—ˆ‚œ + // 鯖じゃないのに接続芁求が来た if(MTOPTION.CONNECTION_TYPE != CT_SERVER){ break; } @@ -478,18 +478,18 @@ void MainForm::ReceivePackets(IAsyncResult^ asyncResult) i = pd->Divide() == PH_REQ_CONNECTION ? CT_CLIENT : CT_HOST; - // ƒT[ƒo–Œ + // サヌバ名 pp->Pack(PH_RES_CONNECTION); pp->Pack((BYTE)saba->Length); pp->Pack(saba); - // ID‚Ì”­s + // IDの発行 if(MemberList->Count > (int)MTOPTION.MAX_CONNECTION){ - // –žŽº + // 満宀 a_id = gcnew array{ 0xFF, 0xFF }; } else if(pd->Divide() != TYMT_VERSION){ - // ƒo[ƒWƒ‡ƒ“ˆá‚¢ + // バヌゞョン違い a_id = gcnew array{ 0xFE, 0xFF }; } else{ @@ -497,10 +497,10 @@ void MainForm::ReceivePackets(IAsyncResult^ asyncResult) if(IDCounter <= MAX_ID){ if(IDCounter == MAX_ID){ - form->WriteMessage("”­sID‚ªŒÀŠE‚É’B‚µ‚Ü‚µ‚œB\n", ErrorMessageColor); + form->WriteMessage("発行IDが限界に達したした。\n", ErrorMessageColor); } - // ƒƒ“ƒo[“o˜^ + // メンバヌ登録 mi = gcnew MemberInfo; mi->IP_EP = ep; mi->ID = IDCounter; @@ -509,23 +509,23 @@ void MainForm::ReceivePackets(IAsyncResult^ asyncResult) mi->NUM_VS = 0; mi->RESPONSE = timeGetTime(); - // –Œ‘O + // 名前 i = pd->Divide(); mi->NAME = Encoding::Unicode->GetString(pd->Divide(i)); - // ƒRƒƒ“ƒg + // コメント i = pd->Divide(); mi->COMMENT = Encoding::Unicode->GetString(pd->Divide(i)); if(ListView == LV_BLIND){ - mi->NAME = gcnew String("Ÿ"); + mi->NAME = gcnew String("◆"); mi->COMMENT = String::Empty; } MemberList->Add(mi); form->AddListView(mi); - // ƒoƒbƒNƒAƒbƒv + // バックアップ MemberInfoBackUp^ mibk = gcnew MemberInfoBackUp; mibk->IP_EP = ep; mibk->ID = IDCounter; @@ -546,27 +546,27 @@ void MainForm::ReceivePackets(IAsyncResult^ asyncResult) // ID pp->Pack(a_id); - // ŽIŽå‚̃jƒbƒNƒl[ƒ€ + // 鯖䞻のニックネヌム pp->Pack((BYTE)name->Length); pp->Pack(name); - // ŽIŽå‚̃Rƒƒ“ƒg + // 鯖䞻のコメント pp->Pack((BYTE)cmnt->Length); pp->Pack(cmnt); - // ó‘Ô + // 状態 pp->Pack((BYTE)MemberList[0]->STATE); - // ƒo[ƒWƒ‡ƒ“î•ñ‘—M + // バヌゞョン情報送信 pp->Pack((BYTE)LP_VERSION); - // “o˜^Š®—¹ + // 登録完了 UDP->Send(pp->Packet, pp->Length, ep); if(mi != nullptr){ pp->Clear(); - // ‘Sˆõ‚É“üŽº‚ð’Ê’m + // 党員に入宀を通知 name = Encoding::Unicode->GetBytes(mi->NAME); cmnt = Encoding::Unicode->GetBytes(mi->COMMENT); array^ address = ep->Address->GetAddressBytes(); @@ -584,7 +584,7 @@ void MainForm::ReceivePackets(IAsyncResult^ asyncResult) pp->Pack(address); pp->Pack(port); - // ŠÈˆÕˆÃ† + // 簡易暗号 Monitor::Enter(ServerName); try{ CipherRand(ServerName->GetHashCode()); @@ -606,7 +606,7 @@ void MainForm::ReceivePackets(IAsyncResult^ asyncResult) Monitor::Exit(MemberList); } - // WelcomeƒƒbƒZ[ƒW + // Welcomeメッセヌゞ for(UINT j = 0; j < _tcslen(MTOPTION.WELCOME); j++){ if(MTOPTION.WELCOME[j] == _T('\t')){ MTOPTION.WELCOME[j] = _T('\n'); @@ -636,14 +636,14 @@ void MainForm::ReceivePackets(IAsyncResult^ asyncResult) form->TalkMessage(BitConverter::ToUInt16(rcv, 1), rcv); } else{ - // ŽóMONLY + // 受信ONLY form->TalkMessage(0xFFFF, rcv); } break; case PH_NOTICE: if(UDP != nullptr){ - form->WriteMessage("[ƒT[ƒo[’m]-------------------\n", SystemMessageColor); + form->WriteMessage("[サヌバヌ告知]-------------------\n", SystemMessageColor); form->WriteNotice(Encoding::Unicode->GetString(rcv, 2, (rcv->Length)-2)); form->WriteMessage("-------------------------------\n", SystemMessageColor); } @@ -661,7 +661,7 @@ void MainForm::ReceivePackets(IAsyncResult^ asyncResult) Monitor::Enter(MemberList); try{ for(i = 1; i < MemberList->Count; i++){ - // id == 0‚Å‘Sˆõ•ª + // id == 0で党員分 if(id == 0 || id == MemberList[i]->ID){ a_id = BitConverter::GetBytes((UINT16)(MemberList[i]->ID | MemberList[i]->TYPE << 14)); name = Encoding::Unicode->GetBytes(MemberList[i]->NAME); @@ -680,7 +680,7 @@ void MainForm::ReceivePackets(IAsyncResult^ asyncResult) pp->Pack(address); pp->Pack(port); - // ŠÈˆÕˆÃ† + // 簡易暗号 Monitor::Enter(ServerName); try{ CipherRand(ServerName->GetHashCode()); @@ -702,32 +702,32 @@ void MainForm::ReceivePackets(IAsyncResult^ asyncResult) } if(MTINFO.DEBUG){ if(id == 0){ - form->WriteMessage("ƒƒ“ƒo[ƒŠƒXƒg‚Ì—v‹‚ð•ÔM‚µ‚Ü‚µ‚œB\n", DebugMessageColor); + form->WriteMessage("メンバヌリストの芁求を返信したした。\n", DebugMessageColor); } } if(id > 0 && i >= MemberList->Count){ - // ƒT[ƒo‚Å‚àƒNƒ‰‚Å‚àŒ©‚Š‚È‚¢ó‘Ô + // サヌバでもクラでも芋えない状態 if(MTINFO.DEBUG){ - form->WriteMessage(String::Format("Unknown({0})‚ÌŒŸõ\n", id), ErrorMessageColor); + form->WriteMessage(String::Format("Unknown({0})の怜玢\n", id), ErrorMessageColor); } - // ƒoƒbƒNƒAƒbƒvŒŸõ + // バックアップ怜玢 if(id <= MemberListBackUp->Count){ try{ - // Unknown’Ê’m + // Unknown通知 array^ send = gcnew array(3){ PH_LOST, 0xFF, 0xFF }; UDP->BeginSend(send, send->Length, MemberListBackUp[id]->IP_EP, gcnew AsyncCallback(SendPackets), UDP); - form->WriteMessage(String::Format("Unknown({0})‚É’Ê’m‚ð‚µ‚Ü‚µ‚œB\n", id), SystemMessageColor); + form->WriteMessage(String::Format("Unknown({0})に通知をしたした。\n", id), SystemMessageColor); } catch(Exception^){ if(MTINFO.DEBUG){ - form->WriteMessage(String::Format("Unknown({0})‚Ö‚Ì’Ê’m‚ÉŽž”s‚µ‚Ü‚µ‚œB\n", id), ErrorMessageColor); + form->WriteMessage(String::Format("Unknown({0})ぞの通知に倱敗したした。\n", id), ErrorMessageColor); } } }else{ - // ƒoƒbƒNƒAƒbƒvƒŠƒXƒgˆÈã‚ÌID - form->WriteMessage(String::Format("—š—ð‚É‘¶Ý‚µ‚È‚¢Ú‘±ID‚Å‚·B\nƒT[ƒo‚ðƒVƒƒƒbƒgƒ_ƒEƒ“ŒãA‚µ‚΂炭‚µ‚Ä‚©‚çƒT[ƒo‚ð‹N“®‚µ‚Ä‚­‚Ÿ‚³‚¢B\n", id), ErrorMessageColor); + // バックアップリスト以䞊のID + form->WriteMessage(String::Format("履歎に存圚しない接続IDです。\nサヌバをシャットダりン埌、しばらくしおからサヌバを起動しおください。\n", id), ErrorMessageColor); } } } @@ -739,7 +739,7 @@ void MainForm::ReceivePackets(IAsyncResult^ asyncResult) case PH_RES_LIST: case PH_NEW_MEMBER: - // ŠÈˆÕ•œ† + // 簡易埩号 Monitor::Enter(ServerName); try{ CipherRand(ServerName->GetHashCode()); @@ -767,25 +767,25 @@ void MainForm::ReceivePackets(IAsyncResult^ asyncResult) mi->TYPE = id >> 14; mi->NUM_VS = 0; - // –Œ‘O + // 名前 len = pd->Divide(); mi->NAME = Encoding::Unicode->GetString(pd->Divide(len)); - // ƒRƒƒ“ƒg + // コメント len = pd->Divide(); mi->COMMENT = Encoding::Unicode->GetString(pd->Divide(len)); - // ó‘Ô + // 状態 mi->STATE = pd->Divide(); - // ƒGƒ“ƒhƒ|ƒCƒ“ƒg + // ゚ンドポむント mi->IP_EP->Address = gcnew IPAddress(pd->Divide(4)); mi->IP_EP->Port = BitConverter::ToUInt16(pd->Divide(2), 0); MemberList->Add(mi); form->AddListView(mi); - // ˆ¥ŽA‘ã‚í‚è + // 挚拶代わり UDP->Send(gcnew array{PH_PING}, 1, mi->IP_EP); if(rcv[0] == PH_NEW_MEMBER){ @@ -806,7 +806,7 @@ void MainForm::ReceivePackets(IAsyncResult^ asyncResult) try{ if(MTOPTION.CONNECTION_TYPE == CT_SERVER){ int member = 0; - // ‘Sˆõ‚É’Ê’B + // 党員に通達 for(i = 1; i < MemberList->Count; i++){ if(id != MemberList[i]->ID){ UDP->BeginSend(rcv, rcv->Length, MemberList[i]->IP_EP, gcnew AsyncCallback(SendPackets), UDP); @@ -819,10 +819,10 @@ void MainForm::ReceivePackets(IAsyncResult^ asyncResult) if(member > 0){ if(ListView != LV_BLIND){ form->WriteTime(0, SystemMessageColor); - form->WriteMessage(MemberList[member]->NAME + "‚ª‘ÞŽº‚µ‚Ü‚µ‚œB\n", SystemMessageColor); + form->WriteMessage(MemberList[member]->NAME + "が退宀したした。\n", SystemMessageColor); } - // ŠÏí’†Ž~ + // 芳戊䞭止 if(MemberList[0]->STATE == MS_WATCH || MemberList[0]->STATE == MS_COUCH){ if(TargetID == MemberList[member]->ID){ form->QuitWatch(false); @@ -835,11 +835,11 @@ void MainForm::ReceivePackets(IAsyncResult^ asyncResult) else{ if(id == 0){ form->WriteTime(0, SystemMessageColor); - form->WriteMessage(ServerName + "‚ªƒVƒƒƒbƒgƒ_ƒEƒ“‚µ‚Ü‚µ‚œB\n", SystemMessageColor); + form->WriteMessage(ServerName + "がシャットダりンしたした。\n", SystemMessageColor); MemberList[0]->STATE = 0xFF; } else if(id == 0xFFFF){ - form->WriteMessage(ServerName + "‚É‚Í“o˜^‚³‚ê‚Ä‚¢‚Ü‚¹‚ñB\nŽžŠÔ‚ð’u‚¢‚čĐڑ±‚µ‚Ä‚Ý‚Ä‚­‚Ÿ‚³‚¢B\n", ErrorMessageColor); + form->WriteMessage(ServerName + "には登録されおいたせん。\n時間を眮いお再接続しおみおください。\n", ErrorMessageColor); MemberList[0]->STATE = 0xFF; } else{ @@ -847,18 +847,18 @@ void MainForm::ReceivePackets(IAsyncResult^ asyncResult) if(id == MemberList[i]->ID){ if(i == 0){ form->WriteTime(0, SystemMessageColor); - form->WriteMessage("ƒT[ƒo‚Ƃ̐ڑ±‚ªØ’f‚³‚ê‚Ü‚µ‚œB\n", ErrorMessageColor); + form->WriteMessage("サヌバずの接続が切断されたした。\n", ErrorMessageColor); MemberList[0]->STATE = 0xFF; } else{ if(ListView != LV_BLIND){ if(rcv[0] == PH_QUIT){ form->WriteTime(0, SystemMessageColor); - form->WriteMessage(MemberList[i]->NAME + "‚ª‘ÞŽº‚µ‚Ü‚µ‚œB\n", SystemMessageColor); + form->WriteMessage(MemberList[i]->NAME + "が退宀したした。\n", SystemMessageColor); } else{ form->WriteTime(0, SystemMessageColor); - form->WriteMessage(MemberList[i]->NAME + "‚̉ñü‚ª“rØ‚ê‚Ü‚µ‚œB\n", ErrorMessageColor); + form->WriteMessage(MemberList[i]->NAME + "の回線が途切れたした。\n", ErrorMessageColor); if(MTINFO.DEBUG){ form->WriteMessage(String::Format("ID = {0}\n", MemberList[i]->ID), DebugMessageColor); form->WriteMessage(String::Format("IP_EP = {0}\n", MemberList[i]->IP_EP), DebugMessageColor); @@ -866,7 +866,7 @@ void MainForm::ReceivePackets(IAsyncResult^ asyncResult) } } - // ŠÏí’†Ž~ + // 芳戊䞭止 if(MemberList[0]->STATE == MS_WATCH || MemberList[0]->STATE == MS_COUCH){ if(TargetID == MemberList[i]->ID){ form->QuitWatch(false); @@ -902,7 +902,7 @@ void MainForm::ReceivePackets(IAsyncResult^ asyncResult) if(MemberList[i]->STATE == MS_SEEK && rcv[3] != MS_SEEK){ form->WriteTime(0, SystemMessageColor); - form->WriteMessage(String::Format("{0}‚ª‘ΐí•åW‚ð’÷‚ߐ؂è‚Ü‚µ‚œB\n", MemberList[i]->NAME), SystemMessageColor); + form->WriteMessage(String::Format("{0}が察戊募集を締め切りたした。\n", MemberList[i]->NAME), SystemMessageColor); } MemberList[i]->STATE = rcv[3]; @@ -910,7 +910,7 @@ void MainForm::ReceivePackets(IAsyncResult^ asyncResult) if(MemberList[i]->STATE == MS_SEEK){ form->WriteTime(0, SystemMessageColor); - form->WriteMessage(String::Format("{0}‚ª‘ΐí•åWó‘Ô‚É‚È‚è‚Ü‚µ‚œB\n", MemberList[i]->NAME), SystemMessageColor); + form->WriteMessage(String::Format("{0}が察戊募集状態になりたした。\n", MemberList[i]->NAME), SystemMessageColor); if(MTOPTION.SEEK_SOUND_ENABLE){ try{ Media::SoundPlayer^ wav = gcnew Media::SoundPlayer(gcnew String(MTOPTION.SEEK_SOUND)); @@ -984,12 +984,12 @@ void MainForm::ReceivePackets(IAsyncResult^ asyncResult) MemberList[i]->RESPONSE = timeGetTime(); if(rcv[3] == 0xFF){ - // ‚»‚ñ‚Ȑl‚¢‚È‚©‚Á‚œ + // そんな人いなかった form->WriteTime(0, SystemMessageColor); - form->WriteMessage(MemberList[i]->NAME + "‚ÍŠù‚É‚¢‚Ü‚¹‚ñ‚Å‚µ‚œB\n", SystemMessageColor); + form->WriteMessage(MemberList[i]->NAME + "は既にいたせんでした。\n", SystemMessageColor); if(MTOPTION.CONNECTION_TYPE == CT_SERVER){ - // ‘Sˆõ‚É’Ê’B + // 党員に通達 rcv[0] = PH_LOST; for(int j = 1; j < MemberList->Count; j++){ @@ -999,9 +999,9 @@ void MainForm::ReceivePackets(IAsyncResult^ asyncResult) } } else{ - // ‚¢‚È‚©‚Á‚œ’Ê’m ‰ž‹}ˆ’uVer - // ‘ ‚©‚ç‚Ì‚ÝŒ©‚Š‚Ä‚¢‚éó‘Ô - // ƒT[ƒo‚ɂ͏î•ñ‚ª‚È‚¢‚̂ŊԐړI‚É’Ê’m‚µ‚Ä‚à‚ç‚€ + // いなかった通知 応急凊眮Ver + // 蔵からのみ芋えおいる状態 + // サヌバには情報がないので間接的に通知しおもらう rcv[0] = PH_LOST; rcv[1] = 0xFF; rcv[2] = 0xFF; @@ -1016,9 +1016,9 @@ void MainForm::ReceivePackets(IAsyncResult^ asyncResult) form->WriteMessage(String::Format(MemberList[i]->NAME + " > state:{0}\n", rcv[3]), DebugMessageColor); } form->WriteTime(0, SystemMessageColor); - form->WriteMessage(MemberList[i]->NAME + "‚̏ó‘Ô‚ðXV‚µ‚Ü‚µ‚œB\n", SystemMessageColor); + form->WriteMessage(MemberList[i]->NAME + "の状態を曎新したした。\n", SystemMessageColor); if(MTOPTION.CONNECTION_TYPE != CT_SERVER && MemberList[i]->ID == 0){ - form->WriteMessage("ƒT[ƒo[‚Ƃ̒ʐM‚ª“rØ‚ê‚œ‰Â”\«‚ª‚ ‚è‚Ü‚·BÄÚ‘±‚ð‚µ‚Ä‚Ý‚Ä‚­‚Ÿ‚³‚¢B\n", ErrorMessageColor); + form->WriteMessage("サヌバヌずの通信が途切れた可胜性がありたす。再接続をしおみおください。\n", ErrorMessageColor); } MemberList[i]->STATE = rcv[3]; form->listBoxMember->Refresh(); @@ -1053,7 +1053,7 @@ void MainForm::ReceivePackets(IAsyncResult^ asyncResult) form->listBoxMember->Items[i] = MemberList[i]->COMMENT; } else{ - form->listBoxMember->Items[i] = gcnew String("Ÿ"); + form->listBoxMember->Items[i] = gcnew String("◆"); } } } @@ -1092,7 +1092,7 @@ void MainForm::ReceivePackets(IAsyncResult^ asyncResult) case PH_REQ_VS: - // €”õŽžŠÔ‚ª’·‚·‚¬‚œê‡‚͐V‹KÚ‘±Žó•t + // 準備時間が長すぎた堎合は新芏接続受付 if(NetVS != nullptr && MemberList[0]->STATE == MS_READY){ if((timeGetTime() - NetVS->START_UP) > TIME_OUT*2 + 1000){ MemberList[0]->STATE = MS_FREE; @@ -1111,17 +1111,17 @@ void MainForm::ReceivePackets(IAsyncResult^ asyncResult) send[0] = PH_RES_VS; send[1] = (BYTE)MemberList[0]->STATE; - // ŠiƒcƒN‚¶‚á‚È‚¢‚æ + // 栌ツクじゃないよ try{ String^ exe = gcnew String(MTOPTION.GAME_EXE); FileVersionInfo^ info = FileVersionInfo::GetVersionInfo(exe); - if(info->FileDescription != "‚Q‚cŠi“¬ƒcƒN[ƒ‹2nd." && info->FileDescription != "‚Q‚cŠi“¬ƒcƒN[ƒ‹‚X‚T"){ + if(info->FileDescription != "栌闘ツクヌル2nd." && info->FileDescription != "栌闘ツクヌル"){ throw gcnew Exception; } /* else if(ServerMode == SM_MIX){ - // ¬ÝƒT[ƒoƒ‚[ƒh‚Ȃ̂ŁAŽÀsƒtƒ@ƒCƒ‹‚̃`ƒFƒbƒN + // 混圚サヌバモヌドなので、実行ファむルのチェック if((INT32)(Path::GetFileNameWithoutExtension(exe)->GetHashCode()) != BitConverter::ToInt32(rcv, 3)){ send[1] = 0xFE; } @@ -1131,7 +1131,7 @@ void MainForm::ReceivePackets(IAsyncResult^ asyncResult) if((INT32)(Path::GetFileNameWithoutExtension(exe)->GetHashCode()) != BitConverter::ToInt32(rcv, 3)){ send[1] = 0xFE; } - if(info->FileDescription == "‚Q‚cŠi“¬ƒcƒN[ƒ‹2nd."){ + if(info->FileDescription == "栌闘ツクヌル2nd."){ MTINFO.KGT2K = true; } else{ @@ -1141,8 +1141,8 @@ void MainForm::ReceivePackets(IAsyncResult^ asyncResult) } catch(Exception^){ send[1] = 0xFF; - form->WriteMessage("Ši“¬ƒcƒN[ƒ‹‚ÌŽÀsƒtƒ@ƒCƒ‹‚Å‚Í‚ ‚è‚Ü‚¹‚ñB\n", ErrorMessageColor); - form->WriteMessage("ƒIƒvƒVƒ‡ƒ“‚ÅŽÀsƒtƒ@ƒCƒ‹‚̃pƒX‚ðÝ’肵‚Ä‚­‚Ÿ‚³‚¢B\n", ErrorMessageColor); + form->WriteMessage("栌闘ツクヌルの実行ファむルではありたせん。\n", ErrorMessageColor); + form->WriteMessage("オプションで実行ファむルのパスを蚭定しおください。\n", ErrorMessageColor); } UDP->BeginSend(send, send->Length, ep, gcnew AsyncCallback(SendPackets), UDP); @@ -1159,11 +1159,11 @@ void MainForm::ReceivePackets(IAsyncResult^ asyncResult) } if(i >= MemberList->Count){ - form->WriteMessage("ƒŠƒXƒg‚É‚¢‚È‚¢l•š‚©‚ç‚̑ΐí—v‹‚ª‚ ‚è‚Ü‚µ‚œB\n", ErrorMessageColor); + form->WriteMessage("リストにいない人物からの察戊芁求がありたした。\n", ErrorMessageColor); MemberList[0]->STATE = MS_FREE; if(MTOPTION.CONNECTION_TYPE != CT_SERVER){ - // ’m‚ç‚È‚¢l‚ª‚¢‚œ‚̂ŃT[ƒo‚É–â‚¢‡‚킹 + // 知らない人がいたのでサヌバに問い合わせ array^ send = gcnew array(3){ PH_REQ_LIST }; Array::Copy(BitConverter::GetBytes(id), 0, send, 1, 2); UDP->Send(send, 3, MemberList[1]->IP_EP); @@ -1185,11 +1185,11 @@ void MainForm::ReceivePackets(IAsyncResult^ asyncResult) NetVS->R_FRAME = 0; NetVS->R_READ = 0; - // ŠÏí—pID + // 芳戊甚ID P1ID = MemberList[0]->ID; P2ID = id; - // –Œ‘O + // 名前 ZeroMemory(MTINFO.P1_NAME, sizeof(MTINFO.P1_NAME)); ZeroMemory(MTINFO.P2_NAME, sizeof(MTINFO.P2_NAME)); @@ -1201,13 +1201,13 @@ void MainForm::ReceivePackets(IAsyncResult^ asyncResult) Runtime::InteropServices::Marshal::FreeHGlobal(mp); } - // ‘ΐí‰ñ” + // 察戊回数 MemberList[i]->NUM_VS++; if(ListView != LV_BLIND){ form->WriteTime(0, SystemMessageColor); form->WriteMessage(MemberList[i]->NAME, NameColor[MemberList[i]->TYPE]); - form->WriteMessage("‚©‚ç‘ΐí‚̐\‚µž‚Ý‚Å‚·B\n", SystemMessageColor); + form->WriteMessage("から察戊の申し蟌みです。\n", SystemMessageColor); } } finally{ @@ -1220,25 +1220,25 @@ void MainForm::ReceivePackets(IAsyncResult^ asyncResult) if((rcv[1] != MS_FREE)&&(rcv[1] != MS_SEEK)){ switch(rcv[1]){ case MS_REST: - form->WriteMessage("’§í‘ŠŽè‚Í‹xŒe’†‚Å‚·B\n", SystemMessageColor); + form->WriteMessage("挑戊盞手は䌑憩䞭です。\n", SystemMessageColor); break; case MS_VS: - form->WriteMessage("’§í‘ŠŽè‚͑ΐ풆‚Å‚·B\n", SystemMessageColor); + form->WriteMessage("挑戊盞手は察戊䞭です。\n", SystemMessageColor); break; case MS_WATCH: case MS_COUCH: - form->WriteMessage("’§í‘ŠŽè‚͊ϐ풆‚Å‚·B\n", SystemMessageColor); + form->WriteMessage("挑戊盞手は芳戊䞭です。\n", SystemMessageColor); break; case MS_SEEK: break; case MS_READY: - form->WriteMessage("’§í‘ŠŽè‚Í‘Œ‚̐l‚Ƒΐ폀”õ’†‚Å‚·B\n", SystemMessageColor); + form->WriteMessage("挑戊盞手は他の人ず察戊準備䞭です。\n", SystemMessageColor); break; case 0xFE: - form->WriteMessage("’§í‘ŠŽè‚ƃvƒŒƒC‚·‚éƒQ[ƒ€‚ªˆá‚¢‚Ü‚·B\n", ErrorMessageColor); + form->WriteMessage("挑戊盞手ずプレむするゲヌムが違いたす。\n", ErrorMessageColor); break; default: - form->WriteMessage("’§í‘ŠŽè‚ª‘ΐío—ˆ‚éó‘Ô‚Å‚Í‚ ‚è‚Ü‚¹‚ñB\n", SystemMessageColor); + form->WriteMessage("挑戊盞手が察戊出来る状態ではありたせん。\n", SystemMessageColor); break; } @@ -1289,7 +1289,7 @@ void MainForm::ReceivePackets(IAsyncResult^ asyncResult) if(NetVS != nullptr && NetVS->SEQUENCE == VS_SETTING){ send = gcnew array(11){ PH_RES_VS_SETTING }; - // ‘ΐíÝ’è + // 察戊蚭定 MTINFO.SEED = XorShift(); MTINFO.MAX_STAGE = MTOPTION.MAX_STAGE; MTINFO.STAGE_SELECT = MTOPTION.STAGE_SELECT; @@ -1297,7 +1297,7 @@ void MainForm::ReceivePackets(IAsyncResult^ asyncResult) MTINFO.TIMER = MTOPTION.TIMER; MTINFO.TEAM_ROUND_HP = MTOPTION.TEAM_ROUND_HP; - // ƒfƒBƒŒƒC + // ディレむ if(MTOPTION.DELAY == 0 || rcv[1] > MTOPTION.DELAY){ send[1] = rcv[1]; } @@ -1329,11 +1329,11 @@ void MainForm::ReceivePackets(IAsyncResult^ asyncResult) MTINFO.CONTROL = 0; - // ‘ΐíŠJŽn + // 察戊開始 form->WriteTime(0, SystemMessageColor); - form->WriteMessage(String::Format("‘ΐí‚ðŠJŽn‚µ‚Ü‚·B(delay:{0})\n", NetVS->DELAY), SystemMessageColor); + form->WriteMessage(String::Format("察戊を開始したす。(delay:{0})\n", NetVS->DELAY), SystemMessageColor); - // ‰¹‚Å‚š’m‚点 + // 音でお知らせ if(MTOPTION.VS_SOUND_ENABLE){ try{ Media::SoundPlayer^ wav = gcnew Media::SoundPlayer(gcnew String(MTOPTION.VS_SOUND)); @@ -1343,7 +1343,7 @@ void MainForm::ReceivePackets(IAsyncResult^ asyncResult) } } - // ‘Ò‚¿Žó‚¯—p‚¿‚å‚Á‚ƃXƒŠ[ƒv + // 埅ち受け甚ちょっずスリヌプ Thread::Sleep(1000); GameThread = gcnew Thread(gcnew ParameterizedThreadStart(form, &MainForm::RunGame)); @@ -1371,7 +1371,7 @@ void MainForm::ReceivePackets(IAsyncResult^ asyncResult) MTINFO.STAGE_SELECT = rcv[7]; MTINFO.ROUND = rcv[8]; MTINFO.TIMER = rcv[9]; - // v1.04ˆÈãŒÝŠ· + // v1.04以䞊互換 try{ if(rcv[10]){ MTINFO.TEAM_ROUND_HP = true; @@ -1381,7 +1381,7 @@ void MainForm::ReceivePackets(IAsyncResult^ asyncResult) } catch(Exception^){ MTINFO.TEAM_ROUND_HP = false; - form->WriteMessage("‘ΐ푊Žè‚ªŒÃ‚¢ƒo[ƒWƒ‡ƒ“‚ÌLilithPort‚©AMTSP‚Å‚·B\n", ErrorMessageColor); + form->WriteMessage("察戊盞手が叀いバヌゞョンのLilithPortか、MTSPです。\n", ErrorMessageColor); } @@ -1394,7 +1394,7 @@ void MainForm::ReceivePackets(IAsyncResult^ asyncResult) case PH_VS_END: if(NetVS != nullptr){ - form->WriteMessage("‘ΐíI—¹‚Ì‚š’m‚点‚Å‚·B\n", SystemMessageColor); + form->WriteMessage("察戊終了のお知らせです。\n", SystemMessageColor); NetVS->SEQUENCE = VS_END; form->QuitGame(); @@ -1424,14 +1424,14 @@ void MainForm::ReceivePackets(IAsyncResult^ asyncResult) try{ if(NetVS->R_FRAME > f + NetVS->DELAY){ if(MTINFO.DEBUG){ - form->WriteMessage(String::Format("–³Œø‚ȃpƒPƒbƒg(’x‰„) > {0} / {1}\n", f, NetVS->R_FRAME), DebugMessageColor); + form->WriteMessage(String::Format("無効なパケット(遅延) > {0} / {1}\n", f, NetVS->R_FRAME), DebugMessageColor); } break; } else if(f > NetVS->R_FRAME + NetVS->DELAY){ - // ‚Ü‚ž‚±‚È‚¢ + // たずこない if(MTINFO.DEBUG){ - form->WriteMessage(String::Format("–³Œø‚ȃpƒPƒbƒg(æs) > {0} / {1}\n", f, NetVS->R_FRAME), DebugMessageColor); + form->WriteMessage(String::Format("無効なパケット(先行) > {0} / {1}\n", f, NetVS->R_FRAME), DebugMessageColor); } break; } @@ -1469,21 +1469,21 @@ void MainForm::ReceivePackets(IAsyncResult^ asyncResult) try{ if(f >= NetVS->L_FRAME + NetVS->DELAY){ if(MTINFO.DEBUG){ - form->WriteMessage(String::Format("–³Œø‚ȃpƒPƒbƒg(æs—v‹) > {0} / {1}\n", f, NetVS->L_FRAME), DebugMessageColor); + form->WriteMessage(String::Format("無効なパケット(先行芁求) > {0} / {1}\n", f, NetVS->L_FRAME), DebugMessageColor); } UDP->BeginSend(send, send->Length, ep, gcnew AsyncCallback(SendPackets), UDP); break; } else if(NetVS->L_FRAME > f + NetVS->DELAY*2){ - // Šù‚Ƀf[ƒ^‚ª‚È‚¢‚Ì‚Å‚±‚ꂪ‚­‚é‚ƃQ[ƒ€‚É‚È‚ç‚È‚¢ + // 既にデヌタがないのでこれがくるずゲヌムにならない if(MTINFO.DEBUG){ - form->WriteMessage(String::Format("–³Œø‚ȃpƒPƒbƒg(’x‰„—v‹) > {0} / {1}\n", f, NetVS->L_FRAME), DebugMessageColor); + form->WriteMessage(String::Format("無効なパケット(遅延芁求) > {0} / {1}\n", f, NetVS->L_FRAME), DebugMessageColor); } break; } if(MTINFO.DEBUG){ - form->WriteMessage(String::Format("—v‹ƒpƒPƒbƒg > {0} / {1}\n", f, NetVS->L_FRAME), DebugMessageColor); + form->WriteMessage(String::Format("芁求パケット > {0} / {1}\n", f, NetVS->L_FRAME), DebugMessageColor); } Array::Copy(BitConverter::GetBytes(NetVS->LOCAL[f % NetVS->LOCAL->Length]), 0, send, 5, 2); @@ -1508,7 +1508,7 @@ void MainForm::ReceivePackets(IAsyncResult^ asyncResult) NetVS->REMOTE[NetVS->R_READ] = w; if(MTINFO.DEBUG){ - form->WriteMessage(String::Format("•ÔMƒpƒPƒbƒg > {0} : {1}\n", f, w), DebugMessageColor); + form->WriteMessage(String::Format("返信パケット > {0} : {1}\n", f, w), DebugMessageColor); } if(NetVS->WAITING == 2){ @@ -1527,25 +1527,25 @@ void MainForm::ReceivePackets(IAsyncResult^ asyncResult) id = BitConverter::ToUInt16(rcv, 1); if(MTOPTION.ALLOW_SPECTATOR == false){ - // ŠÏí•s‹–‰Â + // 芳戊䞍蚱可 rcv[1] = 1; UDP->Send(rcv, 2, ep); break; } else if(SpectatorList->Count >= (int)MTOPTION.MAX_CONNECTION){ - // –žÈ + // 満垭 rcv[1] = 2; UDP->Send(rcv, 2, ep); break; } else if(InputFrame > (UINT)InputHistory->Length - 200){ - // ’x + // 遅刻 rcv[1] = 3; UDP->Send(rcv, 2, ep); break; } else if(WatchTarget != nullptr && id == TargetID){ - // ‘ŠŒÝŠÏí + // 盞互芳戊 rcv[1] = 4; UDP->Send(rcv, 2, ep); break; @@ -1557,7 +1557,7 @@ void MainForm::ReceivePackets(IAsyncResult^ asyncResult) si->FRAME = 0; if(SpectacleThread != nullptr && SpectacleThread->IsAlive && AllowWatch){ - // Šù‚É‚Í‚¶‚ß‚Ä‚é + // 既にはじめおる send = gcnew array(14); send[0] = PH_RES_WATCH; send[1] = 0; @@ -1571,7 +1571,7 @@ void MainForm::ReceivePackets(IAsyncResult^ asyncResult) UDP->Send(send, send->Length, ep); - // ‚È‚©‚È‚©ƒfƒ“ƒWƒƒƒ‰ƒX‚ÈSleep + // なかなかデンゞャラスなSleep Thread::Sleep(100); } @@ -1593,11 +1593,11 @@ void MainForm::ReceivePackets(IAsyncResult^ asyncResult) } if(i >= MemberList->Count){ - // ŠO—ˆ‹q - form->WriteMessage("ŠÏíŽÒ‚ª—ˆ‚Ü‚µ‚œB\n", SystemMessageColor); + // 倖来客 + form->WriteMessage("芳戊者が来たした。\n", SystemMessageColor); } else{ - form->WriteMessage(MemberList[i]->NAME + "‚ªŠÏí‚É—ˆ‚Ü‚µ‚œB\n", SystemMessageColor); + form->WriteMessage(MemberList[i]->NAME + "が芳戊に来たした。\n", SystemMessageColor); } } finally{ @@ -1611,19 +1611,19 @@ void MainForm::ReceivePackets(IAsyncResult^ asyncResult) if(rcv[1] > 0){ switch(rcv[1]){ case 1: - form->WriteMessage("ŠÏí‚ª‹–‰Â‚³‚ê‚Ä‚¢‚Ü‚¹‚ñ‚Å‚µ‚œB\n", SystemMessageColor); + form->WriteMessage("芳戊が蚱可されおいたせんでした。\n", SystemMessageColor); break; case 2: - form->WriteMessage("ŠÏíÈ‚Í–žÈ‚Å‚µ‚œB\n", SystemMessageColor); + form->WriteMessage("芳戊垭は満垭でした。\n", SystemMessageColor); break; case 3: - form->WriteMessage("ŠÏí‚ɊԂɍ‡‚¢‚Ü‚¹‚ñ‚Å‚µ‚œB\n", SystemMessageColor); + form->WriteMessage("芳戊に間に合いたせんでした。\n", SystemMessageColor); break; case 4: - form->WriteMessage("Šù‚É‘ŠŽè‚ª‚±‚¿‚ç‚ðŠÏí‘Ώۂɂµ‚Ä‚¢‚Ü‚µ‚œB\n", SystemMessageColor); + form->WriteMessage("既に盞手がこちらを芳戊察象にしおいたした。\n", SystemMessageColor); break; } @@ -1649,7 +1649,7 @@ void MainForm::ReceivePackets(IAsyncResult^ asyncResult) if(ListView != LV_BLIND){ Monitor::Enter(MemberList); try{ - // –Œ‘O + // 名前 for(i = 0; i < MemberList->Count; i++){ if(MemberList[i]->ID == P1ID){ mp = Runtime::InteropServices::Marshal::StringToHGlobalAuto(MemberList[i]->NAME); @@ -1682,7 +1682,7 @@ void MainForm::ReceivePackets(IAsyncResult^ asyncResult) GameThread = gcnew Thread(gcnew ParameterizedThreadStart(form, &MainForm::RunGame)); GameThread->Start((UINT)RT_WATCH); - form->WriteMessage("ŠÏí‚ðŠJŽn‚µ‚Ü‚·B\n", SystemMessageColor); + form->WriteMessage("芳戊を開始したす。\n", SystemMessageColor); } } break; @@ -1692,7 +1692,7 @@ void MainForm::ReceivePackets(IAsyncResult^ asyncResult) UINT32 f = BitConverter::ToUInt32(rcv, 1); if(f > WatchFrame + WatchHistory->Length - 20){ - form->WriteMessage("“¯Šú‚ªŽæ‚ê‚È‚­‚È‚Á‚œ‚œ‚ߊϐí‚𒆎~‚µ‚Ü‚·B\n", ErrorMessageColor); + form->WriteMessage("同期が取れなくなったため芳戊を䞭止したす。\n", ErrorMessageColor); form->QuitWatch(true); } @@ -1700,7 +1700,7 @@ void MainForm::ReceivePackets(IAsyncResult^ asyncResult) try{ if(WatchFrame > f + 20){ if(MTINFO.DEBUG){ - form->WriteMessage(String::Format("ŠÏíƒpƒPƒbƒg(’x‰„) > {0} / {1}\n", f, WatchFrame), DebugMessageColor); + form->WriteMessage(String::Format("芳戊パケット(遅延) > {0} / {1}\n", f, WatchFrame), DebugMessageColor); } break; } @@ -1728,16 +1728,16 @@ void MainForm::ReceivePackets(IAsyncResult^ asyncResult) id = BitConverter::ToUInt16(rcv, 1); if(id == MemberList[0]->ID){ - // •Â–‹‚Ì‚š’m‚点 - form->WriteMessage("ŠÏíI—¹‚Ì‚š’m‚点‚Å‚·B\n", SystemMessageColor); + // 閉幕のお知らせ + form->WriteMessage("芳戊終了のお知らせです。\n", SystemMessageColor); form->QuitWatch(false); } else{ - // ŠÏí’†Ž~‚Ì‚š’m‚点 + // 芳戊䞭止のお知らせ Monitor::Enter(InputHistory); try{ if(MTINFO.DEBUG){ - form->WriteMessage(String::Format("ŠÏí’†Ž~ > {0}\n", id), DebugMessageColor); + form->WriteMessage(String::Format("芳戊䞭止 > {0}\n", id), DebugMessageColor); } for(i = 0; i < SpectatorList->Count; i++){ @@ -1754,7 +1754,7 @@ void MainForm::ReceivePackets(IAsyncResult^ asyncResult) break; case PH_SECRET: - // ‰B‚µƒRƒ}ƒ“ƒh + // 隠しコマンド switch(rcv[1]){ case ST_PING: rcv[1] = ST_PONG; @@ -1778,13 +1778,13 @@ void MainForm::ReceivePackets(IAsyncResult^ asyncResult) form->richTextBoxLog->AppendText(MemberList[i]->NAME); form->richTextBoxLog->SelectionColor = SecretColor; - form->richTextBoxLog->AppendText("‚É "); + form->richTextBoxLog->AppendText("に "); form->richTextBoxLog->SelectionColor = TalkMessageColor; form->richTextBoxLog->AppendText(UInt32(time).ToString()); form->richTextBoxLog->SelectionColor = SecretColor; - form->richTextBoxLog->AppendText("‚Ì ƒ_ƒ[ƒWII\n"); + form->richTextBoxLog->AppendText("の ダメヌゞ\n"); form->richTextBoxLog->SelectionStart = form->richTextBoxLog->Text->Length; if(!MTOPTION.LOG_LOCK) { @@ -1820,23 +1820,23 @@ void MainForm::ReceivePackets(IAsyncResult^ asyncResult) } } catch(ObjectDisposedException^){ - // UDPÚ‘±I—¹ + // UDP接続終了 if(UDP != nullptr){ UDP = nullptr; - form->WriteMessage("‰ñü‚ðØ’f‚µ‚Ü‚µ‚œB\n", SystemMessageColor); + form->WriteMessage("回線を切断したした。\n", SystemMessageColor); } } catch(SocketException^ e){ UDP->BeginReceive(gcnew AsyncCallback(ReceivePackets), form); if(e->ErrorCode == WSAECONNRESET){ - // ƒpƒPƒbƒg‚ª’e‚©‚ê‚œ + // パケットが匟かれた if(MTINFO.DEBUG){ form->WriteMessage("ERROR > WSAECONNRESET\n", DebugMessageColor); } } else{ - form->WriteMessage(String::Format("ƒ\ƒPƒbƒgƒGƒ‰[({0})\n", e->ErrorCode), ErrorMessageColor); + form->WriteMessage(String::Format("゜ケット゚ラヌ({0})\n", e->ErrorCode), ErrorMessageColor); if(MTINFO.DEBUG){ form->WriteMessage(e->ToString() + "\n", DebugMessageColor); } @@ -1846,12 +1846,12 @@ void MainForm::ReceivePackets(IAsyncResult^ asyncResult) form->WriteMessage(e->ToString() + "\n", ErrorMessageColor); } } -// IPŽæ“Ÿƒ^ƒCƒ€ƒAƒEƒg—pƒ^ƒCƒ}[ +// IP取埗タむムアりト甚タむマヌ void MainForm::TimerGetIP() { GetIPSleeping = true; try{ - // 15•b‚®‚ç‚¢‚Ń^ƒCƒ€ƒAƒEƒg + // 15秒ぐらいでタむムアりト Thread::Sleep(1000*15); } catch(ThreadInterruptedException^){ @@ -1868,7 +1868,7 @@ void MainForm::TimerGetIP() } } -// HPŽ‚¿‰z‚µƒ^ƒCƒ}[ +// HP持ち越しタむマヌ void MainForm::SetTeamHP(){ if(MTINFO.DEBUG){ WriteMessage("EVENT:SET_TEAM_HP\n", DebugMessageColor); @@ -1896,7 +1896,7 @@ void MainForm::RunSonar() SonarSleeping = false; - // 20s‚Ɉê“xƒpƒPƒbƒg‚ð‘—‚èA100sˆÈã‰ž“š‚ª‚È‚©‚Á‚œ‚çØ’f‚·‚é + // 20sに䞀床パケットを送り、100s以䞊応答がなかったら切断する while(Ranging){ SonarSleeping = true; try{ @@ -1906,7 +1906,7 @@ void MainForm::RunSonar() } SonarSleeping = false; - // ƒƒO‚ÌŽ©“®•Û‘¶ + // ログの自動保存 if(MTOPTION.AUTO_SAVE){ if(((timeGetTime() - MemberList[0]->RESPONSE) / 60000) >= MTOPTION.AUTO_SAVE){ String^ path = gcnew String(MTOPTION.PATH); @@ -1939,7 +1939,7 @@ void MainForm::RunSonar() if((timeGetTime() - MemberList[i]->RESPONSE) > 100*1000){ WriteTime(0, SystemMessageColor); - WriteMessage(MemberList[i]->NAME + "‚Ƃ̒ʐM‚ª“râ‚Š‚Ü‚µ‚œB\n", ErrorMessageColor); + WriteMessage(MemberList[i]->NAME + "ずの通信が途絶えたした。\n", ErrorMessageColor); send[0] = PH_LOST; @@ -1954,7 +1954,7 @@ void MainForm::RunSonar() i--; } else{ - // Šm”FƒpƒP + // 確認パケ UDP->BeginSend(send, send->Length, MemberList[i]->IP_EP, gcnew AsyncCallback(SendPackets), UDP); } } @@ -1963,7 +1963,7 @@ void MainForm::RunSonar() } else{ if((timeGetTime() - MemberList[1]->RESPONSE) > 100*1000){ - WriteMessage("ƒT[ƒo‚Ƃ̒ʐM‚ª“râ‚Š‚Ü‚µ‚œB\n", ErrorMessageColor); + WriteMessage("サヌバずの通信が途絶えたした。\n", ErrorMessageColor); leave = true; Ranging = false; } @@ -1973,7 +1973,7 @@ void MainForm::RunSonar() } } catch(Exception^){ - WriteMessage("ƒ\ƒi[ƒXƒŒƒbƒh‚ŃGƒ‰[‚ª”­¶‚µ‚Ü‚µ‚œB\n", ErrorMessageColor); + WriteMessage("゜ナヌスレッドで゚ラヌが発生したした。\n", ErrorMessageColor); } finally{ Monitor::Exit(MemberList); @@ -1992,7 +1992,7 @@ void MainForm::RunGame(Object^ obj) bool allow_spectator = MTOPTION.ALLOW_SPECTATOR; UINT sim_delay = MTOPTION.SIMULATE_DELAY; - // ‘—MŠÔŠu‚ðŒvŽZ + // 送信間隔を蚈算 if(run_type == RT_VS){ NetVS->INTERVAL = 0; NetVS->INTERVAL2 = 0; @@ -2038,7 +2038,7 @@ void MainForm::RunGame(Object^ obj) NetVS->INTERVAL = (NetVS->DELAY + 1) / 2; if(NetVS->INTERVAL == 1){ - // Delay:2 ‚Ì‚Ý + // Delay:2 のみ NetVS->INTERVAL2 = 3; } } @@ -2062,17 +2062,17 @@ void MainForm::RunGame(Object^ obj) ZeroMemory(MTINFO.ORIGINAL_TITLE, sizeof(MTINFO.ORIGINAL_TITLE)); ZeroMemory(MTINFO.TITLE, sizeof(MTINFO.TITLE)); - // ƒŠƒvƒŒƒCƒtƒ@ƒCƒ‹ + // リプレむファむル BinaryWriter^ bw = nullptr; BinaryReader^ br = nullptr; REPLAY_INFO ri; - // deque‚ª‚ ‚é‚œ‚ߏ‰Šú‰»‚ÍŽè“®‚Å + // dequeがあるため初期化は手動で ri.CONTROL = 0; ri.KEY[0] = ri.KEY[1] = 0xFFFF; ri.COUNT[0] = ri.COUNT[1] = 0; - // ƒfƒBƒŒƒCƒVƒ~ƒ…ƒŒ[ƒg + // ディレむシミュレヌト std::deque sim_que; std::deque sim_que_p2; @@ -2091,23 +2091,23 @@ void MainForm::RunGame(Object^ obj) if(run_type == RT_PLAYBACK){ br = gcnew BinaryReader(File::OpenRead(ReplayFilePath)); - // ƒwƒbƒ_ + // ヘッダ br->ReadChars(header->Length); ri.VERSION = br->ReadChar(); - // P1ƒl[ƒ€ + // P1ネヌム len = br->ReadByte(); for(i = 0; i < len; i++){ MTINFO.P1_NAME[i] = br->ReadChar(); } - // P2ƒl[ƒ€ + // P2ネヌム len = br->ReadByte(); for(i = 0; i < len; i++){ MTINFO.P2_NAME[i] = br->ReadChar(); } - // —”ƒV[ƒh + // 乱数シヌド MTINFO.SEED = br->ReadUInt32(); MTINFO.TEAM_ROUND_HP = MTOPTION.TEAM_ROUND_HP; @@ -2127,7 +2127,7 @@ void MainForm::RunGame(Object^ obj) else if(record_replay){ path = gcnew String(MTOPTION.REPLAY_FOLDER); - // ƒQ[ƒ€•Ê‚ɃŠƒvƒŒƒC‚ðU‚蕪‚¯ + // ゲヌム別にリプレむを振り分け if(MTOPTION.REPLAY_DIVIDE){ path += "\\" + Path::GetFileNameWithoutExtension(gcnew String(MTOPTION.GAME_EXE)); } @@ -2151,9 +2151,9 @@ void MainForm::RunGame(Object^ obj) path += "\\" + file; bw = gcnew BinaryWriter(File::Create(path)); - WriteMessage(String::Format("\"{0}\"‚ɃŠƒvƒŒƒCƒtƒ@ƒCƒ‹‚ðì¬‚µ‚Ü‚·B\n", file), SystemMessageColor); + WriteMessage(String::Format("\"{0}\"にリプレむファむルを䜜成したす。\n", file), SystemMessageColor); - // ƒwƒbƒ_ + // ヘッダ bw->Write(header); switch(MTOPTION.REPLAY_VERSION){ @@ -2169,24 +2169,24 @@ void MainForm::RunGame(Object^ obj) bw->Write(ri.VERSION); - // P1ƒl[ƒ€ + // P1ネヌム len = (BYTE)_tcslen(MTINFO.P1_NAME); bw->Write(len); for(i = 0; i < len; i++){ bw->Write(MTINFO.P1_NAME[i]); } - // P2ƒl[ƒ€ + // P2ネヌム len = (BYTE)_tcslen(MTINFO.P2_NAME); bw->Write(len); for(i = 0; i < len; i++){ bw->Write(MTINFO.P2_NAME[i]); } - // —”ƒV[ƒh + // 乱数シヌド bw->Write(MTINFO.SEED); - // ŠeŽíÝ’è + // 各皮蚭定 bw->Write((BYTE)MTINFO.MAX_STAGE); bw->Write((BYTE)MTINFO.STAGE_SELECT); bw->Write((BYTE)MTINFO.ROUND); @@ -2194,7 +2194,7 @@ void MainForm::RunGame(Object^ obj) } } catch(IOException^ e){ - WriteMessage(String::Format("ERROR > ƒŠƒvƒŒƒCƒtƒ@ƒCƒ‹\n{0}\n", e->ToString()), ErrorMessageColor); + WriteMessage(String::Format("ERROR > リプレむファむル\n{0}\n", e->ToString()), ErrorMessageColor); if(bw != nullptr){ bw->Close(); @@ -2202,19 +2202,19 @@ void MainForm::RunGame(Object^ obj) } } - // –Œ‘O•\ŽŠ—p + // 名前衚瀺甚 int is_p1 = _tcslen(MTINFO.P1_NAME); int is_p2 = _tcslen(MTINFO.P2_NAME); - // ƒ‰ƒ“ƒ_ƒ€ƒXƒe[ƒW—p + // ランダムステヌゞ甚 RandomStage(MTINFO.SEED); - // ƒXƒe[ƒWƒ‹[ƒv—p + // ステヌゞルヌプ甚 if(MTINFO.STAGE_SELECT > MTINFO.MAX_STAGE){ stage_loop = MTINFO.MAX_STAGE; } - // ŠÏíƒpƒP‘—M€”õ + // 芳戊パケ送信準備 if(allow_spectator){ AllowWatch = false; InputFrame = 0; @@ -2223,7 +2223,7 @@ void MainForm::RunGame(Object^ obj) SpectacleThread->Start(); } - // ‘ΐ풆’Ê’m + // 察戊䞭通知 if(run_type != RT_WATCH){ if(MemberList[0]->STATE == MS_SEEK && run_type == RT_FREE){ //WriteMessage("aiueo\n", ErrorMessageColor); @@ -2236,35 +2236,35 @@ void MainForm::RunGame(Object^ obj) ZeroMemory(&si, sizeof(STARTUPINFO)); si.cb = sizeof(STARTUPINFO); - // ì‹ÆƒfƒBƒŒƒNƒgƒŠ + // 䜜業ディレクトリ _tsplitpath_s(MTOPTION.GAME_EXE, drive, _MAX_DRIVE, buf, _MAX_DIR, NULL, 0, NULL, 0); _stprintf_s(wdir, _T("%s%s"), drive, buf); if(CreateProcess(MTOPTION.GAME_EXE, NULL, NULL, NULL, false, DEBUG_PROCESS, NULL, wdir, &si, &pi)){ if(run_type == RT_PLAYBACK){ - WriteMessage(String::Format("\"{0}\"‚ðÄ¶‚µ‚Ü‚·B\n", Path::GetFileName(ReplayFilePath)), SystemMessageColor); + WriteMessage(String::Format("\"{0}\"を再生したす。\n", Path::GetFileName(ReplayFilePath)), SystemMessageColor); } else{ - WriteMessage(String::Format("\"{0}\"‚ð‹N“®‚µ‚Ü‚·B\n", Path::GetFileNameWithoutExtension(gcnew String(MTOPTION.GAME_EXE))), SystemMessageColor); + WriteMessage(String::Format("\"{0}\"を起動したす。\n", Path::GetFileNameWithoutExtension(gcnew String(MTOPTION.GAME_EXE))), SystemMessageColor); } } else{ - WriteMessage(String::Format("ERROR({0}) > \"{1}\"‚ªŠJ‚¯‚Ü‚¹‚ñ‚Å‚µ‚œB\n", GetLastError(), gcnew String(MTOPTION.GAME_EXE)), ErrorMessageColor); + WriteMessage(String::Format("ERROR({0}) > \"{1}\"が開けたせんでした。\n", GetLastError(), gcnew String(MTOPTION.GAME_EXE)), ErrorMessageColor); return; } if(MTOPTION.SHOW_GAME_OPTION){ - WriteMessage(String::Format("[‘ΐíÝ’è]----------------------\n" - "Å‘åƒXƒe[ƒW”: {0} / " - "ƒ‰ƒ“ƒ_ƒ€ƒXƒe[ƒW: {1} / " - "ƒ‰ƒEƒ“ƒh”: {2} / " - "ƒQ[ƒ€ƒ^ƒCƒ}[: {3}\n" - "ƒ‰ƒEƒ“ƒhHPŽ‚¿‰z‚µ: {4}\n" + WriteMessage(String::Format("[察戊蚭定]----------------------\n" + "最倧ステヌゞ数: {0} / " + "ランダムステヌゞ: {1} / " + "ラりンド数: {2} / " + "ゲヌムタむマヌ: {3}\n" + "ラりンドHP持ち越し: {4}\n" "-------------------------------\n" , MTINFO.MAX_STAGE, MTINFO.STAGE_SELECT, MTINFO.ROUND, MTINFO.TIMER, MTINFO.TEAM_ROUND_HP == true ? "ON" : "OFF"), SystemMessageColor); } - // ‹N“®‘Ò‚¿ + // 起動埅ち Thread::Sleep(300); MTINFO.PROCESS = pi.hProcess; @@ -2339,10 +2339,10 @@ void MainForm::RunGame(Object^ obj) if(vs_end == false){ - // HPŽ‚¿‰z‚µ Edx:1P_ROUND Esi:2P_ROUND Eax:ROUND + // HP持ち越し Edx:1P_ROUND Esi:2P_ROUND Eax:ROUND if(MTINFO.TEAM_ROUND_HP){ if(c.Edx > (UINT)p1_round && c.Esi > (UINT)p2_round){ - // ‘Š‘Å‚¿ + // 盞打ち }else{ if(c.Edx > (UINT)p1_round){ p1_round = c.Edx; @@ -2361,7 +2361,7 @@ void MainForm::RunGame(Object^ obj) } } - // ‘ΐíI—¹Žž‚Í‚Q‰ñ”ò‚ñ‚Å‚­‚é + // 察戊終了時は回飛んでくる if(c.Eax == c.Edx){ p1_win++; vs_end = true; @@ -2388,7 +2388,7 @@ void MainForm::RunGame(Object^ obj) SetThreadContext(thread, &c); if(vs_end == false){ - // ‘ΐíI—¹Žž‚Í‚R‰ñ”ò‚ñ‚Å‚­‚é + // 察戊終了時は回飛んでくる ReadProcessMemory(pi.hProcess, (LPVOID)P1_WIN_95, &mem, 4, NULL); if(mem == 2){ p1_win++; @@ -2494,7 +2494,7 @@ void MainForm::RunGame(Object^ obj) } } else if(run_type == RT_WATCH && WaitingWatch > 0){ - // ŠÏíƒoƒbƒtƒ@‚©‚ç“ǂݍž‚Ý + // 芳戊バッファから読み蟌み c.Eax = WatchHistory[WatchFrame % WatchHistory->Length]; if(c.Eax == 0xFFFF){ @@ -2510,7 +2510,7 @@ void MainForm::RunGame(Object^ obj) c.Eax = WatchHistory[WatchFrame % WatchHistory->Length]; if(c.Eax == 0xFFFF && WaitingWatch == 2){ - WriteMessage("ƒ^ƒCƒ€ƒAƒEƒg‚µ‚œ‚œ‚ߊϐí‚ðI—¹‚µ‚Ü‚·B\n", ErrorMessageColor); + WriteMessage("タむムアりトしたため芳戊を終了したす。\n", ErrorMessageColor); QuitWatch(true); } } @@ -2528,7 +2528,7 @@ void MainForm::RunGame(Object^ obj) c.Eax = ReadReplayData(br, ri); } else if(run_type == RT_FREE && sim_delay > 0){ - // ƒfƒBƒŒƒCƒVƒ~ƒ…ƒŒ[ƒg + // ディレむシミュレヌト if(e_address != VS_P2_KEY){ sim_que.push_back((UINT16)c.Eax); c.Eax = sim_que.front(); @@ -2544,7 +2544,7 @@ void MainForm::RunGame(Object^ obj) RecordInput((UINT16)c.Eax, bw, ri, allow_spectator); } - // ƒƒ‚ƒŠ‚ɏ‘‚«ž‚Ý + // メモリに曞き蟌み if(e_address == VS_P2_KEY){ WriteProcessMemory(pi.hProcess, (LPVOID)P2_INPUT, &c.Eax, 4, NULL); } @@ -2580,7 +2580,7 @@ void MainForm::RunGame(Object^ obj) c.Edx = mem; } - // ƒL[“ü—Í‚ ‚ꂱ‚ê 95Ver + // キヌ入力あれこれ 95Ver if(run_type == RT_VS){ if((e_address == STORY_P1_KEY_95 && MTINFO.CONTROL == 0) || (e_address == STORY_P2_KEY_95 && MTINFO.CONTROL == 1) || (e_address == VS_P1_KEY_95 && MTINFO.CONTROL == 0) || (e_address == VS_P2_KEY_95 && MTINFO.CONTROL == 1)){ @@ -2591,7 +2591,7 @@ void MainForm::RunGame(Object^ obj) } } else if(run_type == RT_WATCH && WaitingWatch > 0){ - // ŠÏíƒoƒbƒtƒ@‚©‚ç“ǂݍž‚Ý + // 芳戊バッファから読み蟌み c.Eax = WatchHistory[WatchFrame % WatchHistory->Length]; if(c.Eax == 0xFFFF){ @@ -2607,7 +2607,7 @@ void MainForm::RunGame(Object^ obj) c.Eax = WatchHistory[WatchFrame % WatchHistory->Length]; if(c.Eax == 0xFFFF && WaitingWatch == 2){ - WriteMessage("ƒ^ƒCƒ€ƒAƒEƒg‚µ‚œ‚œ‚ߊϐí‚ðI—¹‚µ‚Ü‚·B\n", ErrorMessageColor); + WriteMessage("タむムアりトしたため芳戊を終了したす。\n", ErrorMessageColor); QuitWatch(true); } } @@ -2625,7 +2625,7 @@ void MainForm::RunGame(Object^ obj) c.Eax = ReadReplayData(br, ri); } else if(run_type == RT_FREE && sim_delay > 0){ - // 2P“ü—͂̃Vƒ~ƒ…ƒŒ[ƒg‚Í‚µ‚È‚¢ + // 2P入力のシミュレヌトはしない if(e_address != STORY_P2_KEY_95 && e_address != VS_P2_KEY_95){ sim_que.push_back((UINT16)c.Eax); @@ -2667,7 +2667,7 @@ void MainForm::RunGame(Object^ obj) if(MTOPTION.DISPLAY_NAME){ if(is_p1 == 0 && is_p2 == 0){ - append_cap = _stprintf_s(MTINFO.TITLE, _T("%s [–쎎‡’†]"), MTINFO.TITLE); + append_cap = _stprintf_s(MTINFO.TITLE, _T("%s [野詊合䞭]"), MTINFO.TITLE); } else if(is_p2 == 0){ append_cap = _stprintf_s(MTINFO.TITLE, _T("%s [%s]"), MTINFO.TITLE, MTINFO.P1_NAME); @@ -2678,16 +2678,16 @@ void MainForm::RunGame(Object^ obj) } if(MTOPTION.DISPLAY_VERSUS){ if(MTOPTION.SHOW_RESULT){ - append_cap = _stprintf_s(MTINFO.TITLE, _T("%s ‘ΐ퐔:%d (%d - %d)"), MTINFO.TITLE, num_vs, p1_win, p2_win); + append_cap = _stprintf_s(MTINFO.TITLE, _T("%s 察戊数:%d (%d - %d)"), MTINFO.TITLE, num_vs, p1_win, p2_win); }else{ - append_cap = _stprintf_s(MTINFO.TITLE, _T("%s ‘ΐ퐔:%d"), MTINFO.TITLE, num_vs); + append_cap = _stprintf_s(MTINFO.TITLE, _T("%s 察戊数:%d"), MTINFO.TITLE, num_vs); } } if(MTOPTION.DISPLAY_FRAMERATE){ - append_cap = _stprintf_s(MTINFO.TITLE, _T("%s fps:%3d(%d“)"), MTINFO.TITLE, blt_count, input_count); + append_cap = _stprintf_s(MTINFO.TITLE, _T("%s fps:%3d(%d)"), MTINFO.TITLE, blt_count, input_count); } if(MTOPTION.DISPLAY_RAND){ - append_cap = _stprintf_s(MTINFO.TITLE, _T("%s —”:%d"), MTINFO.TITLE, rand_count); + append_cap = _stprintf_s(MTINFO.TITLE, _T("%s 乱数:%d"), MTINFO.TITLE, rand_count); } blt_count = 0; @@ -2720,7 +2720,7 @@ void MainForm::RunGame(Object^ obj) break; } - // ƒfƒoƒbƒO:ƒCƒxƒ“ƒg•\ŽŠ + // デバッグ:むベント衚瀺 if(MTINFO.DEBUG){ /* if (e_address != VS_P1_KEY && e_address != RAND_FUNC && e_address != VS_P2_KEY @@ -2732,7 +2732,7 @@ void MainForm::RunGame(Object^ obj) WriteMessage(String::Format("EVENT:{0}\n", gcnew String(pszText)), DebugMessageColor); } */ - // ‰ðÍ—p + // 解析甚 if (e_address != VS_P1_KEY && e_address != RAND_FUNC && e_address != VS_P2_KEY && e_address != FRAME_RATE && e_address != SE_VOLUME && e_address != VS_ROUND) { int nValue = e_address; @@ -2760,9 +2760,9 @@ void MainForm::RunGame(Object^ obj) thread = de.u.CreateProcessInfo.hThread; thread_id = de.dwThreadId; - // ‚±‚±‚©‚珑‚«Š·‚Šƒ][ƒ“ + // ここから曞き換えゟヌン if(MTINFO.KGT2K){ - // 2nd.—p + // 2nd.甹 mem = MTOPTION.HIT_JUDGE; WriteProcessMemory(pi.hProcess, (LPVOID)HIT_JUDGE, &mem, 4, NULL); WriteProcessMemory(pi.hProcess, (LPVOID)HIT_JUDGE_SET, HIT_JUDGE_SET_CODE, sizeof(HIT_JUDGE_SET_CODE), NULL); @@ -2774,7 +2774,7 @@ void MainForm::RunGame(Object^ obj) WriteProcessMemory(pi.hProcess, (LPVOID)DEFAULT_ROUND, &MTINFO.ROUND, 4, NULL); WriteProcessMemory(pi.hProcess, (LPVOID)DEFAULT_TIMER, &MTINFO.TIMER, 4, NULL); - // ƒ`[ƒ€ƒvƒŒƒCƒ‰ƒEƒ“ƒh” + // チヌムプレむラりンド数 WriteProcessMemory(pi.hProcess, (LPVOID)TEAM_ROUND_SET, TEAM_ROUND_SET_CODE, sizeof(TEAM_ROUND_SET_CODE), NULL); if(MTINFO.ROUND > 4) { WriteProcessMemory(pi.hProcess, (LPVOID)TEAM_ROUND, &MAX_TEAM_ROUND, 4, NULL); @@ -2783,28 +2783,28 @@ void MainForm::RunGame(Object^ obj) } - // ƒ^ƒCƒgƒ‹ƒo[•\ŽŠ—p + // タむトルバヌ衚瀺甚 WriteProcessMemory(pi.hProcess, (LPVOID)VS_ROUND, VS_ROUND_CODE, sizeof(VS_ROUND_CODE), NULL); WriteProcessMemory(pi.hProcess, (LPVOID)ROUND_END, ROUND_END_CODE, sizeof(ROUND_END_CODE), NULL); WriteProcessMemory(pi.hProcess, (LPVOID)FRAME_RATE, FRAME_RATE_CODE, sizeof(FRAME_RATE_CODE), NULL); WriteProcessMemory(pi.hProcess, (LPVOID)RAND_FUNC, RAND_FUNC_CODE, sizeof(RAND_FUNC_CODE), NULL); - // ‰¹—Ê + // 音量 WriteProcessMemory(pi.hProcess, (LPVOID)VOLUME_SET_1, VOLUME_SET_1_CODE, sizeof(VOLUME_SET_1_CODE), NULL); WriteProcessMemory(pi.hProcess, (LPVOID)VOLUME_SET_2, VOLUME_SET_2_CODE, sizeof(VOLUME_SET_2_CODE), NULL); - // ”M‘Ñ’†‚͏í‚É1P“ü—Í + // 熱垯䞭は垞に1P入力 if(run_type == RT_VS){ WriteProcessMemory(pi.hProcess, (LPVOID)SINGLE_CONTROL_HOOK, SINGLE_CONTROL_HOOK_CODE, sizeof(SINGLE_CONTROL_HOOK_CODE), NULL); WriteProcessMemory(pi.hProcess, (LPVOID)VS_CONTROL_HOOK, VS_CONTROL_HOOK_CODE, sizeof(VS_CONTROL_HOOK_CODE), NULL); } - // ƒL[î•ñ‚ðŽæ“Ÿ + // キヌ情報を取埗 WriteProcessMemory(pi.hProcess, (LPVOID)STORY_KEY, STORY_KEY_CODE, sizeof(STORY_KEY_CODE), NULL); WriteProcessMemory(pi.hProcess, (LPVOID)VS_P1_KEY, VS_P1_KEY_CODE, sizeof(VS_P1_KEY_CODE), NULL); WriteProcessMemory(pi.hProcess, (LPVOID)VS_P2_KEY, VS_P2_KEY_CODE, sizeof(VS_P2_KEY_CODE), NULL); - // ƒEƒBƒ“ƒhƒEƒTƒCƒY‚ð640x480‚É + // りィンドりサむズを640x480に if(MTOPTION.CHANGE_WINDOW_SIZE){ TCHAR val[32]; @@ -2819,7 +2819,7 @@ void MainForm::RunGame(Object^ obj) } } else{ - // 95—p + // 95甹 mem = MTOPTION.HIT_JUDGE; WriteProcessMemory(pi.hProcess, (LPVOID)HIT_JUDGE_95, &mem, 4, NULL); WriteProcessMemory(pi.hProcess, (LPVOID)HIT_JUDGE_SET_95, HIT_JUDGE_SET_95_CODE, sizeof(HIT_JUDGE_SET_95_CODE), NULL); @@ -2828,26 +2828,26 @@ void MainForm::RunGame(Object^ obj) WriteProcessMemory(pi.hProcess, (LPVOID)TIMER_SET_95, TIMER_SET_95_CODE, sizeof(TIMER_SET_95_CODE), NULL); WriteProcessMemory(pi.hProcess, (LPVOID)DEFAULT_TIMER_95, &MTINFO.TIMER, 4, NULL); - // ƒ^ƒCƒgƒ‹ƒo[•\ŽŠ—p + // タむトルバヌ衚瀺甚 WriteProcessMemory(pi.hProcess, (LPVOID)VS_ROUND_95, VS_ROUND_95_CODE, sizeof(VS_ROUND_95_CODE), NULL); WriteProcessMemory(pi.hProcess, (LPVOID)ROUND_END_95, ROUND_END_95_CODE, sizeof(ROUND_END_95_CODE), NULL); WriteProcessMemory(pi.hProcess, (LPVOID)FRAME_RATE_95, FRAME_RATE_95_CODE, sizeof(FRAME_RATE_95_CODE), NULL); WriteProcessMemory(pi.hProcess, (LPVOID)RAND_FUNC_95, RAND_FUNC_95_CODE, sizeof(RAND_FUNC_95_CODE), NULL); - // ‰¹—Ê + // 音量 WriteProcessMemory(pi.hProcess, (LPVOID)VOLUME_SET_1_95, VOLUME_SET_1_95_CODE, sizeof(VOLUME_SET_1_95_CODE), NULL); WriteProcessMemory(pi.hProcess, (LPVOID)VOLUME_SET_2_95, VOLUME_SET_2_95_CODE, sizeof(VOLUME_SET_2_95_CODE), NULL); - // JoyStick‚̓Gƒ‰[‹N‚±‚·‚̂ŃIƒt‚É‚·‚é + // JoyStickぱラヌ起こすのでオフにする WriteProcessMemory(pi.hProcess, (LPVOID)UNCHECK_JOYSTICK_95, UNCHECK_JOYSTICK_95_CODE, sizeof(UNCHECK_JOYSTICK_95_CODE), NULL); - // ”M‘Ñ’†‚͏í‚É1P“ü—Í + // 熱垯䞭は垞に1P入力 if(run_type == RT_VS){ WriteProcessMemory(pi.hProcess, (LPVOID)CONTROL_HOOK1_95, CONTROL_HOOK1_95_CODE, sizeof(CONTROL_HOOK1_95_CODE), NULL); WriteProcessMemory(pi.hProcess, (LPVOID)CONTROL_HOOK2_95, CONTROL_HOOK2_95_CODE, sizeof(CONTROL_HOOK2_95_CODE), NULL); } - // ƒL[î•ñ‚ðŽæ“Ÿ + // キヌ情報を取埗 WriteProcessMemory(pi.hProcess, (LPVOID)STORY_P1_KEY_95, STORY_P1_KEY_95_CODE, sizeof(STORY_P1_KEY_95_CODE), NULL); WriteProcessMemory(pi.hProcess, (LPVOID)STORY_P2_KEY_95, STORY_P2_KEY_95_CODE, sizeof(STORY_P2_KEY_95_CODE), NULL); WriteProcessMemory(pi.hProcess, (LPVOID)VS_P1_KEY_95, VS_P1_KEY_95_CODE, sizeof(VS_P1_KEY_95_CODE), NULL); @@ -2941,10 +2941,10 @@ void MainForm::RunGame(Object^ obj) if(MTINFO.INITIALIZED){ if(WaitingWatch > 0){ WaitingWatch = 0; - WriteMessage("ŠÏí‚𒆎~‚µ‚Ü‚·B\n", SystemMessageColor); + WriteMessage("芳戊を䞭止したす。\n", SystemMessageColor); } else if(_tcslen(MTINFO.ORIGINAL_TITLE) > 0){ - WriteMessage(String::Format("\"{0}\"‚ðI—¹‚µ‚Ü‚µ‚œB\n", gcnew String(MTINFO.ORIGINAL_TITLE)), SystemMessageColor); + WriteMessage(String::Format("\"{0}\"を終了したした。\n", gcnew String(MTINFO.ORIGINAL_TITLE)), SystemMessageColor); if(run_type == RT_VS){ if(MTINFO.CONTROL == 1){ @@ -2953,11 +2953,11 @@ void MainForm::RunGame(Object^ obj) p2_win = i; } WriteTime(0, SystemMessageColor); - WriteMessage(String::Format("‘ΐ퐬Ñ F {0}í {1}Ÿ {2}”s\n", num_vs, p1_win, p2_win), SecretColor); + WriteMessage(String::Format("察戊成瞟  {0}戊 {1}勝 {2}敗\n", num_vs, p1_win, p2_win), SecretColor); } } else{ - WriteMessage("ƒQ[ƒ€‚ðI—¹‚µ‚Ü‚µ‚œB\n", SystemMessageColor); + WriteMessage("ゲヌムを終了したした。\n", SystemMessageColor); } } @@ -2965,7 +2965,7 @@ void MainForm::RunGame(Object^ obj) NetVS->SEQUENCE = VS_END; UDP->Send(gcnew array{ PH_VS_END }, 1, NetVS->IP_EP); - // ƒƒbƒNŠJ•ú‘Ò‚¿ + // ロック開攟埅ち Monitor::Enter(NetVS->LOCAL); Monitor::Exit(NetVS->LOCAL); Monitor::Enter(NetVS->REMOTE); @@ -2988,7 +2988,7 @@ void MainForm::RunGame(Object^ obj) QuitWatch(true); } else{ - // ‘ΐíI—¹‚ð’Ê’m + // 察戊終了を通知 if(MTOPTION.AFTER_REST && run_type == RT_VS){ ChangeState((BYTE)MS_REST); } @@ -3016,7 +3016,7 @@ void MainForm::RunVersus() array^ send = gcnew array(7); try{ - // ‘ΐí—v‹ + // 察戊芁求 send[0] = PH_REQ_VS; Array::Copy(BitConverter::GetBytes(MemberList[0]->ID), 0, send, 1, 2); Array::Copy(BitConverter::GetBytes((INT32)(Path::GetFileNameWithoutExtension(gcnew String(MTOPTION.GAME_EXE))->GetHashCode())), 0, send, 3, 4); @@ -3032,12 +3032,12 @@ void MainForm::RunVersus() if(NetVS->SEQUENCE != VS_PING){ if(NetVS->SEQUENCE != VS_ERROR){ - WriteMessage("’§í‘ŠŽè‚©‚ç‚̉ž“š‚ª‚ ‚è‚Ü‚¹‚ñ‚Å‚µ‚œB\n", ErrorMessageColor); + WriteMessage("挑戊盞手からの応答がありたせんでした。\n", ErrorMessageColor); } return; } - // PING‚őш撲ž + // PINGで垯域調査 send[0] = PH_REQ_VS_PING; for(BYTE i = 0; i < 5; i++){ @@ -3051,7 +3051,7 @@ void MainForm::RunVersus() if(NetVS->SEQUENCE == VS_PING){ NetVS->SLEEPING = true; try{ - // Å’á‚Å‚à‚P•bŠÔ‚ɃpƒP‚S‚‚͗~‚µ‚¢‚Æ‚±‚ë + // 最䜎でも秒間にパケ぀は欲しいずころ Thread::Sleep(1000); } catch(ThreadInterruptedException^){ @@ -3060,15 +3060,15 @@ void MainForm::RunVersus() } if(NetVS->SEQUENCE != VS_SETTING){ - WriteMessage("’§í‘ŠŽè‚Ƃ̉ñü‚ª•sˆÀ’è‚Å‚·B\n", ErrorMessageColor); + WriteMessage("挑戊盞手ずの回線が䞍安定です。\n", ErrorMessageColor); return; } - // DELAY‚̐ݒè + // DELAYの蚭定 send[0] = PH_REQ_VS_SETTING; if(MTOPTION.DELAY == 0){ - // ƒI[ƒgÝ’è + // オヌト蚭定 int d = 0, c = 0; for(int i = 0; i < 5; i++){ @@ -3081,7 +3081,7 @@ void MainForm::RunVersus() } if(c < 4){ - WriteMessage("ƒfƒBƒŒƒC’l‚ÌŒvŽZ‚ª³í‚ɍs‚í‚ê‚Ü‚¹‚ñ‚Å‚µ‚œB\n", ErrorMessageColor); + WriteMessage("ディレむ倀の蚈算が正垞に行われたせんでした。\n", ErrorMessageColor); return; } @@ -3107,14 +3107,14 @@ void MainForm::RunVersus() NetVS->SLEEPING = false; if(NetVS->SEQUENCE != VS_STANDBY){ - WriteMessage("‘ΐ폀”õ‚ªŠ®—¹‚µ‚Ü‚¹‚ñ‚Å‚µ‚œB\n", ErrorMessageColor); + WriteMessage("察戊準備が完了したせんでした。\n", ErrorMessageColor); return; } NetVS->SEQUENCE = VS_DATA; - // ‘ΐíŠJŽn - WriteMessage(String::Format("‘ΐí‚ðŠJŽn‚µ‚Ü‚·B(delay:{0})\n", NetVS->DELAY), SystemMessageColor); + // 察戊開始 + WriteMessage(String::Format("察戊を開始したす。(delay:{0})\n", NetVS->DELAY), SystemMessageColor); GameThread = gcnew Thread(gcnew ParameterizedThreadStart(this, &MainForm::RunGame)); GameThread->Start((UINT)RT_VS); @@ -3134,7 +3134,7 @@ void MainForm::RunSpectacle() int i, d; UINT32 frame = 0, s_frame; - // ŠJŽn‡} + // 開始合図 array^ send = gcnew array(14); send[0] = PH_RES_WATCH; send[1] = 0; @@ -3158,13 +3158,13 @@ void MainForm::RunSpectacle() Thread::Sleep(100); - // ƒf[ƒ^‘—M€”õ + // デヌタ送信準備 send = gcnew array(45){ PH_WATCH_DATA }; - // €”õŠ®—¹ + // 準備完了 AllowWatch = true; - // ƒf[ƒ^‘—M + // デヌタ送信 while(AllowWatch){ Monitor::Enter(InputHistory); try{ @@ -3173,9 +3173,9 @@ void MainForm::RunSpectacle() for(i = 0; i < SpectatorList->Count; i++){ s_frame = SpectatorList[i]->FRAME; /* - // ƒf[ƒ^‚ÍŠù‚Ƀoƒbƒtƒ@‚©‚ç‚È‚­‚È‚Á‚Ä‚é + // デヌタは既にバッファからなくなっおる if(frame > s_frame && (frame - s_frame) >= (UINT)InputHistory->Length - 20){ - if(MTINFO.DEBUG) WriteMessage(String::Format("ŠÏíŽÒ‚Ì’Ç‚¢o‚µ > {0} / {1}\n", SpectatorList[i]->ID, SpectatorList->Count), DebugMessageColor); + if(MTINFO.DEBUG) WriteMessage(String::Format("芳戊者の远い出し > {0} / {1}\n", SpectatorList[i]->ID, SpectatorList->Count), DebugMessageColor); send[0] = PH_WATCH_END; Array::Copy(BitConverter::GetBytes(SpectatorList[i]->ID), 0, send, 1, 2); @@ -3188,7 +3188,7 @@ void MainForm::RunSpectacle() continue; } */ - // 5ƒtƒŒ[ƒ€‚²‚Æ‚É10ƒtƒŒ[ƒ€•ª‘—‚é + // 5フレヌムごずに10フレヌム分送る if(s_frame + 20 < frame){ Array::Copy(BitConverter::GetBytes(s_frame), 0, send, 1, 4); @@ -3198,7 +3198,7 @@ void MainForm::RunSpectacle() UDP->BeginSend(send, send->Length, SpectatorList[i]->IP_EP, gcnew AsyncCallback(SendPackets), UDP); - // 0frame‚ÌŽž‚Í”O‚Ì‚œ‚ß‚QŒÂ‘—M + // 0frameの時は念のため個送信 if(s_frame == 0){ UDP->BeginSend(send, send->Length, SpectatorList[i]->IP_EP, gcnew AsyncCallback(SendPackets), UDP); } @@ -3211,11 +3211,11 @@ void MainForm::RunSpectacle() Monitor::Exit(InputHistory); } - // ‚¿‚å‚Á‚Æ‚Ÿ‚¯‹xŒe + // ちょっずだけ䌑憩 Thread::Sleep(20); } - // I—¹‡} + // 終了合図 send[0] = PH_WATCH_END; Monitor::Enter(InputHistory); @@ -3234,7 +3234,7 @@ void MainForm::RunSpectacle() UINT16 MainForm::LocalInput(UINT16 eax) { - // ¶‰E“¯Žž‰Ÿ‚µ‹ÖŽ~ if((eax & 3) == 3) eax ^= 2 + // 巊右同時抌し犁止 if((eax & 3) == 3) eax ^= 2 if((eax & 0x0003) == 0x0003){ eax &= 0xFFFD; } @@ -3248,13 +3248,13 @@ UINT16 MainForm::LocalInput(UINT16 eax) if(NetVS->INTERVAL > 0){ if(NetVS->INTERVAL == 1){ - // ŠÔŠu‚P(’èŠú‹xŒeƒ‚[ƒh) + // 間隔(定期䌑憩モヌド) if((NetVS->L_FRAME % NetVS->INTERVAL2) == (NetVS->INTERVAL2 - 1)){ send = false; } } else{ - // ŠÔŠu‚QˆÈã + // 間隔以䞊 if((NetVS->L_FRAME % NetVS->INTERVAL) != 0){ send = false; } @@ -3262,7 +3262,7 @@ UINT16 MainForm::LocalInput(UINT16 eax) } if(send){ - // ‘—MŠJŽn + // 送信開始 Array::Copy(BitConverter::GetBytes(NetVS->L_FRAME), 0, NetVS->SEND, 1, 4); UINT i; @@ -3292,11 +3292,11 @@ UINT16 MainForm::RemoteInput() eax = NetVS->REMOTE[NetVS->R_READ]; - // ƒpƒP—ˆ‚Ä‚È‚¢ + // パケ来おない if(eax == 0xFFFF){ Monitor::Enter(NetVS->REMOTE); try{ - // ¡—ˆ‚Ä‚é‚©‚à + // 今来おるかも NetVS->WAITING = 2; Monitor::Wait(NetVS->REMOTE, NetVS->DELAY*10); eax = NetVS->REMOTE[NetVS->R_READ]; @@ -3306,7 +3306,7 @@ UINT16 MainForm::RemoteInput() } } - // ƒƒX‚Á‚œH + // ロスった if(eax == 0xFFFF){ NetVS->WAITING = 1; @@ -3342,14 +3342,14 @@ UINT16 MainForm::RemoteInput() } else{ i = 0; - // ‚±‚±‚ª‚©‚Ì—L–Œ‚ȃ‰ƒO‚̐¶ŽY’n‚Å‚· - // Delay*10 / 2 ƒfƒBƒŒƒC‚Ì”ŒƒtƒŒ[ƒ€•ª‚Í‘Ò‹@‚µ‚Ä‚à‚悳‚»‚€H + // ここがかの有名なラグの生産地です + // Delay*10 / 2 ディレむの半フレヌム分は埅機しおもよさそう Thread::Sleep(NetVS->DELAY*5); } } if(eax == 0xFFFF && NetVS->SEQUENCE == VS_TIMEOUT){ - WriteMessage("ƒ^ƒCƒ€ƒAƒEƒg‚µ‚œ‚œ‚ߑΐí‚ðI—¹‚µ‚Ü‚·B\n", ErrorMessageColor); + WriteMessage("タむムアりトしたため察戊を終了したす。\n", ErrorMessageColor); if(MTINFO.DEBUG){ WriteMessage(String::Format("Frame > L:{0} / R:{1} (delay:{2})\n", NetVS->L_FRAME, NetVS->R_FRAME, NetVS->DELAY), DebugMessageColor); } @@ -3364,7 +3364,7 @@ UINT16 MainForm::RemoteInput() if(NetVS->SEQUENCE != VS_DATA) return 0; if((eax & 0x0003) == 0x0003){ - WriteMessage("•s³ƒpƒPƒbƒg‚ÌŽóM > ¶‰E“¯Žž‰Ÿ‚µ\n", ErrorMessageColor); + WriteMessage("䞍正パケットの受信 > 巊右同時抌し\n", ErrorMessageColor); if(MTINFO.DEBUG){ WriteMessage(String::Format("IP = {0}\n", NetVS->IP_EP->Address), DebugMessageColor); } @@ -3401,13 +3401,13 @@ UINT16 MainForm::ReadReplayData(BinaryReader^ br, REPLAY_INFO& ri) eax = br->ReadUInt16(); } else{ - // ƒŠƒvƒŒƒCƒtƒ@ƒCƒ‹‚ÌRLEƒfƒR[ƒh + // リプレむファむルのRLEデコヌド if(ri.COUNT[ri.CONTROL] == 0){ REPLAY_DATA rd; bool ctrl; if(ri.DEQUE[ri.CONTROL].size() > 0){ - // ƒLƒ…[‚Ƀf[ƒ^‚ ‚è + // キュヌにデヌタあり rd = ri.DEQUE[ri.CONTROL].front(); ri.DEQUE[ri.CONTROL].pop_front(); } @@ -3417,10 +3417,10 @@ UINT16 MainForm::ReadReplayData(BinaryReader^ br, REPLAY_INFO& ri) ctrl = (rd.KEY & 0x0800) > 0 ? true : false; while(ctrl != ri.CONTROL){ - // ƒLƒ…[‚É‘Þ”ð + // キュヌに退避 ri.DEQUE[ctrl].push_back(rd); - // Ä“ǂݍž‚Ý + // 再読み蟌み rd.KEY = br->ReadUInt16(); rd.COUNT = br->ReadByte(); ctrl = (rd.KEY & 0x0800) > 0 ? true : false; @@ -3440,7 +3440,7 @@ UINT16 MainForm::ReadReplayData(BinaryReader^ br, REPLAY_INFO& ri) } } catch(EndOfStreamException^){ - WriteMessage("ƒŠƒvƒŒƒCƒtƒ@ƒCƒ‹‚̍ж‚ªI—¹‚µ‚Ü‚µ‚œB\n", SystemMessageColor); + WriteMessage("リプレむファむルの再生が終了したした。\n", SystemMessageColor); br->Close(); br = nullptr; @@ -3459,7 +3459,7 @@ UINT16 MainForm::ReadReplayData(BinaryReader^ br, REPLAY_INFO& ri) void MainForm::RecordInput(UINT16 eax, BinaryWriter^ bw, REPLAY_INFO& ri, bool watch) { - // ƒŠƒvƒŒƒCƒtƒ@ƒCƒ‹‚Ì‹L˜^ + // リプレむファむルの蚘録 if(bw != nullptr){ if(ri.VERSION == _T('3')){ bw->Write(eax); @@ -3467,12 +3467,12 @@ void MainForm::RecordInput(UINT16 eax, BinaryWriter^ bw, REPLAY_INFO& ri, bool w else{ // RLE if(ri.KEY[ri.CONTROL] == 0xFFFF){ - // ‰‰ñ + // 初回 ri.KEY[ri.CONTROL] = eax; } else{ if(eax == ri.KEY[ri.CONTROL]){ - // ˆêŽü‚µ‚Ä‚«‚œ + // 䞀呚しおきた if(ri.COUNT[ri.CONTROL] == 0xFF){ bw->Write((UINT16)(ri.KEY[ri.CONTROL] | ri.CONTROL << 11)); bw->Write(ri.COUNT[ri.CONTROL]); @@ -3496,7 +3496,7 @@ void MainForm::RecordInput(UINT16 eax, BinaryWriter^ bw, REPLAY_INFO& ri, bool w } } - // ŠÏíOK + // 芳戊OK if(watch && UDP != nullptr){ Monitor::Enter(InputHistory); try{ @@ -3509,14 +3509,14 @@ void MainForm::RecordInput(UINT16 eax, BinaryWriter^ bw, REPLAY_INFO& ri, bool w } } void MainForm::RunAutoRest() { - // Ž©“®‹xŒe + // 自動䌑憩 LASTINPUTINFO li; li.cbSize = sizeof(LASTINPUTINFO); DWORD te; - int to = MTOPTION.AUTO_REST_TIME; // ƒ^ƒCƒ€ƒAƒEƒgŽw’莞ŠÔ + int to = MTOPTION.AUTO_REST_TIME; // タむムアりト指定時間 AutoRestRanging = true; if(MTINFO.DEBUG){ - WriteMessage(String::Format("Ž©“®‹xŒeƒXƒŒƒbƒhŠJŽn {0}•ª\n", to), DebugMessageColor); + WriteMessage(String::Format("自動䌑憩スレッド開始 {0}分\n", to), DebugMessageColor); } while(AutoRestRanging){ AutoRestSleeping = true; @@ -3532,12 +3532,12 @@ void MainForm::RunAutoRest() { GetLastInputInfo(&li); te = GetTickCount(); to = MTOPTION.AUTO_REST_TIME; - //WriteMessage(String::Format("{0}•bŒo‰ß\n", ((te-li.dwTime)/1000) ), DebugMessageColor); + //WriteMessage(String::Format("{0}秒経過\n", ((te-li.dwTime)/1000) ), DebugMessageColor); if(((te-li.dwTime)/1000) >= UINT(to*60)){ - // ƒtƒŠ[ó‘Ô‚È‚ç‹xŒeó‘Ô‚É‚·‚é + // フリヌ状態なら䌑憩状態にする if(UDP != nullptr && MemberList[0]->STATE == MS_FREE){ ChangeState((BYTE)MS_REST); - WriteMessage("‹xŒeó‘Ô‚ð•ÏX‚µ‚Ü‚µ‚œB > ƒIƒ“\n", SystemMessageColor); + WriteMessage("䌑憩状態を倉曎したした。 > オン\n", SystemMessageColor); } AutoRestRanging = false; AutoRestThread = nullptr; @@ -3549,9 +3549,9 @@ void MainForm::ChangeSeek() { if(MemberList[0]->STATE == MS_FREE){ ChangeState((BYTE)MS_SEEK); - WriteMessage("‘ΐí•åWó‘Ô‚ð•ÏX‚µ‚Ü‚µ‚œB > ƒIƒ“\n", SystemMessageColor); + WriteMessage("察戊募集状態を倉曎したした。 > オン\n", SystemMessageColor); WriteTime(0, SystemMessageColor); - WriteMessage(String::Format("{0}‚ª‘ΐí•åWó‘Ô‚É‚È‚è‚Ü‚µ‚œB\n", MemberList[0]->NAME), SystemMessageColor); + WriteMessage(String::Format("{0}が察戊募集状態になりたした。\n", MemberList[0]->NAME), SystemMessageColor); } else if(MemberList[0]->STATE == MS_SEEK){ if(GameThread != nullptr && GameThread->IsAlive){ @@ -3560,9 +3560,9 @@ void MainForm::ChangeSeek() { ChangeState((BYTE)MS_FREE); } - WriteMessage("‘ΐí•åWó‘Ô‚ð•ÏX‚µ‚Ü‚µ‚œB > ƒIƒt\n", SystemMessageColor); + WriteMessage("察戊募集状態を倉曎したした。 > オフ\n", SystemMessageColor); WriteTime(0, SystemMessageColor); - WriteMessage(String::Format("{0}‚ª‘ΐí•åW‚ð’÷‚ߐ؂è‚Ü‚µ‚œB\n", MemberList[0]->NAME), SystemMessageColor); + WriteMessage(String::Format("{0}が察戊募集を締め切りたした。\n", MemberList[0]->NAME), SystemMessageColor); } } void MainForm::ChangeLogWordWrap() { @@ -3570,24 +3570,24 @@ void MainForm::ChangeLogWordWrap() { richTextBoxLog->WordWrap = MTOPTION.LOG_WORDWRAP; toolStripMenuItemWordWrap->Checked = MTOPTION.LOG_WORDWRAP; if(MTOPTION.LOG_WORDWRAP){ - WriteMessage("ƒeƒLƒXƒgÜ‚è•Ô‚µ > ƒIƒ“\n", SystemMessageColor); + WriteMessage("テキスト折り返し > オン\n", SystemMessageColor); }else{ - WriteMessage("ƒeƒLƒXƒgÜ‚è•Ô‚µ > ƒIƒt\n", SystemMessageColor); + WriteMessage("テキスト折り返し > オフ\n", SystemMessageColor); } } void MainForm::ClearLog(){ - if(MessageBox::Show("ƒƒO‚ð10sŽc‚µ‚č폜‚µ‚Ü‚·B\n‚æ‚낵‚¢‚Å‚·‚©H", "ƒƒO‚̍폜", MessageBoxButtons::YesNo, MessageBoxIcon::Question) == ::DialogResult::Yes){ + if(MessageBox::Show("ログを10行残しお削陀したす。\nよろしいですか", "ログの削陀", MessageBoxButtons::YesNo, MessageBoxIcon::Question) == ::DialogResult::Yes){ }else{ return; } Monitor::Enter(richTextBoxLog); try{ - int len = richTextBoxLog->Lines->Length; // ‘S‘̍s” + int len = richTextBoxLog->Lines->Length; // 党䜓行数 if(len > 10){ int index = richTextBoxLog->GetFirstCharIndexFromLine(len-11); richTextBoxLog->SelectionStart=0; richTextBoxLog->Select(0, index); - richTextBoxLog->SelectedText="[íœ‚³‚ê‚Ü‚µ‚œ]\n"; + richTextBoxLog->SelectedText="[削陀されたした]\n"; } } catch(Exception ^e){ diff --git a/LilithPort/MainForm.h b/LilithPort/MainForm.h index c97472e..ddea22f 100644 --- a/LilithPort/MainForm.h +++ b/LilithPort/MainForm.h @@ -1,4 +1,4 @@ -#pragma once +#pragma once #include "stdafx.h" #include "StartupForm.h" @@ -18,13 +18,13 @@ namespace LilithPort { using namespace System::Diagnostics; /// - /// MainForm ‚ÌŠT—v + /// MainForm の抂芁 /// - /// Œx: ‚±‚̃Nƒ‰ƒX‚Ì–Œ‘O‚ð•ÏX‚·‚éê‡A‚±‚̃Nƒ‰ƒX‚ªˆË‘¶‚·‚é‚·‚×‚Ä‚Ì .resx ƒtƒ@ƒCƒ‹‚ÉŠÖ˜A•t‚¯‚ç‚ê‚œ - /// ƒ}ƒl[ƒW ƒŠƒ\[ƒX ƒRƒ“ƒpƒCƒ‰ ƒc[ƒ‹‚ɑ΂µ‚Ä 'Resource File Name' ƒvƒƒpƒeƒB‚ð - /// •ÏX‚·‚é•K—v‚ª‚ ‚è‚Ü‚·B‚±‚̕ύX‚ðs‚í‚È‚¢‚ƁA - /// ƒfƒUƒCƒi‚ƁA‚±‚̃tƒH[ƒ€‚ÉŠÖ˜A•t‚¯‚ç‚ê‚œƒ[ƒJƒ‰ƒCƒYÏ‚݃Šƒ\[ƒX‚Æ‚ªA - /// ³‚µ‚­‘ŠŒÝ‚É—˜—p‚Å‚«‚È‚­‚È‚è‚Ü‚·B + /// è­Šå‘Š: このクラスの名前を倉曎する堎合、このクラスが䟝存するすべおの .resx ファむルに関連付けられた + /// マネヌゞ リ゜ヌス コンパむラ ツヌルに察しお 'Resource File Name' プロパティを + /// 倉曎する必芁がありたす。この倉曎を行わないず、 + /// デザむナず、このフォヌムに関連付けられたロヌカラむズ枈みリ゜ヌスずが、 + /// 正しく盞互に利甚できなくなりたす。 /// public ref class MainForm : public System::Windows::Forms::Form { @@ -33,10 +33,10 @@ namespace LilithPort { { InitializeComponent(); // - //TODO: ‚±‚±‚ɃRƒ“ƒXƒgƒ‰ƒNƒ^ ƒR[ƒh‚ð’ljÁ‚µ‚Ü‚· + //TODO: ここにコンストラクタ コヌドを远加したす // - // ƒuƒbƒNƒ}[ƒN‚ðƒƒjƒ…[‚É“o˜^ + // ブックマヌクをメニュヌに登録 String^ tmpName; if(MTOPTION.BOOKMARK_COUNT > 0) { for(UINT i=0;i < MTOPTION.BOOKMARK_COUNT;i++) { @@ -51,13 +51,13 @@ namespace LilithPort { toolStripMenuItemDelBookMark = (gcnew System::Windows::Forms::ToolStripMenuItem()); toolStripMenuItemBookMark->DropDownItems->Add(toolStripMenuItemDelBookMark); - toolStripMenuItemDelBookMark->Text = L"íœ(&D)"; + toolStripMenuItemDelBookMark->Text = L"削陀(&D)"; toolStripMenuItemDelBookMark->Tag = L"toolStripMenuItemBookMark" + i; toolStripMenuItemDelBookMark->Click += gcnew System::EventHandler(this, &MainForm::toolStripMenuItemDelBookMark_Click); } } - // ƒvƒƒtƒ@ƒCƒ‹‚ðƒRƒ“ƒ{ƒ{ƒbƒNƒX‚É“o˜^ + // プロファむルをコンボボックスに登録 for(int i=0; i < Profile::ProfileList->Count; i++){ if(Profile::ProfileList[i] == gcnew String(MTOPTION.PROFILE)){ toolStripDropDownButtonProfile->Text = Profile::ProfileList[i]; @@ -69,7 +69,7 @@ namespace LilithPort { protected: /// - /// Žg—p’†‚̃Šƒ\[ƒX‚ð‚·‚×‚ÄƒNƒŠ[ƒ“ƒAƒbƒv‚µ‚Ü‚·B + /// 䜿甚䞭のリ゜ヌスをすべおクリヌンアップしたす。 /// ~MainForm() { @@ -182,14 +182,14 @@ private: System::Windows::Forms::ToolStripMenuItem^ toolStripMenuItemWordWrap; private: /// - /// •K—v‚ȃfƒUƒCƒi•Ï”‚Å‚·B + /// 必芁なデザむナ倉数です。 /// System::ComponentModel::IContainer^ components; #pragma region Windows Form Designer generated code /// - /// ƒfƒUƒCƒi ƒTƒ|[ƒg‚É•K—v‚ȃƒ\ƒbƒh‚Å‚·B‚±‚̃ƒ\ƒbƒh‚Ì“à—e‚ð - /// ƒR[ƒh ƒGƒfƒBƒ^‚ŕύX‚µ‚È‚¢‚Å‚­‚Ÿ‚³‚¢B + /// デザむナ サポヌトに必芁なメ゜ッドです。このメ゜ッドの内容を + /// コヌド ゚ディタで倉曎しないでください。 /// void InitializeComponent(void) { @@ -292,7 +292,7 @@ private: System::Windows::Forms::ToolStripMenuItem^ toolStripMenuItemWordWrap; ReloadListToolStripMenuItem->Name = L"ReloadListToolStripMenuItem"; ReloadListToolStripMenuItem->ShortcutKeys = System::Windows::Forms::Keys::F5; ReloadListToolStripMenuItem->Size = System::Drawing::Size(310, 22); - ReloadListToolStripMenuItem->Text = L"ƒƒ“ƒo[ƒŠƒXƒg‚̍XV(&R)"; + ReloadListToolStripMenuItem->Text = L"メンバヌリストの曎新(&R)"; ReloadListToolStripMenuItem->Click += gcnew System::EventHandler(this, &MainForm::ReloadListToolStripMenuItem_Click); // // menuStrip1 @@ -311,13 +311,13 @@ private: System::Windows::Forms::ToolStripMenuItem^ toolStripMenuItemWordWrap; this->toolStripMenuItemSaveLog, this->toolStripSeparator1, this->toolStripMenuItemExit}); this->toolStripMenuItemFile->Name = L"toolStripMenuItemFile"; this->toolStripMenuItemFile->Size = System::Drawing::Size(85, 22); - this->toolStripMenuItemFile->Text = L"ƒtƒ@ƒCƒ‹(&F)"; + this->toolStripMenuItemFile->Text = L"ファむル(&F)"; // // toolStripMenuItemReplay // this->toolStripMenuItemReplay->Name = L"toolStripMenuItemReplay"; this->toolStripMenuItemReplay->Size = System::Drawing::Size(226, 22); - this->toolStripMenuItemReplay->Text = L"ƒŠƒvƒŒƒCƒtƒ@ƒCƒ‹‚̍ж(&R)"; + this->toolStripMenuItemReplay->Text = L"リプレむファむルの再生(&R)"; this->toolStripMenuItemReplay->Click += gcnew System::EventHandler(this, &MainForm::toolStripMenuItemReplay_Click); // // toolStripMenuItemSaveLog @@ -325,7 +325,7 @@ private: System::Windows::Forms::ToolStripMenuItem^ toolStripMenuItemWordWrap; this->toolStripMenuItemSaveLog->Name = L"toolStripMenuItemSaveLog"; this->toolStripMenuItemSaveLog->ShortcutKeys = static_cast((System::Windows::Forms::Keys::Control | System::Windows::Forms::Keys::S)); this->toolStripMenuItemSaveLog->Size = System::Drawing::Size(226, 22); - this->toolStripMenuItemSaveLog->Text = L"ƒƒO‚Ì•Û‘¶(&S)"; + this->toolStripMenuItemSaveLog->Text = L"ログの保存(&S)"; this->toolStripMenuItemSaveLog->Click += gcnew System::EventHandler(this, &MainForm::toolStripMenuItemSaveLog_Click); // // toolStripSeparator1 @@ -337,7 +337,7 @@ private: System::Windows::Forms::ToolStripMenuItem^ toolStripMenuItemWordWrap; // this->toolStripMenuItemExit->Name = L"toolStripMenuItemExit"; this->toolStripMenuItemExit->Size = System::Drawing::Size(226, 22); - this->toolStripMenuItemExit->Text = L"I—¹(&X)"; + this->toolStripMenuItemExit->Text = L"終了(&X)"; this->toolStripMenuItemExit->Click += gcnew System::EventHandler(this, &MainForm::toolStripMenuItemExit_Click); // // toolStripMenuItemBookMarkMenu @@ -346,13 +346,13 @@ private: System::Windows::Forms::ToolStripMenuItem^ toolStripMenuItemWordWrap; this->toolStripSeparator8}); this->toolStripMenuItemBookMarkMenu->Name = L"toolStripMenuItemBookMarkMenu"; this->toolStripMenuItemBookMarkMenu->Size = System::Drawing::Size(110, 22); - this->toolStripMenuItemBookMarkMenu->Text = L"ƒuƒbƒNƒ}[ƒN(&B)"; + this->toolStripMenuItemBookMarkMenu->Text = L"ブックマヌク(&B)"; // // toolStripMenuItemAddBookMark // this->toolStripMenuItemAddBookMark->Name = L"toolStripMenuItemAddBookMark"; this->toolStripMenuItemAddBookMark->Size = System::Drawing::Size(166, 22); - this->toolStripMenuItemAddBookMark->Text = L"ƒT[ƒo‚̒ljÁ(&A)"; + this->toolStripMenuItemAddBookMark->Text = L"サヌバの远加(&A)"; this->toolStripMenuItemAddBookMark->Click += gcnew System::EventHandler(this, &MainForm::toolStripMenuItemAddBookMark_Click); // // toolStripSeparator8 @@ -368,21 +368,21 @@ private: System::Windows::Forms::ToolStripMenuItem^ toolStripMenuItemWordWrap; this->ToggleHitJudgeToolStripMenuItem, this->toolStripSeparator11, this->GetIPToolStripMenuItem}); this->CommandToolStripMenuItem->Name = L"CommandToolStripMenuItem"; this->CommandToolStripMenuItem->Size = System::Drawing::Size(86, 22); - this->CommandToolStripMenuItem->Text = L"ƒRƒ}ƒ“ƒh(&C)"; + this->CommandToolStripMenuItem->Text = L"コマンド(&C)"; // // GameStartToolStripMenuItem // this->GameStartToolStripMenuItem->BackColor = System::Drawing::SystemColors::Control; this->GameStartToolStripMenuItem->Name = L"GameStartToolStripMenuItem"; this->GameStartToolStripMenuItem->Size = System::Drawing::Size(310, 22); - this->GameStartToolStripMenuItem->Text = L"ƒQ[ƒ€‚Ì‹N“®(&G)"; + this->GameStartToolStripMenuItem->Text = L"ゲヌムの起動(&G)"; this->GameStartToolStripMenuItem->Click += gcnew System::EventHandler(this, &MainForm::GameStartToolStripMenuItem_Click); // // GameStartNoReplayToolStripMenuItem // this->GameStartNoReplayToolStripMenuItem->Name = L"GameStartNoReplayToolStripMenuItem"; this->GameStartNoReplayToolStripMenuItem->Size = System::Drawing::Size(310, 22); - this->GameStartNoReplayToolStripMenuItem->Text = L"ƒQ[ƒ€‚Ì‹N“®iƒŠƒvƒŒƒC‚ð•Û‘¶‚µ‚È‚¢j(&T)"; + this->GameStartNoReplayToolStripMenuItem->Text = L"ゲヌムの起動リプレむを保存しない(&T)"; this->GameStartNoReplayToolStripMenuItem->Click += gcnew System::EventHandler(this, &MainForm::GameStartNoReplayToolStripMenuItem_Click); // // toolStripSeparator9 @@ -394,28 +394,28 @@ private: System::Windows::Forms::ToolStripMenuItem^ toolStripMenuItemWordWrap; // this->RestartToolStripMenuItem->Name = L"RestartToolStripMenuItem"; this->RestartToolStripMenuItem->Size = System::Drawing::Size(310, 22); - this->RestartToolStripMenuItem->Text = L"Ä‹N“®(&R)"; + this->RestartToolStripMenuItem->Text = L"再起動(&R)"; this->RestartToolStripMenuItem->Click += gcnew System::EventHandler(this, &MainForm::RestartToolStripMenuItem_Click); // // LeaveToolStripMenuItem // this->LeaveToolStripMenuItem->Name = L"LeaveToolStripMenuItem"; this->LeaveToolStripMenuItem->Size = System::Drawing::Size(310, 22); - this->LeaveToolStripMenuItem->Text = L"‘ÞŽº(&L)"; + this->LeaveToolStripMenuItem->Text = L"退宀(&L)"; this->LeaveToolStripMenuItem->Click += gcnew System::EventHandler(this, &MainForm::LeaveToolStripMenuItem_Click); // // RestToolStripMenuItem // this->RestToolStripMenuItem->Name = L"RestToolStripMenuItem"; this->RestToolStripMenuItem->Size = System::Drawing::Size(310, 22); - this->RestToolStripMenuItem->Text = L"‹xŒeó‘Ԃ̐؂è‘Ö‚Š(&M)"; + this->RestToolStripMenuItem->Text = L"䌑憩状態の切り替え(&M)"; this->RestToolStripMenuItem->Click += gcnew System::EventHandler(this, &MainForm::RestToolStripMenuItem_Click); // // SeekToolStripMenuItem // this->SeekToolStripMenuItem->Name = L"SeekToolStripMenuItem"; this->SeekToolStripMenuItem->Size = System::Drawing::Size(310, 22); - this->SeekToolStripMenuItem->Text = L"‘ΐí•åWó‘Ԃ̐؂è‘Ö‚Š(&S)"; + this->SeekToolStripMenuItem->Text = L"察戊募集状態の切り替え(&S)"; this->SeekToolStripMenuItem->Click += gcnew System::EventHandler(this, &MainForm::SeekToolStripMenuItem_Click); // // toolStripSeparator10 @@ -427,7 +427,7 @@ private: System::Windows::Forms::ToolStripMenuItem^ toolStripMenuItemWordWrap; // this->ClearToolStripMenuItem->Name = L"ClearToolStripMenuItem"; this->ClearToolStripMenuItem->Size = System::Drawing::Size(310, 22); - this->ClearToolStripMenuItem->Text = L"ƒƒO‚̍폜(&C)"; + this->ClearToolStripMenuItem->Text = L"ログの削陀(&C)"; this->ClearToolStripMenuItem->Click += gcnew System::EventHandler(this, &MainForm::ClearToolStripMenuItem_Click); // // ToggleHitJudgeToolStripMenuItem @@ -435,7 +435,7 @@ private: System::Windows::Forms::ToolStripMenuItem^ toolStripMenuItemWordWrap; this->ToggleHitJudgeToolStripMenuItem->Name = L"ToggleHitJudgeToolStripMenuItem"; this->ToggleHitJudgeToolStripMenuItem->ShortcutKeys = System::Windows::Forms::Keys::F1; this->ToggleHitJudgeToolStripMenuItem->Size = System::Drawing::Size(310, 22); - this->ToggleHitJudgeToolStripMenuItem->Text = L"“–‚œ‚è”»’è‚Ì•\ŽŠØ‘Ö(&H)"; + this->ToggleHitJudgeToolStripMenuItem->Text = L"圓たり刀定の衚瀺切替(&H)"; this->ToggleHitJudgeToolStripMenuItem->Click += gcnew System::EventHandler(this, &MainForm::ToggleHitJudgeToolStripMenuItem_Click); // // toolStripSeparator11 @@ -447,7 +447,7 @@ private: System::Windows::Forms::ToolStripMenuItem^ toolStripMenuItemWordWrap; // this->GetIPToolStripMenuItem->Name = L"GetIPToolStripMenuItem"; this->GetIPToolStripMenuItem->Size = System::Drawing::Size(310, 22); - this->GetIPToolStripMenuItem->Text = L"IPƒAƒhƒŒƒX‚ÌŽæ“Ÿ(&I)"; + this->GetIPToolStripMenuItem->Text = L"IPアドレスの取埗(&I)"; this->GetIPToolStripMenuItem->Click += gcnew System::EventHandler(this, &MainForm::GetIPToolStripMenuItem_Click); // // toolStripMenuItemOption @@ -458,13 +458,13 @@ private: System::Windows::Forms::ToolStripMenuItem^ toolStripMenuItemWordWrap; this->toolStripMenuItemAutoRest}); this->toolStripMenuItemOption->Name = L"toolStripMenuItemOption"; this->toolStripMenuItemOption->Size = System::Drawing::Size(99, 22); - this->toolStripMenuItemOption->Text = L"ƒIƒvƒVƒ‡ƒ“(&O)"; + this->toolStripMenuItemOption->Text = L"オプション(&O)"; // // toolStripMenuItemSetting // this->toolStripMenuItemSetting->Name = L"toolStripMenuItemSetting"; this->toolStripMenuItemSetting->Size = System::Drawing::Size(247, 22); - this->toolStripMenuItemSetting->Text = L"Ý’è(&S)"; + this->toolStripMenuItemSetting->Text = L"蚭定(&S)"; this->toolStripMenuItemSetting->Click += gcnew System::EventHandler(this, &MainForm::toolStripMenuItemSetting_Click); // // toolStripSeparator2 @@ -480,7 +480,7 @@ private: System::Windows::Forms::ToolStripMenuItem^ toolStripMenuItemWordWrap; this->toolStripMenuItemDelay11, this->toolStripMenuItemDelay12}); this->toolStripMenuItemDelay->Name = L"toolStripMenuItemDelay"; this->toolStripMenuItemDelay->Size = System::Drawing::Size(247, 22); - this->toolStripMenuItemDelay->Text = L"ƒfƒBƒŒƒC(&D)"; + this->toolStripMenuItemDelay->Text = L"ディレむ(&D)"; // // toolStripMenuItemDelayAuto // @@ -584,7 +584,7 @@ private: System::Windows::Forms::ToolStripMenuItem^ toolStripMenuItemWordWrap; this->toolStripMenuItemRecordReplay->CheckState = System::Windows::Forms::CheckState::Checked; this->toolStripMenuItemRecordReplay->Name = L"toolStripMenuItemRecordReplay"; this->toolStripMenuItemRecordReplay->Size = System::Drawing::Size(247, 22); - this->toolStripMenuItemRecordReplay->Text = L"ƒŠƒvƒŒƒCƒtƒ@ƒCƒ‹‚Ì•Û‘¶(&R)"; + this->toolStripMenuItemRecordReplay->Text = L"リプレむファむルの保存(&R)"; this->toolStripMenuItemRecordReplay->Click += gcnew System::EventHandler(this, &MainForm::toolStripMenuItemRecordReplay_Click); // // toolStripMenuItemAllowSpectator @@ -593,14 +593,14 @@ private: System::Windows::Forms::ToolStripMenuItem^ toolStripMenuItemWordWrap; this->toolStripMenuItemAllowSpectator->CheckState = System::Windows::Forms::CheckState::Checked; this->toolStripMenuItemAllowSpectator->Name = L"toolStripMenuItemAllowSpectator"; this->toolStripMenuItemAllowSpectator->Size = System::Drawing::Size(247, 22); - this->toolStripMenuItemAllowSpectator->Text = L"ŠÏí‚Ì‹–‰Â(&A)"; + this->toolStripMenuItemAllowSpectator->Text = L"芳戊の蚱可(&A)"; this->toolStripMenuItemAllowSpectator->Click += gcnew System::EventHandler(this, &MainForm::toolStripMenuItemAllowSpectator_Click); // // toolStripMenuItemWordWrap // this->toolStripMenuItemWordWrap->Name = L"toolStripMenuItemWordWrap"; this->toolStripMenuItemWordWrap->Size = System::Drawing::Size(247, 22); - this->toolStripMenuItemWordWrap->Text = L"ƒƒO‚̃eƒLƒXƒg‚ðÜ‚è•Ô‚·(&W)"; + this->toolStripMenuItemWordWrap->Text = L"ログのテキストを折り返す(&W)"; this->toolStripMenuItemWordWrap->Click += gcnew System::EventHandler(this, &MainForm::toolStripMenuItemWordWrap_Click); // // LogLockToolStripMenuItem @@ -610,7 +610,7 @@ private: System::Windows::Forms::ToolStripMenuItem^ toolStripMenuItemWordWrap; this->LogLockToolStripMenuItem->Name = L"LogLockToolStripMenuItem"; this->LogLockToolStripMenuItem->ShortcutKeys = System::Windows::Forms::Keys::F3; this->LogLockToolStripMenuItem->Size = System::Drawing::Size(247, 22); - this->LogLockToolStripMenuItem->Text = L"ƒƒO‚̃XƒNƒ[ƒ‹‚ðŒÅ’è(&L)"; + this->LogLockToolStripMenuItem->Text = L"ログのスクロヌルを固定(&L)"; this->LogLockToolStripMenuItem->Click += gcnew System::EventHandler(this, &MainForm::LogLockToolStripMenuItem_Click); // // toolStripSeparator7 @@ -622,7 +622,7 @@ private: System::Windows::Forms::ToolStripMenuItem^ toolStripMenuItemWordWrap; // this->toolStripMenuItemAfterRest->Name = L"toolStripMenuItemAfterRest"; this->toolStripMenuItemAfterRest->Size = System::Drawing::Size(247, 22); - this->toolStripMenuItemAfterRest->Text = L"ƒlƒbƒg‘ΐíŒã‚Ɉꑧ“ü‚ê‚é(&N)"; + this->toolStripMenuItemAfterRest->Text = L"ネット察戊埌に䞀息入れる(&N)"; this->toolStripMenuItemAfterRest->Click += gcnew System::EventHandler(this, &MainForm::toolStripMenuItemAfterRest_Click); // // toolStripMenuItemAutoRest @@ -632,13 +632,13 @@ private: System::Windows::Forms::ToolStripMenuItem^ toolStripMenuItemWordWrap; this->toolStripMenuItemAutoRestTime20, this->toolStripMenuItemAutoRestTime30, this->toolStripMenuItemAutoRestTime60, this->toolStripMenuItemAutoRestTime120}); this->toolStripMenuItemAutoRest->Name = L"toolStripMenuItemAutoRest"; this->toolStripMenuItemAutoRest->Size = System::Drawing::Size(247, 22); - this->toolStripMenuItemAutoRest->Text = L"Ž©“®‚Å‹xŒeó‘Ô‚É‚·‚é(&I)"; + this->toolStripMenuItemAutoRest->Text = L"自動で䌑憩状態にする(&I)"; // // toolStripMenuItemAutoRestEnable // this->toolStripMenuItemAutoRestEnable->Name = L"toolStripMenuItemAutoRestEnable"; this->toolStripMenuItemAutoRestEnable->Size = System::Drawing::Size(109, 22); - this->toolStripMenuItemAutoRestEnable->Text = L"—LŒø"; + this->toolStripMenuItemAutoRestEnable->Text = L"有効"; this->toolStripMenuItemAutoRestEnable->Click += gcnew System::EventHandler(this, &MainForm::toolStripMenuItemAutoRestEnable_Click); // // toolStripSeparator13 @@ -650,49 +650,49 @@ private: System::Windows::Forms::ToolStripMenuItem^ toolStripMenuItemWordWrap; // this->toolStripMenuItemAutoRestTime5->Name = L"toolStripMenuItemAutoRestTime5"; this->toolStripMenuItemAutoRestTime5->Size = System::Drawing::Size(109, 22); - this->toolStripMenuItemAutoRestTime5->Text = L"5•ª"; + this->toolStripMenuItemAutoRestTime5->Text = L"5分"; this->toolStripMenuItemAutoRestTime5->Click += gcnew System::EventHandler(this, &MainForm::toolStripMenuItemAutoRestTime5_Click); // // toolStripMenuItemAutoRestTime10 // this->toolStripMenuItemAutoRestTime10->Name = L"toolStripMenuItemAutoRestTime10"; this->toolStripMenuItemAutoRestTime10->Size = System::Drawing::Size(109, 22); - this->toolStripMenuItemAutoRestTime10->Text = L"10•ª"; + this->toolStripMenuItemAutoRestTime10->Text = L"10分"; this->toolStripMenuItemAutoRestTime10->Click += gcnew System::EventHandler(this, &MainForm::toolStripMenuItemAutoRestTime10_Click); // // toolStripMenuItemAutoRestTime15 // this->toolStripMenuItemAutoRestTime15->Name = L"toolStripMenuItemAutoRestTime15"; this->toolStripMenuItemAutoRestTime15->Size = System::Drawing::Size(109, 22); - this->toolStripMenuItemAutoRestTime15->Text = L"15•ª"; + this->toolStripMenuItemAutoRestTime15->Text = L"15分"; this->toolStripMenuItemAutoRestTime15->Click += gcnew System::EventHandler(this, &MainForm::toolStripMenuItemAutoRestTime15_Click); // // toolStripMenuItemAutoRestTime20 // this->toolStripMenuItemAutoRestTime20->Name = L"toolStripMenuItemAutoRestTime20"; this->toolStripMenuItemAutoRestTime20->Size = System::Drawing::Size(109, 22); - this->toolStripMenuItemAutoRestTime20->Text = L"20•ª"; + this->toolStripMenuItemAutoRestTime20->Text = L"20分"; this->toolStripMenuItemAutoRestTime20->Click += gcnew System::EventHandler(this, &MainForm::toolStripMenuItemAutoRestTime20_Click); // // toolStripMenuItemAutoRestTime30 // this->toolStripMenuItemAutoRestTime30->Name = L"toolStripMenuItemAutoRestTime30"; this->toolStripMenuItemAutoRestTime30->Size = System::Drawing::Size(109, 22); - this->toolStripMenuItemAutoRestTime30->Text = L"30•ª"; + this->toolStripMenuItemAutoRestTime30->Text = L"30分"; this->toolStripMenuItemAutoRestTime30->Click += gcnew System::EventHandler(this, &MainForm::toolStripMenuItemAutoRestTime30_Click); // // toolStripMenuItemAutoRestTime60 // this->toolStripMenuItemAutoRestTime60->Name = L"toolStripMenuItemAutoRestTime60"; this->toolStripMenuItemAutoRestTime60->Size = System::Drawing::Size(109, 22); - this->toolStripMenuItemAutoRestTime60->Text = L"60•ª"; + this->toolStripMenuItemAutoRestTime60->Text = L"60分"; this->toolStripMenuItemAutoRestTime60->Click += gcnew System::EventHandler(this, &MainForm::toolStripMenuItemAutoRestTime60_Click); // // toolStripMenuItemAutoRestTime120 // this->toolStripMenuItemAutoRestTime120->Name = L"toolStripMenuItemAutoRestTime120"; this->toolStripMenuItemAutoRestTime120->Size = System::Drawing::Size(109, 22); - this->toolStripMenuItemAutoRestTime120->Text = L"120•ª"; + this->toolStripMenuItemAutoRestTime120->Text = L"120分"; this->toolStripMenuItemAutoRestTime120->Click += gcnew System::EventHandler(this, &MainForm::toolStripMenuItemAutoRestTime120_Click); // // toolStripMenuItemHelp @@ -702,13 +702,13 @@ private: System::Windows::Forms::ToolStripMenuItem^ toolStripMenuItemWordWrap; this->toolStripMenuItemHelp->Name = L"toolStripMenuItemHelp"; this->toolStripMenuItemHelp->ShortcutKeyDisplayString = L"Ctrl+L"; this->toolStripMenuItemHelp->Size = System::Drawing::Size(75, 22); - this->toolStripMenuItemHelp->Text = L"ƒwƒ‹ƒv(&H)"; + this->toolStripMenuItemHelp->Text = L"ヘルプ(&H)"; // // toolStripMenuItemViewCommand // this->toolStripMenuItemViewCommand->Name = L"toolStripMenuItemViewCommand"; this->toolStripMenuItemViewCommand->Size = System::Drawing::Size(211, 22); - this->toolStripMenuItemViewCommand->Text = L"ƒRƒ}ƒ“ƒh‚̈ꗗ(&C)"; + this->toolStripMenuItemViewCommand->Text = L"コマンドの䞀芧(&C)"; this->toolStripMenuItemViewCommand->Click += gcnew System::EventHandler(this, &MainForm::toolStripMenuItemViewCommand_Click); // // toolStripMenuItemChangeList @@ -716,7 +716,7 @@ private: System::Windows::Forms::ToolStripMenuItem^ toolStripMenuItemWordWrap; this->toolStripMenuItemChangeList->Name = L"toolStripMenuItemChangeList"; this->toolStripMenuItemChangeList->ShortcutKeys = System::Windows::Forms::Keys::F2; this->toolStripMenuItemChangeList->Size = System::Drawing::Size(211, 22); - this->toolStripMenuItemChangeList->Text = L"ƒŠƒXƒg‚̐؂è‘Ö‚Š(&L)"; + this->toolStripMenuItemChangeList->Text = L"リストの切り替え(&L)"; this->toolStripMenuItemChangeList->Click += gcnew System::EventHandler(this, &MainForm::toolStripMenuItemChangeList_Click); // // toolStripSeparator5 @@ -728,7 +728,7 @@ private: System::Windows::Forms::ToolStripMenuItem^ toolStripMenuItemWordWrap; // this->toolStripMenuItemVersion->Name = L"toolStripMenuItemVersion"; this->toolStripMenuItemVersion->Size = System::Drawing::Size(211, 22); - this->toolStripMenuItemVersion->Text = L"ƒo[ƒWƒ‡ƒ“î•ñ(&A)"; + this->toolStripMenuItemVersion->Text = L"バヌゞョン情報(&A)"; this->toolStripMenuItemVersion->Click += gcnew System::EventHandler(this, &MainForm::toolStripMenuItemVersion_Click); // // splitContainer1 @@ -782,21 +782,21 @@ private: System::Windows::Forms::ToolStripMenuItem^ toolStripMenuItemWordWrap; // this->toolStripMenuItemVS->Name = L"toolStripMenuItemVS"; this->toolStripMenuItemVS->Size = System::Drawing::Size(123, 22); - this->toolStripMenuItemVS->Text = L"‘ΐ킷‚é"; + this->toolStripMenuItemVS->Text = L"察戊する"; this->toolStripMenuItemVS->Click += gcnew System::EventHandler(this, &MainForm::toolStripMenuItemVS_Click); // // toolStripMenuItemWatch // this->toolStripMenuItemWatch->Name = L"toolStripMenuItemWatch"; this->toolStripMenuItemWatch->Size = System::Drawing::Size(123, 22); - this->toolStripMenuItemWatch->Text = L"ŠÏí‚·‚é"; + this->toolStripMenuItemWatch->Text = L"芳戊する"; this->toolStripMenuItemWatch->Click += gcnew System::EventHandler(this, &MainForm::toolStripMenuItemWatch_Click); // // toolStripMenuItemSeek // this->toolStripMenuItemSeek->Name = L"toolStripMenuItemSeek"; this->toolStripMenuItemSeek->Size = System::Drawing::Size(123, 22); - this->toolStripMenuItemSeek->Text = L"‘ΐí•åW‚·‚é"; + this->toolStripMenuItemSeek->Text = L"察戊募集する"; this->toolStripMenuItemSeek->Click += gcnew System::EventHandler(this, &MainForm::toolStripMenuItemSeek_Click); // // toolStripMenuItemPing @@ -847,7 +847,7 @@ private: System::Windows::Forms::ToolStripMenuItem^ toolStripMenuItemWordWrap; this->contextMenuItemCopy->Name = L"contextMenuItemCopy"; this->contextMenuItemCopy->ShortcutKeys = static_cast((System::Windows::Forms::Keys::Control | System::Windows::Forms::Keys::C)); this->contextMenuItemCopy->Size = System::Drawing::Size(176, 22); - this->contextMenuItemCopy->Text = L"ƒRƒs[(&C)"; + this->contextMenuItemCopy->Text = L"コピヌ(&C)"; this->contextMenuItemCopy->Click += gcnew System::EventHandler(this, &MainForm::contextMenuItemCopy_Click); // // toolStripSeparator6 @@ -860,7 +860,7 @@ private: System::Windows::Forms::ToolStripMenuItem^ toolStripMenuItemWordWrap; this->contxtMenuItemSaveLog->Name = L"contxtMenuItemSaveLog"; this->contxtMenuItemSaveLog->ShortcutKeys = static_cast((System::Windows::Forms::Keys::Control | System::Windows::Forms::Keys::S)); this->contxtMenuItemSaveLog->Size = System::Drawing::Size(176, 22); - this->contxtMenuItemSaveLog->Text = L"ƒƒO‚Ì•Û‘¶(&S)"; + this->contxtMenuItemSaveLog->Text = L"ログの保存(&S)"; this->contxtMenuItemSaveLog->Click += gcnew System::EventHandler(this, &MainForm::toolStripMenuItemSaveLog_Click); // // textBoxInput @@ -877,7 +877,7 @@ private: System::Windows::Forms::ToolStripMenuItem^ toolStripMenuItemWordWrap; // openFileDialog1 // this->openFileDialog1->Filter = L"MT Replay file (*.mtr)|*.mtr"; - this->openFileDialog1->Title = L"LilithPort—p‚̃ŠƒvƒŒƒCƒtƒ@ƒCƒ‹"; + this->openFileDialog1->Title = L"LilithPort甚のリプレむファむル"; // // statusStrip1 // @@ -951,16 +951,16 @@ private: System::Windows::Forms::ToolStripMenuItem^ toolStripMenuItemWordWrap; static LIST_VIEW ListView; static String^ ReplayFilePath; - // ƒuƒbƒNƒ}[ƒN + // ブックマヌク Object^ tmpIP; IntPtr BookMarkServerName; IntPtr BookMarkConnectIP; - // ƒ`ƒƒƒbƒg—š—ð + // チャット履歎 static int ChatHistoryNumber; static Generic::List^ ChatHistory; - // ŠeF + // 各色 static array^ NameColor; static array^ StateRectColor; static Color TalkMessageColor; @@ -973,7 +973,7 @@ private: System::Windows::Forms::ToolStripMenuItem^ toolStripMenuItemWordWrap; delegate void WriteMessageDelegate(String^ msg, Color color); - // MemberInfo‚³‚ñ‚Ístdafx.h‚É‚šˆø‰z‚µ‚µ‚Ü‚µ‚œ + // MemberInfoさんはstdafx.hにお匕越ししたした static Generic::List^ MemberList; static Generic::List^ MemberListBackUp; static UINT16 IDCounter; // Max 3FFF(16383) @@ -983,51 +983,51 @@ private: System::Windows::Forms::ToolStripMenuItem^ toolStripMenuItemWordWrap; static UdpClient^ UDP; static String^ ServerName; static String^ ConnectIP; - static bool AfterCloseUDP; // ‘ΐ풆‚ÌŽI—Ž‚¿‚ÉŠª‚«ž‚Ü‚ê‚È‚¢‚æ‚€‚É + static bool AfterCloseUDP; // 察戊䞭の鯖萜ちに巻き蟌たれないように - // IPŽæ“Ÿ—p + // IP取埗甚 static WebClient^ GetIPClient; static Uri^ GetIPUri = gcnew Uri("http://checkip.dyndns.org/"); static Thread^ TimerGetIPThread; static bool GetIPCancelled; static bool GetIPSleeping; - // ƒ`[ƒ€HPŽ‚¿‰z‚µ—p + // チヌムHP持ち越し甚 static Thread^ SetTeamHPThread; static UINT P_HP; static UINT Winner; - // ‰ñü‚̐¶Ž€”»’è + // 回線の生死刀定 static Thread^ SonarThread; static bool Ranging; static bool SonarSleeping; - // ƒlƒbƒg‘ΐíŠÖ˜A + // ネット察戊関連 ref struct VersusInfo { - UINT SEQUENCE; // ‚â‚èŽæ‚蓯Šú—p - bool SLEEPING; // ƒXƒŒƒbƒh‘Ò‹@—p - int WAITING; // ƒpƒPŽóM‘Ò‹@—p 1-:Wait ON 2:Sleep - DWORD START_UP; // ‹N“®ŽžŠÔ + UINT SEQUENCE; // やり取り同期甚 + bool SLEEPING; // スレッド埅機甚 + int WAITING; // パケ受信埅機甚 1-:Wait ON 2:Sleep + DWORD START_UP; // 起動時間 IPEndPoint^ IP_EP; array^ PING; array^ PONG; - UINT DELAY; // ƒfƒBƒŒƒC‚Í‘å‚«‚¢•û‚ɍ‡‚킹‚é - UINT INTERVAL; // ‘—MŠÔŠu ¬:1f‚ ‚œ‚è‚Ì“ü—̓f[ƒ^‘—M‰ñ”‚ð4‚É ’†:3‰ñ ‘å:2‰ñ - UINT INTERVAL2; // ‘—MŠÔŠuŒvŽZ—p - array^ SEND; // ‘—M—pƒoƒbƒtƒ@ - array^ LOCAL; // ƒŠƒ“ƒOƒoƒbƒtƒ@ - UINT32 L_FRAME; // ‘ƒtƒŒ[ƒ€” - int L_READ; // “Ç‚ÝŽæ‚èˆÊ’u - array^ REMOTE; // ‚±‚Ì‚Q‚‚̓L[‚Ì—š—ð‚ð•ÛŽ‚·‚é - UINT32 R_FRAME; // ‘ƒtƒŒ[ƒ€” - int R_READ; // “Ç‚ÝŽæ‚èˆÊ’u + UINT DELAY; // ディレむは倧きい方に合わせる + UINT INTERVAL; // 送信間隔 小:1fあたりの入力デヌタ送信回数を4に äž­:3回 倧:2回 + UINT INTERVAL2; // 送信間隔蚈算甚 + array^ SEND; // 送信甚バッファ + array^ LOCAL; // リングバッファ + UINT32 L_FRAME; // 総フレヌム数 + int L_READ; // 読み取り䜍眮 + array^ REMOTE; // この぀はキヌの履歎を保持する + UINT32 R_FRAME; // 総フレヌム数 + int R_READ; // 読み取り䜍眮 }; static Thread^ VersusThread; static VersusInfo^ NetVS; - // ŠÏíŠÖ˜A + // 芳戊関連 ref struct SpectatorInfo { UINT16 ID; @@ -1037,22 +1037,22 @@ private: System::Windows::Forms::ToolStripMenuItem^ toolStripMenuItemWordWrap; static Thread^ SpectacleThread; static Generic::List^ SpectatorList; - static bool AllowWatch; // ƒXƒŒƒbƒh§Œä - static UINT WaitingWatch; // ƒpƒPƒbƒg‘Ò‚¿ 1:ŠJŽn‘Ò‚¿ 2:ƒf[ƒ^‘Ò‚¿ - static IPEndPoint^ WatchTarget; // ŠÏí‘ÎÛ + static bool AllowWatch; // スレッド制埡 + static UINT WaitingWatch; // パケット埅ち 1:開始埅ち 2:デヌタ埅ち + static IPEndPoint^ WatchTarget; // 芳戊察象 static UINT16 TargetID; - static UINT16 P1ID, P2ID; // P2‚ª0xFFFF‚ňêlƒvƒŒƒC - static UINT32 WatchFrame; // “Ç‚ÝŽæ‚èˆÊ’u - static array^ WatchHistory; // ƒoƒbƒtƒ@ TIME_OUT/5 * 3 = 1800‚Ì900ƒtƒŒ[ƒ€•ª - static UINT32 InputFrame; // ‘‚«ž‚݈ʒu - static array^ InputHistory; // ƒoƒbƒtƒ@ + static UINT16 P1ID, P2ID; // P2が0xFFFFで䞀人プレむ + static UINT32 WatchFrame; // 読み取り䜍眮 + static array^ WatchHistory; // バッファ TIME_OUT/5 * 3 = 1800の900フレヌム分 + static UINT32 InputFrame; // 曞き蟌み䜍眮 + static array^ InputHistory; // バッファ - // Ž©“®‹xŒe + // 自動䌑憩 static Thread^ AutoRestThread; static bool AutoRestRanging; static bool AutoRestSleeping; - // MainForm.cpp‚É‹Lq + // MainForm.cppに蚘述 void Begin(); void TimerGetIP(); void SetTeamHP(); @@ -1075,15 +1075,15 @@ private: System::Windows::Forms::ToolStripMenuItem^ toolStripMenuItemWordWrap; protected: void StartGame(UINT type){ - // ŠiƒcƒN‚¶‚á‚È‚¢‚æ + // 栌ツクじゃないよ try{ FileVersionInfo^ info = FileVersionInfo::GetVersionInfo(gcnew String(MTOPTION.GAME_EXE)); - if(info->FileDescription != "‚Q‚cŠi“¬ƒcƒN[ƒ‹2nd." && info->FileDescription != "‚Q‚cŠi“¬ƒcƒN[ƒ‹‚X‚T"){ + if(info->FileDescription != "栌闘ツクヌル2nd." && info->FileDescription != "栌闘ツクヌル"){ throw gcnew Exception; } else{ - if(info->FileDescription == "‚Q‚cŠi“¬ƒcƒN[ƒ‹2nd."){ + if(info->FileDescription == "栌闘ツクヌル2nd."){ MTINFO.KGT2K = true; } else{ @@ -1092,8 +1092,8 @@ private: System::Windows::Forms::ToolStripMenuItem^ toolStripMenuItemWordWrap; } } catch(Exception^){ - WriteMessage("Ši“¬ƒcƒN[ƒ‹‚ÌŽÀsƒtƒ@ƒCƒ‹‚Å‚Í‚ ‚è‚Ü‚¹‚ñB\n", ErrorMessageColor); - WriteMessage("ƒIƒvƒVƒ‡ƒ“‚ÅŽÀsƒtƒ@ƒCƒ‹‚̃pƒX‚ðÝ’肵‚Ä‚­‚Ÿ‚³‚¢B\n", ErrorMessageColor); + WriteMessage("栌闘ツクヌルの実行ファむルではありたせん。\n", ErrorMessageColor); + WriteMessage("オプションで実行ファむルのパスを蚭定しおください。\n", ErrorMessageColor); return; } @@ -1156,11 +1156,11 @@ private: System::Windows::Forms::ToolStripMenuItem^ toolStripMenuItemWordWrap; NetVS->R_FRAME = 0; NetVS->L_READ = 0; - // ŠÏí—pID + // 芳戊甚ID P1ID = MemberList[listBoxMember->SelectedIndex]->ID; P2ID = MemberList[0]->ID; - // –Œ‘O + // 名前 ZeroMemory(MTINFO.P1_NAME, sizeof(MTINFO.P1_NAME)); ZeroMemory(MTINFO.P2_NAME, sizeof(MTINFO.P2_NAME)); @@ -1172,10 +1172,10 @@ private: System::Windows::Forms::ToolStripMenuItem^ toolStripMenuItemWordWrap; _tcscpy_s(MTINFO.P2_NAME, MTOPTION.NAME); } - // ‘ΐí‰ñ” + // 察戊回数 MemberList[listBoxMember->SelectedIndex]->NUM_VS++; - // ƒlƒbƒg‘ΐ폀”õ—pƒXƒŒƒbƒh‚Ì‹N“® + // ネット察戊準備甚スレッドの起動 MTINFO.CONTROL = 1; VersusThread = gcnew Thread(gcnew ThreadStart(this, &MainForm::RunVersus)); VersusThread->Start(); @@ -1197,17 +1197,17 @@ private: System::Windows::Forms::ToolStripMenuItem^ toolStripMenuItemWordWrap; } } - // ƒtƒH[ƒ}ƒbƒg‚ÌŠm”F + // フォヌマットの確認 TCHAR ver; array^ header = gcnew array{'T', 'Y', 'M', 'T', 'R'}; BinaryReader^ br = gcnew BinaryReader(File::OpenRead(ReplayFilePath)); try{ - // ƒwƒbƒ_ + // ヘッダ array^ h = br->ReadChars(header->Length); for(int i = 0; i < h->Length; i++){ if(h[i] != header[i]){ - WriteMessage("—LŒø‚ȃŠƒvƒŒƒCƒtƒ@ƒCƒ‹‚Å‚Í‚ ‚è‚Ü‚¹‚ñB\n", ErrorMessageColor); + WriteMessage("有効なリプレむファむルではありたせん。\n", ErrorMessageColor); return; } } @@ -1215,7 +1215,7 @@ private: System::Windows::Forms::ToolStripMenuItem^ toolStripMenuItemWordWrap; ver = br->ReadChar(); if(ver < _T('1') || ver > _T('4')){ - WriteMessage("—LŒø‚ȃŠƒvƒŒƒC‚̃o[ƒWƒ‡ƒ“‚Å‚Í‚ ‚è‚Ü‚¹‚ñB\n", ErrorMessageColor); + WriteMessage("有効なリプレむのバヌゞョンではありたせん。\n", ErrorMessageColor); return; } } @@ -1229,10 +1229,10 @@ private: System::Windows::Forms::ToolStripMenuItem^ toolStripMenuItemWordWrap; } else{ if(_tcslen(MTINFO.ORIGINAL_TITLE) > 0){ - WriteMessage(String::Format("{0}‚ª‹N“®’†‚Å‚·B\n", gcnew String(MTINFO.ORIGINAL_TITLE)), SystemMessageColor); + WriteMessage(String::Format("{0}が起動䞭です。\n", gcnew String(MTINFO.ORIGINAL_TITLE)), SystemMessageColor); } else{ - WriteMessage("‘Œ‚̃Q[ƒ€‚ª‹N“®’†‚Å‚·B\n", SystemMessageColor); + WriteMessage("他のゲヌムが起動䞭です。\n", SystemMessageColor); } } } @@ -1240,14 +1240,14 @@ private: System::Windows::Forms::ToolStripMenuItem^ toolStripMenuItemWordWrap; void QuitGame(){ if(GameThread != nullptr && GameThread->IsAlive){ if(MTINFO.DEBUG){ - WriteMessage("ƒQ[ƒ€ƒvƒƒZƒX‚ð’âŽ~‚µ‚Ü‚·B\n", DebugMessageColor); + WriteMessage("ゲヌムプロセスを停止したす。\n", DebugMessageColor); } try{ Process::GetProcessById(MTINFO.PROCESS_ID)->CloseMainWindow(); } catch(ArgumentException^){ if(MTINFO.DEBUG){ - WriteMessage("—áŠO > ArgumentException\n", DebugMessageColor); + WriteMessage("䟋倖 > ArgumentException\n", DebugMessageColor); } GameThread->Abort(); GameThread = nullptr; @@ -1261,17 +1261,17 @@ private: System::Windows::Forms::ToolStripMenuItem^ toolStripMenuItemWordWrap; if(ps->Length > 0){ for(int i=0; i < ps->Length; i++){ if(ps[0]->MainWindowTitle == game){ - WriteMessage(String::Format("{0}‚ðI—¹‚µ‚Ü‚·B\n", ps[0]->MainWindowTitle), SystemMessageColor); + WriteMessage(String::Format("{0}を終了したす。\n", ps[0]->MainWindowTitle), SystemMessageColor); ps[0]->CloseMainWindow(); } } }else{ - WriteMessage(String::Format("I—¹‚·‚éƒQ[ƒ€\"{0}\"‚ªŒ©‚‚©‚è‚Ü‚¹‚ñ‚Å‚µ‚œB\nƒIƒvƒVƒ‡ƒ“‚ÌŽÀsƒtƒ@ƒCƒ‹‚̃pƒXA‚Ü‚œ‚̓vƒƒtƒ@ƒCƒ‹‚ª‡‚Á‚Ä‚¢‚é‚©Šm”F‚µ‚Ä‚­‚Ÿ‚³‚¢B\n", game), ErrorMessageColor); + WriteMessage(String::Format("終了するゲヌム\"{0}\"が芋぀かりたせんでした。\nオプションの実行ファむルのパス、たたはプロファむルが合っおいるか確認しおください。\n", game), ErrorMessageColor); return; } } catch(Exception^ e){ - WriteMessage("ƒQ[ƒ€‚ðI—¹‚Å‚«‚Ü‚¹‚ñ‚Å‚µ‚œB\n", ErrorMessageColor); + WriteMessage("ゲヌムを終了できたせんでした。\n", ErrorMessageColor); if(MTINFO.DEBUG){ WriteMessage(String::Format("{0}\n", e->ToString()), DebugMessageColor); } @@ -1314,11 +1314,11 @@ private: System::Windows::Forms::ToolStripMenuItem^ toolStripMenuItemWordWrap; if(state == MS_WATCH) ChangeState((BYTE)MS_FREE); if(state == MS_COUCH) ChangeState((BYTE)MS_REST); - toolStripMenuItemWatch->Text = gcnew String("ŠÏí‚·‚é"); + toolStripMenuItemWatch->Text = gcnew String("芳戊する"); } void Restart(){ - // ƒtƒŠ[ƒvƒŒƒC‚Ÿ‚¯‚Ǒΐ풆 + // フリヌプレむだけど察戊䞭 if(AfterCloseUDP) return; CloseUdp(true); @@ -1326,7 +1326,7 @@ private: System::Windows::Forms::ToolStripMenuItem^ toolStripMenuItemWordWrap; MemberList->Clear(); listBoxMember->Items->Clear(); - // IPŽæ“Ÿ‚̃Lƒƒƒ“ƒZƒ‹ + // IP取埗のキャンセル if(GetIPClient != nullptr){ GetIPClient->CancelAsync(); } @@ -1408,7 +1408,7 @@ private: System::Windows::Forms::ToolStripMenuItem^ toolStripMenuItemWordWrap; if(UDP != nullptr){ array^ quit; - // ƒ\ƒi[’âŽ~ + // ゜ナヌ停止 if(SonarThread != nullptr && SonarThread->IsAlive && Ranging){ Ranging = false; @@ -1418,7 +1418,7 @@ private: System::Windows::Forms::ToolStripMenuItem^ toolStripMenuItemWordWrap; SonarThread->Join(); } - // Ž©“®‹xŒeƒXƒŒƒbƒh’âŽ~ + // 自動䌑憩スレッド停止 if(AutoRestThread != nullptr && AutoRestThread->IsAlive && AutoRestRanging){ AutoRestRanging = false; AutoRestThread->Abort(); @@ -1426,7 +1426,7 @@ private: System::Windows::Forms::ToolStripMenuItem^ toolStripMenuItemWordWrap; } if(send_packet){ - // ‘ÞŽºƒƒbƒZ[ƒW‚𑗐M + // 退宀メッセヌゞを送信 if(MTOPTION.CONNECTION_TYPE == CT_SERVER){ quit = gcnew array(3){ PH_QUIT, 0, 0 }; PacketSendAllMember(quit, 0); @@ -1453,25 +1453,25 @@ private: System::Windows::Forms::ToolStripMenuItem^ toolStripMenuItemWordWrap; String^ name; Color col; - // ‘—ŽóM + // 送受信 if(UDP != nullptr && MemberList->Count > 1){ if(MTOPTION.CONNECTION_TYPE == CT_SERVER){ - // –{l‚Æ”­MŽÒˆÈŠO‚É‘—M + // 本人ず発信者以倖に送信 PacketSendAllMember(msg, id); } else{ - // ŽóM‚Å‚È‚¯‚ê‚΁AƒT[ƒo‚É‘—M + // 受信でなければ、サヌバに送信 if(id != 0xFFFF){ UDP->BeginSend(msg, msg->Length, MemberList[1]->IP_EP, gcnew AsyncCallback(SendPackets), UDP); } else{ - // ŽóMƒtƒ‰ƒO‚ðƒNƒŠƒA + // 受信フラグをクリア id = BitConverter::ToUInt16(msg, 1); } } } - // ƒƒ“ƒo[ŒŸõ + // メンバヌ怜玢 Monitor::Enter(MemberList); try{ for(i = 0; i < MemberList->Count; i++){ @@ -1486,7 +1486,7 @@ private: System::Windows::Forms::ToolStripMenuItem^ toolStripMenuItemWordWrap; name = gcnew String(String::Format("Unknown(ID:{0})", id)); col = ErrorMessageColor; - // ƒƒ“ƒo[ƒŠƒXƒgŠO‚ÌID‚ª‚¢‚œ‚Ì‚Å–â‚¢‡‚킹 + // メンバヌリスト倖のIDがいたので問い合わせ array^ send = gcnew array(3){ PH_REQ_LIST }; Array::Copy(BitConverter::GetBytes(id), 0, send, 1, 2); UDP->Send(send, 3, MemberList[1]->IP_EP); @@ -1496,12 +1496,12 @@ private: System::Windows::Forms::ToolStripMenuItem^ toolStripMenuItemWordWrap; Monitor::Exit(MemberList); } - // ‰¹º—Dæ“x: ƒjƒbƒNƒl[ƒ€ > ƒL[ƒ[ƒh > ”­ŒŸ - // ƒjƒbƒNƒl[ƒ€‰¹ºÄ¶ + // 音声優先床: ニックネヌム > キヌワヌド > 発蚀 + // ニックネヌム音声再生 String ^tmpMsg = Encoding::Unicode->GetString(msg, 4, msg[3]); bool inname = 0; if(tmpMsg->Contains(gcnew String(MTOPTION.NAME))) { - // –Œ‘O‚ªŒÄ‚΂ꂜ‚çƒEƒBƒ“ƒhƒE“_–Å + // 名前が呌ばれたらりィンドり点滅 if(MTOPTION.NAME_FLASH) { WindowFlash(); } @@ -1515,10 +1515,10 @@ private: System::Windows::Forms::ToolStripMenuItem^ toolStripMenuItemWordWrap; } } } - // ƒL[ƒ[ƒh”œ‰ž + // キヌワヌド反応 bool inkeyword = 0; if(MTOPTION.KEYWORD_SOUND_ENABLE && !inname){ - // •ªŠ„ƒoƒbƒtƒ@ + // 分割バッファ TCHAR *tok, *next; TCHAR s1[MAX_KEYWORD]; _tcscpy_s(s1, MTOPTION.KEYWORD); @@ -1537,12 +1537,12 @@ private: System::Windows::Forms::ToolStripMenuItem^ toolStripMenuItemWordWrap; tok = wcstok_s(NULL, _T(","), &next); } } - // ”­ŒŸ‚ŃEƒBƒ“ƒhƒE“_–Å + // 発蚀でりィンドり点滅 if(MemberList[0]->ID != id && !inname) { if(MTOPTION.TALK_FLASH) { WindowFlash(); } - // ”­ŒŸ‚ʼn¹‚ðÄ¶ + // 発蚀で音を再生 if(MTOPTION.TALK_SOUND_ENABLE && !inkeyword){ try{ Media::SoundPlayer^ wav = gcnew Media::SoundPlayer(gcnew String(MTOPTION.TALK_SOUND)); @@ -1553,13 +1553,13 @@ private: System::Windows::Forms::ToolStripMenuItem^ toolStripMenuItemWordWrap; } } - // ŽžŠÔ + // 時間 if(inname||inkeyword){ WriteTime(1, DebugMessageColor); }else{ WriteTime(1, SystemMessageColor); } - // •\ŽŠ + // 衚瀺 WriteMessage(String::Format("[ {0} ] ", name), col); WriteMessage(String::Format("{0}\n", tmpMsg), TalkMessageColor); } @@ -1596,7 +1596,7 @@ private: System::Windows::Forms::ToolStripMenuItem^ toolStripMenuItemWordWrap; } } void WriteNotice(String^ msg){ - // ‰¹‚Å‚š’m‚点 + // 音でお知らせ if(MTOPTION.CONNECTION_TYPE != CT_SERVER){ if(MTOPTION.NOTICE_SOUND_ENABLE){ try{ @@ -1608,7 +1608,7 @@ private: System::Windows::Forms::ToolStripMenuItem^ toolStripMenuItemWordWrap; } } - // \n‚ʼnüs + // \nで改行 msg = msg->Replace("\\n", "\n"); Monitor::Enter(richTextBoxLog); @@ -1640,7 +1640,7 @@ private: System::Windows::Forms::ToolStripMenuItem^ toolStripMenuItemWordWrap; return; } - // ‰¹‚Å‚š’m‚点 + // 音でお知らせ if(MTOPTION.ENTER_SOUND_ENABLE){ try{ Media::SoundPlayer^ wav = gcnew Media::SoundPlayer(gcnew String(MTOPTION.ENTER_SOUND)); @@ -1651,7 +1651,7 @@ private: System::Windows::Forms::ToolStripMenuItem^ toolStripMenuItemWordWrap; } if(comment->Length > 0){ - // ŽžŠÔ + // 時間 WriteTime(1, SystemMessageColor); Monitor::Enter(richTextBoxLog); try{ @@ -1678,27 +1678,27 @@ private: System::Windows::Forms::ToolStripMenuItem^ toolStripMenuItemWordWrap; } else{ WriteTime(0, SystemMessageColor); - WriteMessage(String::Format("{0}‚ª“üŽº‚µ‚Ü‚µ‚œB\n", name), SystemMessageColor); + WriteMessage(String::Format("{0}が入宀したした。\n", name), SystemMessageColor); } } void WriteCommandList(){ WriteMessage( - "/help F ƒRƒ}ƒ“ƒhˆê——‚Ì•\ŽŠ\n" - "/clear F ƒƒO‚̍폜\n" - "/log F RTFŒ`Ž®‚эƒO‚Ì•Û‘¶\n" - "/debug F ƒfƒoƒbƒOƒ‚[ƒh‚̐؂è‘Ö‚Š\n" - "/vs F ƒ‰ƒ“ƒ_ƒ€‚ɑΐí‚𒧂Þ\n" - "/game F ƒQ[ƒ€‚Ì‹N“®\n" - "/replay F ƒŠƒvƒŒƒCƒtƒ@ƒCƒ‹‚̍ж\n" - "/quit F ‹N“®’†‚̃Q[ƒ€‚ðI—¹\n" - "/reload F ƒƒ“ƒo[ƒŠƒXƒg‚̍XV\n" - "/restart F ƒtƒŠ[ƒvƒŒƒC‚©‚çV‹K‚ɉñüÚ‘±\n" - "/rest F ‹xŒeó‘Ԃ̐؂è‘Ö‚Š\n" - "/seek F ‘ΐí•åWó‘Ԃ̐؂è‘Ö‚Š\n" - "/list F ƒŠƒXƒg‚Ì•\ŽŠ‚ðØ‚è‘Ö‚Š\n" - "/leave F ‘ÞŽº•ƒtƒŠ[ƒvƒŒƒC‚Ɉڍs\n" - "/exit F ƒvƒƒOƒ‰ƒ€‚̏I—¹\n", SystemMessageColor); + "/help  コマンド䞀芧の衚瀺\n" + "/clear  ログの削陀\n" + "/log  RTF圢匏でログの保存\n" + "/debug  デバッグモヌドの切り替え\n" + "/vs  ランダムに察戊を挑む\n" + "/game  ゲヌムの起動\n" + "/replay  リプレむファむルの再生\n" + "/quit  起動䞭のゲヌムを終了\n" + "/reload  メンバヌリストの曎新\n" + "/restart  フリヌプレむから新芏に回線接続\n" + "/rest  䌑憩状態の切り替え\n" + "/seek  察戊募集状態の切り替え\n" + "/list  リストの衚瀺を切り替え\n" + "/leave  退宀フリヌプレむに移行\n" + "/exit  プログラムの終了\n", SystemMessageColor); } void RandomVersus(){ @@ -1731,7 +1731,7 @@ private: System::Windows::Forms::ToolStripMenuItem^ toolStripMenuItemWordWrap; StartGame(RT_VS); } else{ - WriteMessage("‘ΐí‚Å‚«‚é‘ŠŽè‚ª‚¢‚Ü‚¹‚ñ‚Å‚µ‚œB\n", SystemMessageColor); + WriteMessage("察戊できる盞手がいたせんでした。\n", SystemMessageColor); } } } @@ -1759,15 +1759,15 @@ private: System::Windows::Forms::ToolStripMenuItem^ toolStripMenuItemWordWrap; Monitor::Exit(richTextBoxLog); } - WriteMessage(String::Format("\"{0}\"‚ɃƒO‚ð•Û‘¶‚µ‚Ü‚µ‚œB\n", file), SystemMessageColor); + WriteMessage(String::Format("\"{0}\"にログを保存したした。\n", file), SystemMessageColor); } else if(textBoxInput->Text->StartsWith("/debug", StringComparison::OrdinalIgnoreCase)){ MTINFO.DEBUG ^= 1; if(MTINFO.DEBUG){ - WriteMessage("ƒfƒoƒbƒOƒ‚[ƒh > ƒIƒ“\n", SystemMessageColor); + WriteMessage("デバッグモヌド > オン\n", SystemMessageColor); } else{ - WriteMessage("ƒfƒoƒbƒOƒ‚[ƒh > ƒIƒt\n", SystemMessageColor); + WriteMessage("デバッグモヌド > オフ\n", SystemMessageColor); } } else if(textBoxInput->Text->StartsWith("/vs", StringComparison::OrdinalIgnoreCase)){ @@ -1791,11 +1791,11 @@ private: System::Windows::Forms::ToolStripMenuItem^ toolStripMenuItemWordWrap; if(MemberList[0]->STATE == MS_FREE){ ChangeState((BYTE)MS_REST); - WriteMessage("‹xŒeó‘Ô‚ð•ÏX‚µ‚Ü‚µ‚œB > ƒIƒ“\n", SystemMessageColor); + WriteMessage("䌑憩状態を倉曎したした。 > オン\n", SystemMessageColor); } else if(MemberList[0]->STATE == MS_REST){ ChangeState((BYTE)MS_FREE); - WriteMessage("‹xŒeó‘Ô‚ð•ÏX‚µ‚Ü‚µ‚œB > ƒIƒt\n", SystemMessageColor); + WriteMessage("䌑憩状態を倉曎したした。 > オフ\n", SystemMessageColor); } } else if(textBoxInput->Text->StartsWith("/seek", StringComparison::OrdinalIgnoreCase)){ @@ -1842,7 +1842,7 @@ private: System::Windows::Forms::ToolStripMenuItem^ toolStripMenuItemWordWrap; this->Close(); } else if(textBoxInput->Text->StartsWith("/memberlist", StringComparison::OrdinalIgnoreCase)){ - // ƒfƒoƒbƒO—pƒRƒ}ƒ“ƒh + // デバッグ甚コマンド if(UDP == nullptr){ return; } @@ -1855,7 +1855,7 @@ private: System::Windows::Forms::ToolStripMenuItem^ toolStripMenuItemWordWrap; } } else if(textBoxInput->Text->StartsWith("/memberhistory", StringComparison::OrdinalIgnoreCase)){ - // ƒfƒoƒbƒO—pƒRƒ}ƒ“ƒh + // デバッグ甚コマンド if(MTOPTION.CONNECTION_TYPE != CT_SERVER || UDP == nullptr){ return; } @@ -1870,7 +1870,7 @@ private: System::Windows::Forms::ToolStripMenuItem^ toolStripMenuItemWordWrap; ReloadList(); } else if(textBoxInput->Text->StartsWith("/test", StringComparison::OrdinalIgnoreCase)){ - // ƒfƒoƒbƒO—pƒRƒ}ƒ“ƒh + // デバッグ甚コマンド //Debug::WriteLine("test"); //Thread::Sleep(100 * 1000); @@ -1886,7 +1886,7 @@ private: System::Windows::Forms::ToolStripMenuItem^ toolStripMenuItemWordWrap; - // ‹­§ƒLƒbƒN + // 匷制キック //array^ send = gcnew array(3){ PH_LOST, 0xFF, 0xFF }; //IPEndPoint^ ep = gcnew IPEndPoint(IPAddress::Parse("221.79.20.188")->Address, 7500); //UDP->BeginSend(send, send->Length, ep, gcnew AsyncCallback(SendPackets), UDP); @@ -1897,7 +1897,7 @@ private: System::Windows::Forms::ToolStripMenuItem^ toolStripMenuItemWordWrap; //Ping = timeGetTime(); //UDP->BeginSend(ping, 1, ep, gcnew AsyncCallback(SendPackets), UDP); - // ‚È‚è‚«‚è + // なりきり /* IPEndPoint^ ep = gcnew IPEndPoint(IPAddress::Parse("220.147.87.48")->Address, 4040); BYTE len = (BYTE)(16); @@ -1906,23 +1906,23 @@ private: System::Windows::Forms::ToolStripMenuItem^ toolStripMenuItemWordWrap; msg[0] = PH_MESSAGE; Array::Copy(BitConverter::GetBytes(207), 0, msg, 1, 2); msg[3] = len; - Array::Copy(Encoding::Unicode->GetBytes("‚»‚ê‚Ù‚Ç‚Å‚à‚È‚¢"), 0, msg, 4, len); + Array::Copy(Encoding::Unicode->GetBytes("それほどでもない"), 0, msg, 4, len); UDP->BeginSend(msg, msg->Length, ep, gcnew AsyncCallback(SendPackets), UDP); */ - /*// MTSPƒAƒhƒŒƒXƒfƒR[ƒh + /*// MTSPアドレスデコヌド IPEndPoint^ ep = gcnew IPEndPoint(MTDecryptionIP(""), 7500); WriteMessage(String::Format("{0}", ep), DebugMessageColor); //*/ - /*// LilithPortƒAƒhƒŒƒXƒfƒR[ƒh + /*// LilithPortアドレスデコヌド IPEndPoint^ ep = gcnew IPEndPoint(DecryptionIP("", true), 7500); WriteMessage(String::Format("{0}", ep), DebugMessageColor); //*/ - /*// ƒƒ“ƒo[ƒŠƒXƒgŽè“®íœ + /*// メンバヌリスト手動削陀 MemberList->RemoveAt(listBoxMember->SelectedIndex); listBoxMember->Items->RemoveAt(listBoxMember->SelectedIndex); //*/ @@ -1940,12 +1940,12 @@ private: System::Windows::Forms::ToolStripMenuItem^ toolStripMenuItemWordWrap; listBoxMember->Items->Add(info->COMMENT); } else{ - listBoxMember->Items->Add(gcnew String("Ÿ")); + listBoxMember->Items->Add(gcnew String("◆")); } break; case LV_BLIND: - listBoxMember->Items->Add(gcnew String("Ÿ")); + listBoxMember->Items->Add(gcnew String("◆")); break; } } @@ -1957,7 +1957,7 @@ private: System::Windows::Forms::ToolStripMenuItem^ toolStripMenuItemWordWrap; return; } - // –Œ‘O‚ƃRƒƒ“ƒg‚ÌŽ©“®Ø‚è‘Ö‚Š + // 名前ずコメントの自動切り替え if(auto_change){ switch(ListView){ case LV_NAME: @@ -1986,12 +1986,12 @@ private: System::Windows::Forms::ToolStripMenuItem^ toolStripMenuItemWordWrap; listBoxMember->Items[i] = MemberList[i]->COMMENT; } else{ - listBoxMember->Items[i] = gcnew String("Ÿ"); + listBoxMember->Items[i] = gcnew String("◆"); } break; case LV_BLIND: - listBoxMember->Items[i] = gcnew String("Ÿ"); + listBoxMember->Items[i] = gcnew String("◆"); break; } } @@ -2070,7 +2070,7 @@ private: System::Windows::Forms::ToolStripMenuItem^ toolStripMenuItemWordWrap; void ReloadList(){ - // ƒƒ“ƒo[ƒŠƒXƒgXV + // メンバヌリスト曎新 if(MTOPTION.CONNECTION_TYPE == CT_SERVER || UDP == nullptr){ return; } @@ -2085,32 +2085,32 @@ private: System::Windows::Forms::ToolStripMenuItem^ toolStripMenuItemWordWrap; Array::Copy(BitConverter::GetBytes(0), 0, send, 1, 2); UDP->Send(send, 3, MemberList[1]->IP_EP); - WriteMessage("ƒƒ“ƒo[ƒŠƒXƒg‚ðXV‚µ‚Ü‚µ‚œB(˜A‘±‚µ‚Ă̍XV‚̓T[ƒo[‚É•‰‰×‚ª‚©‚©‚é‚œ‚߁A’ˆÓ‚µ‚Ä‚­‚Ÿ‚³‚¢B)\n", SystemMessageColor); + WriteMessage("メンバヌリストを曎新したした。(連続しおの曎新はサヌバヌに負荷がかかるため、泚意しおください。)\n", SystemMessageColor); } void WriteStatus(String^ msg){ toolStripStatusLabel->Text = msg; } public: - // IPŽæ“ŸŠ®—¹ + // IP取埗完了 void GetIPOpenReadCompleted(System::Object^ sender, System::Net::OpenReadCompletedEventArgs^ e) { - // I—¹—p + // 終了甚 if(GetIPClient == nullptr) return; if(GetIPCancelled == true) { GetIPCancelled = false; GetIPClient = nullptr; return; } - // TimerGetIPƒ^ƒCƒ€ƒAƒEƒg + // TimerGetIPタむムアりト if(e->Cancelled) { - WriteMessage("IPƒAƒhƒŒƒXŽæ“Ÿ‚Ì—v‹‚ªƒ^ƒCƒ€ƒAƒEƒg‚É‚æ‚èƒLƒƒƒ“ƒZƒ‹‚³‚ê‚Ü‚µ‚œB\n", ErrorMessageColor); + WriteMessage("IPアドレス取埗の芁求がタむムアりトによりキャンセルされたした。\n", ErrorMessageColor); if(MTINFO.DEBUG){ WriteMessage(e->ToString() + "\n", DebugMessageColor); } GetIPClient = nullptr; return; } - // ƒAƒhƒŒƒX‚Ì’Šo + // アドレスの抜出 String^ html; _int64 Global_address; array ^s1, ^s2, ^s3; @@ -2127,26 +2127,26 @@ private: System::Windows::Forms::ToolStripMenuItem^ toolStripMenuItemWordWrap; } catch(Exception^ e) { Global_address = 0; - WriteMessage("IPƒAƒhƒŒƒXî•ñ‚Ì’Šo‚ÉŽž”s‚µ‚Ü‚µ‚œB\nLilithPort‚̃o[ƒWƒ‡ƒ“‚ªŒÃ‚¢‰Â”\«‚ª‚ ‚è‚Ü‚·B\n", ErrorMessageColor); + WriteMessage("IPアドレス情報の抜出に倱敗したした。\nLilithPortのバヌゞョンが叀い可胜性がありたす。\n", ErrorMessageColor); if(MTINFO.DEBUG){ WriteMessage(e->ToString() + "\n", DebugMessageColor); } } finally{ - // Stream‚Í‚µ‚Á‚©‚èŠJ•ú + // Streamはしっかり開攟 if(sr != nullptr) sr->Close(); if(reply != nullptr) reply->Close(); } if(Global_address > 0) { - WriteMessage(String::Format("IPƒAƒhƒŒƒX‚ðŽæ“Ÿ‚µ‚Ü‚µ‚œB > {0}\n", s3[1]), SystemMessageColor); - WriteMessage("[•ÏŠ·ƒAƒhƒŒƒX:ƒ|[ƒg]\nLilithPort—p > ", SystemMessageColor); + WriteMessage(String::Format("IPアドレスを取埗したした。 > {0}\n", s3[1]), SystemMessageColor); + WriteMessage("[倉換アドレス:ポヌト]\nLilithPort甹 > ", SystemMessageColor); richTextBoxLog->SelectionColor = TalkMessageColor; richTextBoxLog->SelectionBackColor = NoticeBackColor; richTextBoxLog->AppendText(String::Format("{0}:{1}\n", EncryptionIP(s3[1]), MTOPTION.OPEN_PORT)); - WriteMessage("MTSP—p > ", SystemMessageColor); + WriteMessage("MTSP甹 > ", SystemMessageColor); richTextBoxLog->SelectionColor = TalkMessageColor; richTextBoxLog->SelectionBackColor = NoticeBackColor; richTextBoxLog->AppendText(String::Format("{0}:{1}\n", MTEncryptionIP(s3[1]), MTOPTION.OPEN_PORT)); @@ -2169,7 +2169,7 @@ private: System::Windows::Forms::ToolStripMenuItem^ toolStripMenuItemWordWrap; listBoxMember->Items[0] = comment; } else{ - listBoxMember->Items[0] = gcnew String("Ÿ"); + listBoxMember->Items[0] = gcnew String("◆"); } } @@ -2215,19 +2215,19 @@ private: System::Windows::Forms::ToolStripMenuItem^ toolStripMenuItemWordWrap; void GetIPAddress(){ if(GetIPClient == nullptr){ - // ƒOƒ[ƒoƒ‹IP‚ÌŽæ“Ÿ + // グロヌバルIPの取埗 GetIPClient = gcnew WebClient(); GetIPClient->OpenReadCompleted += gcnew OpenReadCompletedEventHandler(this, &MainForm::GetIPOpenReadCompleted); - // ƒ^ƒCƒ€ƒAƒEƒgƒ^ƒCƒ}[ - WriteMessage("IPƒAƒhƒŒƒX‚ðŽæ“Ÿ’†‚Å‚·...\n", SystemMessageColor); + // タむムアりトタむマヌ + WriteMessage("IPアドレスを取埗䞭です...\n", SystemMessageColor); TimerGetIPThread = gcnew Thread(gcnew ThreadStart(this, &MainForm::TimerGetIP)); TimerGetIPThread->Start(); try{ GetIPClient->OpenReadAsync(GetIPUri); } catch(WebException^ e) { - WriteMessage("IPƒAƒhƒŒƒX‚ÌŽæ“Ÿ‚ÉŽž”s‚µ‚Ü‚µ‚œB\n", ErrorMessageColor); + WriteMessage("IPアドレスの取埗に倱敗したした。\n", ErrorMessageColor); if(MTINFO.DEBUG){ WriteMessage(e->ToString() + "\n", DebugMessageColor); @@ -2236,7 +2236,7 @@ private: System::Windows::Forms::ToolStripMenuItem^ toolStripMenuItemWordWrap; } } void ChangeProfileEnabled(){ - // ƒvƒƒtƒ@ƒCƒ‹ƒhƒƒbƒvƒ_ƒEƒ“XV + // プロファむルドロップダりン曎新 toolStripDropDownButtonProfile->DropDownItems->Clear(); for(int i=0; i < Profile::ProfileList->Count; i++){ if(Profile::ProfileList[i] == gcnew String(MTOPTION.PROFILE)){ @@ -2259,10 +2259,10 @@ private: System::Windows::Forms::ToolStripMenuItem^ toolStripMenuItemWordWrap; } private: System::Void MainForm_Load(System::Object^ sender, System::EventArgs^ e) { - // sŠÔ‚ð‹l‚ß‚é + // 行間を詰める richTextBoxLog->LanguageOption = RichTextBoxLanguageOptions::UIFonts; - // ƒXƒŒƒbƒhŠÔ‚̌Ăяo‚µŠm”F‚𖳌ø‚É‚·‚é + // スレッド間の呌び出し確認を無効にする Control::CheckForIllegalCrossThreadCalls = false; if(MTWS.LEFT > 0 && MTWS.TOP > 0){ @@ -2326,7 +2326,7 @@ private: System::Windows::Forms::ToolStripMenuItem^ toolStripMenuItemWordWrap; WatchHistory = gcnew array(TIME_OUT/5 * 3); InputHistory = gcnew array(TIME_OUT/5 * 3); - // richtextbox‚̃fƒtƒHƒ‹ƒgfalseƒoƒO‘΍ô + // richtextboxのデフォルトfalseバグ察策 richTextBoxLog->AutoWordSelection = true; richTextBoxLog->AutoWordSelection = false; @@ -2339,7 +2339,7 @@ private: System::Windows::Forms::ToolStripMenuItem^ toolStripMenuItemWordWrap; this->toolStripMenuItemVersion_Click(nullptr, nullptr); if(MTINFO.SERVER_MODE){ - // ƒT[ƒoƒ‚[ƒh‹N“® + // サヌバモヌド起動 MTOPTION.CONNECTION_TYPE = CT_SERVER; if(MTINFO.SERVER_MODE_PORT > 0){ MTOPTION.OPEN_PORT = MTINFO.SERVER_MODE_PORT; @@ -2349,7 +2349,7 @@ private: System::Windows::Forms::ToolStripMenuItem^ toolStripMenuItemWordWrap; s->ShowDialog(this); if(!File::Exists(gcnew String(MTOPTION.GAME_EXE))){ - MessageBox::Show("ŽÀsƒtƒ@ƒCƒ‹‚̃pƒX‚ðÝ’肵‚Ä‚­‚Ÿ‚³‚¢B", "ƒQ[ƒ€‚ª‚ ‚è‚Ü‚¹‚ñ"); + MessageBox::Show("実行ファむルのパスを蚭定しおください。", "ゲヌムがありたせん"); OptionForm^ o = gcnew OptionForm; o->GameExePathError = true; @@ -2371,7 +2371,7 @@ private: System::Windows::Forms::ToolStripMenuItem^ toolStripMenuItemWordWrap; } if(MTOPTION.CONNECTION_TYPE == CT_SERVER && MTINFO.ERRORED == false){ - if(MessageBox::Show("ƒT[ƒo‚ð—Ž‚Æ‚µ‚Ü‚·‚©H", "I—¹‚ÌŠm”F", MessageBoxButtons::YesNo, MessageBoxIcon::Question) == ::DialogResult::No){ + if(MessageBox::Show("サヌバを萜ずしたすか", "終了の確認", MessageBoxButtons::YesNo, MessageBoxIcon::Question) == ::DialogResult::No){ IsFormClosing = false; e->Cancel = true; return; @@ -2381,7 +2381,7 @@ private: System::Windows::Forms::ToolStripMenuItem^ toolStripMenuItemWordWrap; QuitWatch(true); CloseUdp(true); - // IPŽæ“Ÿ‚̃Lƒƒƒ“ƒZƒ‹ + // IP取埗のキャンセル if(GetIPClient != nullptr){ GetIPCancelled = true; GetIPClient->CancelAsync(); @@ -2421,7 +2421,7 @@ private: System::Windows::Forms::ToolStripMenuItem^ toolStripMenuItemWordWrap; } System::Void textBoxInput_KeyDown( Object^ sender, System::Windows::Forms::KeyEventArgs^ e ) { - // ƒ`ƒƒƒbƒg—š—ð‚©‚ç‘I‘ð + // チャット履歎から遞択 if(ChatHistory->Count > 0){ if(e->KeyCode == Keys::Up){ ChatHistoryNumber--; @@ -2450,9 +2450,9 @@ private: System::Windows::Forms::ToolStripMenuItem^ toolStripMenuItemWordWrap; } } - // ƒƒbƒZ[ƒW‘—M + // メッセヌゞ送信 if(e->KeyCode == Keys::Enter && textBoxInput->Text->Length > 0){ - // ƒ`ƒƒƒbƒg—š—ðXV + // チャット履歎曎新 if(ChatHistoryNumber < ChatHistory->Count){ if(ChatHistory[ChatHistoryNumber] != textBoxInput->Text){ ChatHistory->Add(textBoxInput->Text); @@ -2469,7 +2469,7 @@ private: System::Windows::Forms::ToolStripMenuItem^ toolStripMenuItemWordWrap; try{ if(e->Control && MTOPTION.CONNECTION_TYPE == CT_SERVER){ - // ’m + // 告知 BYTE len = (BYTE)(textBoxInput->Text->Length * 2); array^ msg = gcnew array(2 + len); @@ -2479,7 +2479,7 @@ private: System::Windows::Forms::ToolStripMenuItem^ toolStripMenuItemWordWrap; PacketSendAllMember(msg, 0); - WriteMessage("[ƒT[ƒo[’m]-------------------\n", SystemMessageColor); + WriteMessage("[サヌバヌ告知]-------------------\n", SystemMessageColor); WriteNotice(textBoxInput->Text); WriteMessage("-------------------------------\n", SystemMessageColor); } @@ -2487,10 +2487,10 @@ private: System::Windows::Forms::ToolStripMenuItem^ toolStripMenuItemWordWrap; AnalyzeCommand(); } else if(UDP != nullptr && ServerMode >= SM_MATCH){ - WriteMessage("ƒ`ƒƒƒbƒg‚Í‹ÖŽ~‚³‚ê‚Ä‚¢‚Ü‚·B\n", SystemMessageColor); + WriteMessage("チャットは犁止されおいたす。\n", SystemMessageColor); } else if(UDP != nullptr){ - // ƒ`ƒƒƒbƒg”­ŒŸ + // チャット発蚀 BYTE len = (BYTE)(textBoxInput->Text->Length * 2); array^ msg = gcnew array(4 + len); @@ -2563,26 +2563,26 @@ private: System::Windows::Forms::ToolStripMenuItem^ toolStripMenuItemWordWrap; if(index == 0){ int state = MemberList[0]->STATE; - // ‹xŒeó‘Ԃ̕ύX + // 䌑憩状態の倉曎 if(state == MS_FREE){ ChangeState((BYTE)MS_REST); - WriteMessage("‹xŒeó‘Ô‚ð•ÏX‚µ‚Ü‚µ‚œB > ƒIƒ“\n", SystemMessageColor); + WriteMessage("䌑憩状態を倉曎したした。 > オン\n", SystemMessageColor); } else if(state == MS_REST){ ChangeState((BYTE)MS_FREE); - WriteMessage("‹xŒeó‘Ô‚ð•ÏX‚µ‚Ü‚µ‚œB > ƒIƒt\n", SystemMessageColor); + WriteMessage("䌑憩状態を倉曎したした。 > オフ\n", SystemMessageColor); } else if(state == MS_VS){ - WriteMessage("‘ΐí‚𒆎~‚µ‚Ü‚·B\n", SystemMessageColor); + WriteMessage("察戊を䞭止したす。\n", SystemMessageColor); QuitGame(); } else if(state == MS_WATCH || state == MS_COUCH){ - WriteMessage("ŠÏí‚𒆎~‚µ‚Ü‚·B\n", SystemMessageColor); + WriteMessage("芳戊を䞭止したす。\n", SystemMessageColor); QuitWatch(true); } } else if(index > 0 && UDP != nullptr){ - // ó‘Ԃ̍Ď擟 + // 状態の再取埗 array^ send = gcnew array(3){ PH_REQ_STATE }; Array::Copy(BitConverter::GetBytes(MemberList[index]->ID), 0, send, 1, 2); @@ -2649,14 +2649,14 @@ private: System::Windows::Forms::ToolStripMenuItem^ toolStripMenuItemWordWrap; this->Close(); } - // ƒuƒbƒNƒ}[ƒN’ljÁ + // ブックマヌク远加 System::Void toolStripMenuItemAddBookMark_Click(System::Object^ sender, System::EventArgs^ e) { if((MTOPTION.BOOKMARK_COUNT - MTOPTION.BOOKMARK_DELETED_COUNT) > 9) { - MessageBox::Show("‚±‚êˆÈãƒuƒbƒNƒ}[ƒN‚ð’ljÁ‚Å‚«‚Ü‚¹‚ñB\nƒuƒbƒNƒ}[ƒN‚͍őå10ŒÂ‚Ü‚Å“o˜^‚Å‚«‚Ü‚·B\n\n’ljÁ‚·‚é‚ɂ́AƒuƒbƒNƒ}[ƒN‚̍폜‚ðs‚Á‚Ä‚­‚Ÿ‚³‚¢B", "ƒuƒbƒNƒ}[ƒN‚̒ljÁ", MessageBoxButtons::OK, MessageBoxIcon::Exclamation); + MessageBox::Show("これ以䞊ブックマヌクを远加できたせん。\nブックマヌクは最倧10個たで登録できたす。\n\n远加するには、ブックマヌクの削陀を行っおください。", "ブックマヌクの远加", MessageBoxButtons::OK, MessageBoxIcon::Exclamation); return; } if(MTOPTION.CONNECTION_TYPE == CT_SERVER || MTOPTION.CONNECTION_TYPE == CT_FREE ){ - MessageBox::Show("SERVERƒ‚[ƒhA\nFREEƒ‚[ƒh‚̓uƒbƒNƒ}[ƒN‚ɒljÁ‚Å‚«‚Ü‚¹‚ñB", "ƒuƒbƒNƒ}[ƒN‚̒ljÁ", MessageBoxButtons::OK, MessageBoxIcon::Exclamation); + MessageBox::Show("SERVERモヌド、\nFREEモヌドはブックマヌクに远加できたせん。", "ブックマヌクの远加", MessageBoxButtons::OK, MessageBoxIcon::Exclamation); return; } @@ -2671,10 +2671,10 @@ private: System::Windows::Forms::ToolStripMenuItem^ toolStripMenuItemWordWrap; toolStripMenuItemBookMark->Tag = MTOPTION.BOOKMARK_COUNT; toolStripMenuItemBookMark->Click += gcnew System::EventHandler(this, &MainForm::toolStripMenuItemBookMark_Click); - // íœƒƒjƒ…[ + // 削陀メニュヌ toolStripMenuItemDelBookMark = (gcnew System::Windows::Forms::ToolStripMenuItem()); toolStripMenuItemBookMark->DropDownItems->Add(toolStripMenuItemDelBookMark); - toolStripMenuItemDelBookMark->Text = L"íœ(&D)"; + toolStripMenuItemDelBookMark->Text = L"削陀(&D)"; toolStripMenuItemDelBookMark->Tag = L"toolStripMenuItemBookMark" + MTOPTION.BOOKMARK_COUNT; toolStripMenuItemDelBookMark->Click += gcnew System::EventHandler(this, &MainForm::toolStripMenuItemDelBookMark_Click); @@ -2693,11 +2693,11 @@ private: System::Windows::Forms::ToolStripMenuItem^ toolStripMenuItemWordWrap; SaveMTOption(); } - // ƒuƒbƒNƒ}[ƒNÚ‘± + // ブックマヌク接続 System::Void toolStripMenuItemBookMark_Click(System::Object^ sender, System::EventArgs^ e) { UINT tmpInt = (UINT)((ToolStripMenuItem^)sender)->Tag; - if(MessageBox::Show(((ToolStripMenuItem^)sender)->Text+" ‚ɐڑ±‚µ‚Ü‚·B\n‚æ‚낵‚¢‚Å‚·‚©H", "ƒuƒbƒNƒ}[ƒNÚ‘±", MessageBoxButtons::YesNo, MessageBoxIcon::Question) == ::DialogResult::Yes){ + if(MessageBox::Show(((ToolStripMenuItem^)sender)->Text+" に接続したす。\nよろしいですか", "ブックマヌク接続", MessageBoxButtons::YesNo, MessageBoxIcon::Question) == ::DialogResult::Yes){ }else{ return; } @@ -2708,12 +2708,12 @@ private: System::Windows::Forms::ToolStripMenuItem^ toolStripMenuItemWordWrap; Restart(); } - // ƒuƒbƒNƒ}[ƒNíœ + // ブックマヌク削陀 System::Void toolStripMenuItemDelBookMark_Click(System::Object^ sender, System::EventArgs^ e) { Object^ tmpTag; tmpTag = ((ToolStripMenuItem^)sender)->Tag; UINT tmpInt = (UINT)toolStripMenuItemBookMarkMenu->DropDownItems[(String^)tmpTag]->Tag; - if(MessageBox::Show((String^)toolStripMenuItemBookMarkMenu->DropDownItems[(String^)tmpTag]->Text+" ‚ðƒuƒbƒNƒ}[ƒN‚©‚çíœ‚µ‚Ü‚·B\n‚æ‚낵‚¢‚Å‚·‚©H", "ƒuƒbƒNƒ}[ƒN‚̍폜", MessageBoxButtons::YesNo, MessageBoxIcon::Question) == ::DialogResult::Yes){ + if(MessageBox::Show((String^)toolStripMenuItemBookMarkMenu->DropDownItems[(String^)tmpTag]->Text+" をブックマヌクから削陀したす。\nよろしいですか", "ブックマヌクの削陀", MessageBoxButtons::YesNo, MessageBoxIcon::Question) == ::DialogResult::Yes){ toolStripMenuItemBookMarkMenu->DropDownItems->Remove(toolStripMenuItemBookMarkMenu->DropDownItems[(String^)tmpTag]); MTOPTION.BOOKMARK_DELETED_COUNT++; @@ -2726,14 +2726,14 @@ private: System::Windows::Forms::ToolStripMenuItem^ toolStripMenuItemWordWrap; } } - // ƒQ[ƒ€‚Ì‹N“® + // ゲヌムの起動 System::Void GameStartToolStripMenuItem_Click(System::Object^ sender, System::EventArgs^ e) { StartGame(RT_FREE); } - // ƒQ[ƒ€‚Ì‹N“®(ƒŠƒvƒŒƒC‚ð•Û‘¶‚µ‚È‚¢) + // ゲヌムの起動(リプレむを保存しない) System::Void GameStartNoReplayToolStripMenuItem_Click(System::Object^ sender, System::EventArgs^ e) { bool primary = 0; - // ƒŠƒvƒŒƒC•Û‘¶ON‚È‚çˆêŽž“I–³Œø‰» + // リプレむ保存ONなら䞀時的無効化 if(toolStripMenuItemRecordReplay->Checked == 1) { primary = 1; MTOPTION.RECORD_REPLAY = 0; @@ -2742,22 +2742,22 @@ private: System::Windows::Forms::ToolStripMenuItem^ toolStripMenuItemWordWrap; StartGame(RT_FREE); if(primary == 1) { - // ‹N“®‘O‚É–ß‚µ‚Ä‚µ‚Ü‚€‚Ì–hŽ~ + // 起動前に戻しおしたうの防止 Thread::Sleep(100); MTOPTION.RECORD_REPLAY = toolStripMenuItemRecordReplay->Checked; } } - // Ä‹N“® + // 再起動 System::Void RestartToolStripMenuItem_Click(System::Object^ sender, System::EventArgs^ e) { if(MTOPTION.CONNECTION_TYPE == CT_SERVER) { - if(MessageBox::Show("ƒT[ƒo‚ð—Ž‚Æ‚µ‚Ü‚·B\n‚æ‚낵‚¢‚Å‚·‚©H", "Ä‹N“®", MessageBoxButtons::YesNo, MessageBoxIcon::Question) == ::DialogResult::Yes){ + if(MessageBox::Show("サヌバを萜ずしたす。\nよろしいですか", "再起動", MessageBoxButtons::YesNo, MessageBoxIcon::Question) == ::DialogResult::Yes){ }else{ return; } } if(MTOPTION.CONNECTION_TYPE == CT_HOST || MTOPTION.CONNECTION_TYPE == CT_CLIENT){ - if(MessageBox::Show("‰ñü‚ðØ’f‚µ‚Ü‚·B\n‚æ‚낵‚¢‚Å‚·‚©H", "Ä‹N“®", MessageBoxButtons::YesNo, MessageBoxIcon::Question) == ::DialogResult::Yes){ + if(MessageBox::Show("回線を切断したす。\nよろしいですか", "再起動", MessageBoxButtons::YesNo, MessageBoxIcon::Question) == ::DialogResult::Yes){ }else{ return; } @@ -2766,17 +2766,17 @@ private: System::Windows::Forms::ToolStripMenuItem^ toolStripMenuItemWordWrap; Restart(); } - // ‘ÞŽº + // 退宀 System::Void LeaveToolStripMenuItem_Click(System::Object^ sender, System::EventArgs^ e) { if(MTOPTION.CONNECTION_TYPE == CT_SERVER) { - if(MessageBox::Show("ƒT[ƒo‚ð—Ž‚Æ‚µ‚Ü‚·B\n‚æ‚낵‚¢‚Å‚·‚©H", "‘ÞŽº", MessageBoxButtons::YesNo, MessageBoxIcon::Question) == ::DialogResult::Yes){ + if(MessageBox::Show("サヌバを萜ずしたす。\nよろしいですか", "退宀", MessageBoxButtons::YesNo, MessageBoxIcon::Question) == ::DialogResult::Yes){ }else{ return; } } if(MTOPTION.CONNECTION_TYPE == CT_HOST || MTOPTION.CONNECTION_TYPE == CT_CLIENT){ - if(MessageBox::Show("‰ñü‚ðØ’f‚µ‚Ü‚·B\n‚æ‚낵‚¢‚Å‚·‚©H", "‘ÞŽº", MessageBoxButtons::YesNo, MessageBoxIcon::Question) == ::DialogResult::Yes){ + if(MessageBox::Show("回線を切断したす。\nよろしいですか", "退宀", MessageBoxButtons::YesNo, MessageBoxIcon::Question) == ::DialogResult::Yes){ }else{ return; } @@ -2785,33 +2785,33 @@ private: System::Windows::Forms::ToolStripMenuItem^ toolStripMenuItemWordWrap; Leave(true); } - // ‹xŒeó‘Ԃ̐؂è‘Ö‚Š + // 䌑憩状態の切り替え System::Void RestToolStripMenuItem_Click(System::Object^ sender, System::EventArgs^ e) { if(MTOPTION.CONNECTION_TYPE == CT_FREE) return; if(MemberList[0]->STATE == MS_FREE){ ChangeState((BYTE)MS_REST); - WriteMessage("‹xŒeó‘Ô‚ð•ÏX‚µ‚Ü‚µ‚œB > ƒIƒ“\n", SystemMessageColor); + WriteMessage("䌑憩状態を倉曎したした。 > オン\n", SystemMessageColor); } else if(MemberList[0]->STATE == MS_REST){ ChangeState((BYTE)MS_FREE); - WriteMessage("‹xŒeó‘Ô‚ð•ÏX‚µ‚Ü‚µ‚œB > ƒIƒt\n", SystemMessageColor); + WriteMessage("䌑憩状態を倉曎したした。 > オフ\n", SystemMessageColor); } } - // ‘ΐí•åWó‘Ԃ̐؂è‘Ö‚Š + // 察戊募集状態の切り替え System::Void SeekToolStripMenuItem_Click(System::Object^ sender, System::EventArgs^ e) { ChangeSeek(); } - // ƒƒO‚Ì‘Síœ + // ログの党削陀 System::Void ClearToolStripMenuItem_Click(System::Object^ sender, System::EventArgs^ e) { ClearLog(); } - // “–‚œ‚è”»’è‚Ì•\ŽŠØ‘Ö + // 圓たり刀定の衚瀺切替 System::Void ToggleHitJudgeToolStripMenuItem_Click(System::Object^ sender, System::EventArgs^ e) { - // ƒQ[ƒ€‹N“®’†‚È‚ç‘ŠŽž•ÏX + // ゲヌム起動䞭なら即時倉曎 MTOPTION.HIT_JUDGE ^= 1; if(MTINFO.INITIALIZED && MTINFO.PROCESS != NULL){ DWORD b = MTOPTION.HIT_JUDGE; @@ -2841,7 +2841,7 @@ private: System::Windows::Forms::ToolStripMenuItem^ toolStripMenuItemWordWrap; Monitor::Exit(richTextBoxLog); } - WriteMessage(String::Format("\"{0}\"‚ɃƒO‚ð•Û‘¶‚µ‚Ü‚µ‚œB\n", file), SystemMessageColor); + WriteMessage(String::Format("\"{0}\"にログを保存したした。\n", file), SystemMessageColor); } System::Void toolStripMenuItemReplay_Click(System::Object^ sender, System::EventArgs^ e) { @@ -2878,16 +2878,16 @@ private: System::Windows::Forms::ToolStripMenuItem^ toolStripMenuItemWordWrap; } } - // IPƒAƒhƒŒƒX‚ÌŽæ“ŸƒRƒ}ƒ“ƒh + // IPアドレスの取埗コマンド System::Void GetIPToolStripMenuItem_Click(System::Object^ sender, System::EventArgs^ e) { GetIPAddress(); } - // ƒƒO‚̃XƒNƒ[ƒ‹‚ðŒÅ’è + // ログのスクロヌルを固定 System::Void LogLockToolStripMenuItem_Click(System::Object^ sender, System::EventArgs^ e) { LogLockToolStripMenuItem->Checked ^= 1; MTOPTION.LOG_LOCK = LogLockToolStripMenuItem->Checked; } - // ƒƒ“ƒo[ƒŠƒXƒg‚̍XVƒRƒ}ƒ“ƒh + // メンバヌリストの曎新コマンド System::Void ReloadListToolStripMenuItem_Click(System::Object^ sender, System::EventArgs^ e) { ReloadList(); } @@ -2950,12 +2950,12 @@ private: System::Windows::Forms::ToolStripMenuItem^ toolStripMenuItemWordWrap; } System::Void richTextBoxLog_LinkClicked(System::Object^ sender, System::Windows::Forms::LinkClickedEventArgs^ e) { - // ‹­§I—¹‘΍ô + // 匷制終了察策 try{ Process::Start(e->LinkText); } catch(Exception^){ - WriteMessage("•s³‚È•¶Žš—ñƒŠƒ“ƒN‚Å‚·B\n", ErrorMessageColor); + WriteMessage("䞍正な文字列リンクです。\n", ErrorMessageColor); } } @@ -2976,9 +2976,9 @@ private: System::Windows::Forms::ToolStripMenuItem^ toolStripMenuItemWordWrap; } - // “_–Ŋ֐” + // 点滅関数 System::Void WindowFlash() { - // ƒEƒBƒ“ƒhƒE“_–Å + // りィンドり点滅 FLASHWINFO stfi; ZeroMemory(&stfi, sizeof(FLASHWINFO)); stfi.cbSize = sizeof(FLASHWINFO); @@ -2998,7 +2998,7 @@ private: System::Windows::Forms::ToolStripMenuItem^ toolStripMenuItemWordWrap; array^ send = gcnew array(3); if(state == MS_FREE || state == MS_REST){ - // ŠÏíŠJŽn + // 芳戊開始 if(state == MS_FREE) ChangeState((BYTE)MS_WATCH); if(state == MS_REST) ChangeState((BYTE)MS_COUCH); @@ -3010,7 +3010,7 @@ private: System::Windows::Forms::ToolStripMenuItem^ toolStripMenuItemWordWrap; Array::Copy(BitConverter::GetBytes(MemberList[0]->ID), 0, send, 1, 2); UDP->BeginSend(send, send->Length, WatchTarget, gcnew AsyncCallback(SendPackets), UDP); - toolStripMenuItemWatch->Text = gcnew String("ŠÏí‚ð‚â‚ß‚é"); + toolStripMenuItemWatch->Text = gcnew String("芳戊をやめる"); } else{ QuitWatch(true); @@ -3029,7 +3029,7 @@ private: System::Windows::Forms::ToolStripMenuItem^ toolStripMenuItemWordWrap; UDP->BeginSend(ping, 1, MemberList[si]->IP_EP, gcnew AsyncCallback(SendPackets), UDP); } - // ƒLƒbƒN + // キック System::Void toolStripMenuItemKick_Click(System::Object^ sender, System::EventArgs^ e) { if(listBoxMember->SelectedIndex == -1 || MTOPTION.CONNECTION_TYPE != CT_SERVER){ return; @@ -3038,19 +3038,19 @@ private: System::Windows::Forms::ToolStripMenuItem^ toolStripMenuItemWordWrap; int index = listBoxMember->SelectedIndex; int id = MemberList[index]->ID; - if(MessageBox::Show(String::Format("[ {0} ](ID:{1})‚ðƒLƒbƒN‚µ‚Ü‚·B\n‚æ‚낵‚¢‚Å‚·‚©H", MemberList[index]->NAME, MemberList[index]->ID), "KICK", MessageBoxButtons::YesNo, MessageBoxIcon::Question) == ::DialogResult::Yes){ + if(MessageBox::Show(String::Format("[ {0} ](ID:{1})をキックしたす。\nよろしいですか", MemberList[index]->NAME, MemberList[index]->ID), "KICK", MessageBoxButtons::YesNo, MessageBoxIcon::Question) == ::DialogResult::Yes){ }else{ return; } try{ - // –{l‚É’Ê’m + // 本人に通知 array^ send = gcnew array(3){ PH_LOST, 0xFF, 0xFF }; UDP->BeginSend(send, send->Length, MemberList[index]->IP_EP, gcnew AsyncCallback(SendPackets), UDP); if(ListView != LV_BLIND){ WriteTime(0, SystemMessageColor); - WriteMessage(String::Format("{0}(ID:{1})‚ðƒLƒbƒN‚µ‚Ü‚µ‚œB\n", MemberList[index]->NAME, MemberList[index]->ID), SystemMessageColor); + WriteMessage(String::Format("{0}(ID:{1})をキックしたした。\n", MemberList[index]->NAME, MemberList[index]->ID), SystemMessageColor); } if(MemberList[0]->STATE == MS_WATCH || MemberList[0]->STATE == MS_COUCH){ if(TargetID == MemberList[index]->ID){ @@ -3058,18 +3058,18 @@ private: System::Windows::Forms::ToolStripMenuItem^ toolStripMenuItemWordWrap; } } - // ƒOƒbƒoƒC + // グッバむ MemberList->RemoveAt(index); listBoxMember->Items->RemoveAt(index); - // ‘Œ‚̃ƒ“ƒo[‚É’Ê’m + // 他のメンバヌに通知 array^ quit = gcnew array(3){ PH_QUIT }; Array::Copy(BitConverter::GetBytes(id), 0, quit, 1, 2); for(int i = 1; i < MemberList->Count; i++){ UDP->BeginSend(quit, quit->Length, MemberList[i]->IP_EP, gcnew AsyncCallback(SendPackets), UDP); if(MTINFO.DEBUG){ - WriteMessage(String::Format("{0}‚É’Ê’m\n", MemberList[i]->ID), DebugMessageColor); + WriteMessage(String::Format("{0}に通知\n", MemberList[i]->ID), DebugMessageColor); } } } @@ -3123,7 +3123,7 @@ private: System::Windows::Forms::ToolStripMenuItem^ toolStripMenuItemWordWrap; String^ extension = Path::GetExtension(file[0])->ToLower(); FileVersionInfo^ info = FileVersionInfo::GetVersionInfo(file[0]); - if(extension == ".mtr" || (extension == ".exe" && (info->FileDescription == "‚Q‚cŠi“¬ƒcƒN[ƒ‹2nd." || info->FileDescription == "‚Q‚cŠi“¬ƒcƒN[ƒ‹‚X‚T"))){ + if(extension == ".mtr" || (extension == ".exe" && (info->FileDescription == "栌闘ツクヌル2nd." || info->FileDescription == "栌闘ツクヌル"))){ e->Effect = DragDropEffects::All; } } @@ -3147,18 +3147,18 @@ private: System::Windows::Forms::ToolStripMenuItem^ toolStripMenuItemWordWrap; _tcscpy_s(MTOPTION.GAME_EXE, static_cast(mp.ToPointer())); Runtime::InteropServices::Marshal::FreeHGlobal(mp); - // ini‚̃pƒX‚𒲂ׂé + // iniのパスを調べる TCHAR ini[_MAX_PATH], dir[_MAX_PATH], drive[_MAX_DRIVE]; _tsplitpath_s(MTOPTION.GAME_EXE, drive, _MAX_DRIVE, dir, _MAX_DIR, NULL, 0, NULL, 0); - if(info->FileDescription == "‚Q‚cŠi“¬ƒcƒN[ƒ‹2nd."){ + if(info->FileDescription == "栌闘ツクヌル2nd."){ b2nd = true; _stprintf_s(ini, _T("%s%sgame.ini"), drive, dir); } else{ b2nd = false; - _stprintf_s(ini, _T("%s%s‚Q‚cŠi“¬ƒcƒN[ƒ‹‚X‚T.ini"), drive, dir); + _stprintf_s(ini, _T("%s%s栌闘ツクヌル.ini"), drive, dir); } if(File::Exists(gcnew String(ini))){ @@ -3168,15 +3168,15 @@ private: System::Windows::Forms::ToolStripMenuItem^ toolStripMenuItemWordWrap; MTOPTION.TIMER = GetPrivateProfileInt(_T("GamePlay"), _T("Editor.TestPlay.time"), 0, ini); } else{ - MTOPTION.MAX_STAGE = GetPrivateProfileInt(_T("ƒQ[ƒ€Ý’è"), _T("Editer.TestPlay.BackGroundNb"), 0, ini) + 1; + MTOPTION.MAX_STAGE = GetPrivateProfileInt(_T("ゲヌム蚭定"), _T("Editer.TestPlay.BackGroundNb"), 0, ini) + 1; MTOPTION.ROUND = 2; - MTOPTION.TIMER = GetPrivateProfileInt(_T("ƒQ[ƒ€Ý’è"), _T("Editer.TestPlay.time"), 0, ini); + MTOPTION.TIMER = GetPrivateProfileInt(_T("ゲヌム蚭定"), _T("Editer.TestPlay.time"), 0, ini); } MTOPTION.STAGE_SELECT = MTOPTION.MAX_STAGE == 1 ? 1 : 0; } - WriteMessage(String::Format("ƒvƒŒƒC‚·‚éƒQ[ƒ€‚ð\"{0}\"‚ɕύX‚µ‚Ü‚µ‚œB\n", Path::GetFileNameWithoutExtension(file[0])), SystemMessageColor); + WriteMessage(String::Format("プレむするゲヌムを\"{0}\"に倉曎したした。\n", Path::GetFileNameWithoutExtension(file[0])), SystemMessageColor); } else{ Option->SetGameExePath(file[0]); @@ -3185,7 +3185,7 @@ private: System::Windows::Forms::ToolStripMenuItem^ toolStripMenuItemWordWrap; } } - // ƒvƒƒtƒ@ƒCƒ‹•ÏX + // プロファむル倉曎 System::Void toolStripDropDownItemProfile_Click(System::Object^ sender, System::EventArgs^ e) { if(((ToolStripDropDownItem^)sender)->Text == gcnew String(MTOPTION.PROFILE)){ return; @@ -3203,7 +3203,7 @@ private: System::Windows::Forms::ToolStripMenuItem^ toolStripMenuItemWordWrap; System::Void toolStripMenuItemSeek_Click(System::Object^ sender, System::EventArgs^ e) { this->SeekToolStripMenuItem_Click(nullptr, nullptr); } - // Ž©“®‹xŒe—LŒø + // 自動䌑憩有効 System::Void toolStripMenuItemAutoRestEnable_Click(System::Object^ sender, System::EventArgs^ e) { toolStripMenuItemAutoRestEnable->Checked ^= 1; MTOPTION.AUTO_REST = toolStripMenuItemAutoRestEnable->Checked; @@ -3248,7 +3248,7 @@ private: System::Windows::Forms::ToolStripMenuItem^ toolStripMenuItemWordWrap; SetAutoRestTime(120); toolStripMenuItemAutoRestTime120->Checked = 1; } - // ƒƒO‚̃eƒLƒXƒg‚ðÜ‚è•Ô‚· + // ログのテキストを折り返す System::Void toolStripMenuItemWordWrap_Click(System::Object^ sender, System::EventArgs^ e) { ChangeLogWordWrap(); } diff --git a/LilithPort/OptionForm.cpp b/LilithPort/OptionForm.cpp index 9967dba..ac3637d 100644 --- a/LilithPort/OptionForm.cpp +++ b/LilithPort/OptionForm.cpp @@ -1,4 +1,4 @@ -#include "stdafx.h" +#include "stdafx.h" #include "OptionForm.h" #include "MainForm.h" @@ -10,16 +10,16 @@ void OptionForm::SaveOption(bool apply){ try{ FileVersionInfo^ info = FileVersionInfo::GetVersionInfo(textBoxGameExe->Text); - if(info->FileDescription != "‚Q‚cŠi“¬ƒcƒN[ƒ‹2nd." && info->FileDescription != "‚Q‚cŠi“¬ƒcƒN[ƒ‹‚X‚T"){ + if(info->FileDescription != "栌闘ツクヌル2nd." && info->FileDescription != "栌闘ツクヌル"){ throw gcnew Exception; } } catch(Exception^){ - textBoxGameExe->Text = gcnew String("Ši“¬ƒcƒN[ƒ‹‚ÌŽÀsƒtƒ@ƒCƒ‹‚Å‚Í‚ ‚è‚Ü‚¹‚ñ"); + textBoxGameExe->Text = gcnew String("栌闘ツクヌルの実行ファむルではありたせん"); } IntPtr mp; - // ƒpƒX + // パス mp = Runtime::InteropServices::Marshal::StringToHGlobalAuto(textBoxGameExe->Text); _tcscpy_s(MTOPTION.GAME_EXE, static_cast(mp.ToPointer())); Runtime::InteropServices::Marshal::FreeHGlobal(mp); @@ -73,7 +73,7 @@ void OptionForm::SaveOption(bool apply){ MTOPTION.SHOW_GAME_OPTION = checkBoxShowGameOption->Checked; MTOPTION.SHOW_RESULT = checkBoxShowResult->Checked; - // ƒRƒƒ“ƒg + // コメント if(textBoxComment->Text != gcnew String(MTOPTION.COMMENT)){ mp = Runtime::InteropServices::Marshal::StringToHGlobalAuto(textBoxComment->Text); _tcscpy_s(MTOPTION.COMMENT, static_cast(mp.ToPointer())); @@ -82,7 +82,7 @@ void OptionForm::SaveOption(bool apply){ parent->ChangeComment(textBoxComment->Text); } - // ƒQ[ƒ€ + // ゲヌム MTOPTION.MAX_STAGE = (UINT)numericUpDownMaxStage->Value; MTOPTION.STAGE_SELECT = (UINT)numericUpDownStageSelect->Value; MTOPTION.ROUND = (UINT)numericUpDownRound->Value; @@ -109,11 +109,11 @@ void OptionForm::SaveOption(bool apply){ MTOPTION.REPLAY_VERSION = 1; } - // “–‚œ‚è”»’è + // 圓たり刀定 if(MTOPTION.HIT_JUDGE != checkBoxHitJudge->Checked){ MTOPTION.HIT_JUDGE = checkBoxHitJudge->Checked; - // ƒQ[ƒ€‹N“®’†‚È‚ç‘ŠŽž•ÏX + // ゲヌム起動䞭なら即時倉曎 if(MTINFO.INITIALIZED && MTINFO.PROCESS != NULL){ DWORD b = MTOPTION.HIT_JUDGE; @@ -126,13 +126,13 @@ void OptionForm::SaveOption(bool apply){ } } - // Ú×Ý’è - // ”­ŒŸ‚ŃEƒBƒ“ƒhƒE‚ð“_–Å + // 詳现蚭定 + // 発蚀でりィンドりを点滅 MTOPTION.TALK_FLASH = checkBoxTalkFlash->Checked; - // –Œ‘O‚ªŒÄ‚΂ꂜ‚çƒEƒBƒ“ƒhƒE‚ð“_–Å + // 名前が呌ばれたらりィンドりを点滅 MTOPTION.NAME_FLASH = checkBoxNameFlash->Checked; - //@F + // 色 MTCOLOR.SERVER_NAME = buttonServerName->ForeColor.ToArgb(); MTCOLOR.HOST_NAME = buttonHostName->ForeColor.ToArgb(); MTCOLOR.CLIENT_NAME = buttonClientName->ForeColor.ToArgb(); @@ -148,10 +148,10 @@ void OptionForm::SaveOption(bool apply){ MTCOLOR.COMMENT_BACK = buttonCommentBack->BackColor.ToArgb(); MTCOLOR.SECRET = buttonSecret->ForeColor.ToArgb(); - // F‚𔜉f‚³‚¹‚é + // 色を反映させる parent->ResetColor(); - // ’l‚̃`ƒFƒbƒN + // 倀のチェック CheckMTOption(); if(apply){ @@ -173,35 +173,35 @@ void OptionForm::CloseOption(){ parent->ChangeProfileEnabled(); } bool OptionForm::CheckTextProfileName(String^ buf){ - // ƒvƒƒtƒ@ƒCƒ‹–ŒƒoƒŠƒf[ƒVƒ‡ƒ“ + // プロファむル名バリデヌション String^ mes; if(buf == gcnew String(MTOPTION.PROFILE)){ return true; } if(buf->Length == 0){ - mes = "ƒvƒƒtƒ@ƒCƒ‹–Œ‚ª‹ó—“‚Å‚·B"; + mes = "プロファむル名が空欄です。"; } if(buf->Contains(",") || buf->Contains("[") || buf->Contains("]")){ - mes = "ƒvƒƒtƒ@ƒCƒ‹–Œ‚ÉŽg—p‚Å‚«‚È‚¢•¶Žši, [ ]j‚ªŠÜ‚Ü‚ê‚Ä‚¢‚Ü‚·B"; + mes = "プロファむル名に䜿甚できない文字, [ ]が含たれおいたす。"; } for(int i=0; i < Profile::SystemSection->Length; i++){ if(buf == Profile::SystemSection[i]){ - mes = "‚»‚̃vƒƒtƒ@ƒCƒ‹–Œ‚ÍŽg—p‚Å‚«‚Ü‚¹‚ñB"; + mes = "そのプロファむル名は䜿甚できたせん。"; } } for(int i=0; i < Profile::ProfileList->Count; i++){ if(buf == Profile::ProfileList[i]){ - mes = "‚»‚̃vƒƒtƒ@ƒCƒ‹–Œ‚ÍŠù‚É‘¶Ý‚µ‚Ü‚·B"; + mes = "そのプロファむル名は既に存圚したす。"; } } if(mes != nullptr){ - MessageBox::Show(mes, "ƒvƒƒtƒ@ƒCƒ‹•Û‘¶", MessageBoxButtons::OK, MessageBoxIcon::Exclamation); + MessageBox::Show(mes, "プロファむル保存", MessageBoxButtons::OK, MessageBoxIcon::Exclamation); return true; } return false; } void OptionForm::DeleteProfile(String^ buf){ - // ƒvƒƒtƒ@ƒCƒ‹íœ + // プロファむル削陀 TCHAR bufProfile[MAX_ARRAY]; IntPtr mp = Runtime::InteropServices::Marshal::StringToHGlobalAuto(buf); _tcscpy_s(bufProfile, static_cast(mp.ToPointer())); @@ -211,7 +211,7 @@ void OptionForm::DeleteProfile(String^ buf){ SaveProfileOption(); } void OptionForm::OverWriteProfile(String^ buf){ - // ã‘‚«•Û‘¶ + // 䞊曞き保存 DeleteSection(MTOPTION.PROFILE); IntPtr mp = Runtime::InteropServices::Marshal::StringToHGlobalAuto(buf); diff --git a/LilithPort/OptionForm.h b/LilithPort/OptionForm.h index f18bfd5..c3dba3d 100644 --- a/LilithPort/OptionForm.h +++ b/LilithPort/OptionForm.h @@ -1,4 +1,4 @@ -#pragma once +#pragma once #include "stdafx.h" @@ -14,13 +14,13 @@ using namespace System::Diagnostics; namespace LilithPort { /// - /// OptionForm ‚ÌŠT—v + /// OptionForm の抂芁 /// - /// Œx: ‚±‚̃Nƒ‰ƒX‚Ì–Œ‘O‚ð•ÏX‚·‚éê‡A‚±‚̃Nƒ‰ƒX‚ªˆË‘¶‚·‚é‚·‚×‚Ä‚Ì .resx ƒtƒ@ƒCƒ‹‚ÉŠÖ˜A•t‚¯‚ç‚ê‚œ - /// ƒ}ƒl[ƒW ƒŠƒ\[ƒX ƒRƒ“ƒpƒCƒ‰ ƒc[ƒ‹‚ɑ΂µ‚Ä 'Resource File Name' ƒvƒƒpƒeƒB‚ð - /// •ÏX‚·‚é•K—v‚ª‚ ‚è‚Ü‚·B‚±‚̕ύX‚ðs‚í‚È‚¢‚ƁA - /// ƒfƒUƒCƒi‚ƁA‚±‚̃tƒH[ƒ€‚ÉŠÖ˜A•t‚¯‚ç‚ê‚œƒ[ƒJƒ‰ƒCƒYÏ‚݃Šƒ\[ƒX‚Æ‚ªA - /// ³‚µ‚­‘ŠŒÝ‚É—˜—p‚Å‚«‚È‚­‚È‚è‚Ü‚·B + /// è­Šå‘Š: このクラスの名前を倉曎する堎合、このクラスが䟝存するすべおの .resx ファむルに関連付けられた + /// マネヌゞ リ゜ヌス コンパむラ ツヌルに察しお 'Resource File Name' プロパティを + /// 倉曎する必芁がありたす。この倉曎を行わないず、 + /// デザむナず、このフォヌムに関連付けられたロヌカラむズ枈みリ゜ヌスずが、 + /// 正しく盞互に利甚できなくなりたす。 /// public ref class OptionForm : public System::Windows::Forms::Form { @@ -29,13 +29,13 @@ namespace LilithPort { { InitializeComponent(); // - //TODO: ‚±‚±‚ɃRƒ“ƒXƒgƒ‰ƒNƒ^ ƒR[ƒh‚ð’ljÁ‚µ‚Ü‚· + //TODO: ここにコンストラクタ コヌドを远加したす // } protected: /// - /// Žg—p’†‚̃Šƒ\[ƒX‚ð‚·‚×‚ÄƒNƒŠ[ƒ“ƒAƒbƒv‚µ‚Ü‚·B + /// 䜿甚䞭のリ゜ヌスをすべおクリヌンアップしたす。 /// ~OptionForm() { @@ -213,14 +213,14 @@ private: System::Windows::Forms::CheckBox^ checkBoxShowResult; private: /// - /// •K—v‚ȃfƒUƒCƒi•Ï”‚Å‚·B + /// 必芁なデザむナ倉数です。 /// System::ComponentModel::Container ^components; #pragma region Windows Form Designer generated code /// - /// ƒfƒUƒCƒi ƒTƒ|[ƒg‚É•K—v‚ȃƒ\ƒbƒh‚Å‚·B‚±‚̃ƒ\ƒbƒh‚Ì“à—e‚ð - /// ƒR[ƒh ƒGƒfƒBƒ^‚ŕύX‚µ‚È‚¢‚Å‚­‚Ÿ‚³‚¢B + /// デザむナ サポヌトに必芁なメ゜ッドです。このメ゜ッドの内容を + /// コヌド ゚ディタで倉曎しないでください。 /// void InitializeComponent(void) { @@ -426,7 +426,7 @@ private: System::Windows::Forms::CheckBox^ checkBoxShowResult; this->buttonApply->Name = L"buttonApply"; this->buttonApply->Size = System::Drawing::Size(64, 24); this->buttonApply->TabIndex = 8; - this->buttonApply->Text = L"“K—p"; + this->buttonApply->Text = L"適甚"; this->buttonApply->UseVisualStyleBackColor = true; this->buttonApply->Click += gcnew System::EventHandler(this, &OptionForm::buttonApply_Click); // @@ -436,13 +436,13 @@ private: System::Windows::Forms::CheckBox^ checkBoxShowResult; this->buttonCancel->Name = L"buttonCancel"; this->buttonCancel->Size = System::Drawing::Size(64, 24); this->buttonCancel->TabIndex = 9; - this->buttonCancel->Text = L"ƒLƒƒƒ“ƒZƒ‹"; + this->buttonCancel->Text = L"キャンセル"; this->buttonCancel->UseVisualStyleBackColor = true; this->buttonCancel->Click += gcnew System::EventHandler(this, &OptionForm::buttonCancel_Click); // // folderBrowserDialog1 // - this->folderBrowserDialog1->Description = L"ƒŠƒvƒŒƒC•Û‘¶ƒtƒHƒ‹ƒ_"; + this->folderBrowserDialog1->Description = L"リプレむ保存フォルダ"; // // colorDialog1 // @@ -464,7 +464,7 @@ private: System::Windows::Forms::CheckBox^ checkBoxShowResult; this->tabPageSound->Padding = System::Windows::Forms::Padding(3); this->tabPageSound->Size = System::Drawing::Size(369, 295); this->tabPageSound->TabIndex = 3; - this->tabPageSound->Text = L"‰¹º"; + this->tabPageSound->Text = L"音声"; this->tabPageSound->UseVisualStyleBackColor = true; // // groupBoxKeywordSound @@ -480,7 +480,7 @@ private: System::Windows::Forms::CheckBox^ checkBoxShowResult; this->groupBoxKeywordSound->Size = System::Drawing::Size(335, 96); this->groupBoxKeywordSound->TabIndex = 7; this->groupBoxKeywordSound->TabStop = false; - this->groupBoxKeywordSound->Text = L"ƒL[ƒ[ƒh‚ōж"; + this->groupBoxKeywordSound->Text = L"キヌワヌドで再生"; // // buttonKeywordSoundPlay // @@ -488,7 +488,7 @@ private: System::Windows::Forms::CheckBox^ checkBoxShowResult; this->buttonKeywordSoundPlay->Name = L"buttonKeywordSoundPlay"; this->buttonKeywordSoundPlay->Size = System::Drawing::Size(65, 20); this->buttonKeywordSoundPlay->TabIndex = 5; - this->buttonKeywordSoundPlay->Text = L"Ä¶"; + this->buttonKeywordSoundPlay->Text = L"再生"; this->buttonKeywordSoundPlay->UseVisualStyleBackColor = true; this->buttonKeywordSoundPlay->Click += gcnew System::EventHandler(this, &OptionForm::buttonKeywordSoundPlay_Click); // @@ -499,7 +499,7 @@ private: System::Windows::Forms::CheckBox^ checkBoxShowResult; this->checkBoxKeywordSound->Name = L"checkBoxKeywordSound"; this->checkBoxKeywordSound->Size = System::Drawing::Size(48, 16); this->checkBoxKeywordSound->TabIndex = 4; - this->checkBoxKeywordSound->Text = L"—LŒø"; + this->checkBoxKeywordSound->Text = L"有効"; this->checkBoxKeywordSound->UseVisualStyleBackColor = true; this->checkBoxKeywordSound->CheckedChanged += gcnew System::EventHandler(this, &OptionForm::ApplyButtonEnable); // @@ -531,7 +531,7 @@ private: System::Windows::Forms::CheckBox^ checkBoxShowResult; this->labelKeywordSound->Name = L"labelKeywordSound"; this->labelKeywordSound->Size = System::Drawing::Size(141, 12); this->labelKeywordSound->TabIndex = 1; - this->labelKeywordSound->Text = L"ƒRƒ“ƒ}( , )‚Å•¡”“o˜^‚ª‰Â”\"; + this->labelKeywordSound->Text = L"コンマ( , )で耇数登録が可胜"; // // textBoxKeyword // @@ -552,7 +552,7 @@ private: System::Windows::Forms::CheckBox^ checkBoxShowResult; this->groupBoxSeekSound->Size = System::Drawing::Size(336, 52); this->groupBoxSeekSound->TabIndex = 6; this->groupBoxSeekSound->TabStop = false; - this->groupBoxSeekSound->Text = L"‘ΐí•åW‚ōж"; + this->groupBoxSeekSound->Text = L"察戊募集で再生"; // // buttonSeekSoundPlay // @@ -560,7 +560,7 @@ private: System::Windows::Forms::CheckBox^ checkBoxShowResult; this->buttonSeekSoundPlay->Name = L"buttonSeekSoundPlay"; this->buttonSeekSoundPlay->Size = System::Drawing::Size(65, 20); this->buttonSeekSoundPlay->TabIndex = 3; - this->buttonSeekSoundPlay->Text = L"Ä¶"; + this->buttonSeekSoundPlay->Text = L"再生"; this->buttonSeekSoundPlay->UseVisualStyleBackColor = true; this->buttonSeekSoundPlay->Click += gcnew System::EventHandler(this, &OptionForm::buttonSeekSoundPlay_Click); // @@ -571,7 +571,7 @@ private: System::Windows::Forms::CheckBox^ checkBoxShowResult; this->checkBoxSeekSound->Name = L"checkBoxSeekSound"; this->checkBoxSeekSound->Size = System::Drawing::Size(48, 16); this->checkBoxSeekSound->TabIndex = 2; - this->checkBoxSeekSound->Text = L"—LŒø"; + this->checkBoxSeekSound->Text = L"有効"; this->checkBoxSeekSound->UseVisualStyleBackColor = true; this->checkBoxSeekSound->CheckedChanged += gcnew System::EventHandler(this, &OptionForm::ApplyButtonEnable); // @@ -607,7 +607,7 @@ private: System::Windows::Forms::CheckBox^ checkBoxShowResult; this->groupBoxTalkSound->Size = System::Drawing::Size(336, 52); this->groupBoxTalkSound->TabIndex = 5; this->groupBoxTalkSound->TabStop = false; - this->groupBoxTalkSound->Text = L"”­ŒŸ‚ōж"; + this->groupBoxTalkSound->Text = L"発蚀で再生"; // // buttonTalkSoundPlay // @@ -615,7 +615,7 @@ private: System::Windows::Forms::CheckBox^ checkBoxShowResult; this->buttonTalkSoundPlay->Name = L"buttonTalkSoundPlay"; this->buttonTalkSoundPlay->Size = System::Drawing::Size(65, 20); this->buttonTalkSoundPlay->TabIndex = 3; - this->buttonTalkSoundPlay->Text = L"Ä¶"; + this->buttonTalkSoundPlay->Text = L"再生"; this->buttonTalkSoundPlay->UseVisualStyleBackColor = true; this->buttonTalkSoundPlay->Click += gcnew System::EventHandler(this, &OptionForm::buttonTalkSoundPlay_Click); // @@ -626,7 +626,7 @@ private: System::Windows::Forms::CheckBox^ checkBoxShowResult; this->checkBoxTalkSound->Name = L"checkBoxTalkSound"; this->checkBoxTalkSound->Size = System::Drawing::Size(48, 16); this->checkBoxTalkSound->TabIndex = 2; - this->checkBoxTalkSound->Text = L"—LŒø"; + this->checkBoxTalkSound->Text = L"有効"; this->checkBoxTalkSound->UseVisualStyleBackColor = true; this->checkBoxTalkSound->CheckedChanged += gcnew System::EventHandler(this, &OptionForm::ApplyButtonEnable); // @@ -662,7 +662,7 @@ private: System::Windows::Forms::CheckBox^ checkBoxShowResult; this->groupBoxName->Size = System::Drawing::Size(336, 52); this->groupBoxName->TabIndex = 4; this->groupBoxName->TabStop = false; - this->groupBoxName->Text = L"ƒjƒbƒNƒl[ƒ€‚ªŒÄ‚΂ꂜ‚çÄ¶"; + this->groupBoxName->Text = L"ニックネヌムが呌ばれたら再生"; // // buttonNameSoundPlay // @@ -670,7 +670,7 @@ private: System::Windows::Forms::CheckBox^ checkBoxShowResult; this->buttonNameSoundPlay->Name = L"buttonNameSoundPlay"; this->buttonNameSoundPlay->Size = System::Drawing::Size(65, 20); this->buttonNameSoundPlay->TabIndex = 5; - this->buttonNameSoundPlay->Text = L"Ä¶"; + this->buttonNameSoundPlay->Text = L"再生"; this->buttonNameSoundPlay->UseVisualStyleBackColor = true; this->buttonNameSoundPlay->Click += gcnew System::EventHandler(this, &OptionForm::buttonNameSoundPlay_Click); // @@ -681,7 +681,7 @@ private: System::Windows::Forms::CheckBox^ checkBoxShowResult; this->checkBoxNameSound->Name = L"checkBoxNameSound"; this->checkBoxNameSound->Size = System::Drawing::Size(48, 16); this->checkBoxNameSound->TabIndex = 4; - this->checkBoxNameSound->Text = L"—LŒø"; + this->checkBoxNameSound->Text = L"有効"; this->checkBoxNameSound->UseVisualStyleBackColor = true; this->checkBoxNameSound->CheckedChanged += gcnew System::EventHandler(this, &OptionForm::ApplyButtonEnable); // @@ -717,7 +717,7 @@ private: System::Windows::Forms::CheckBox^ checkBoxShowResult; this->groupBoxEnterSound->Size = System::Drawing::Size(336, 52); this->groupBoxEnterSound->TabIndex = 3; this->groupBoxEnterSound->TabStop = false; - this->groupBoxEnterSound->Text = L"“üŽº‚Ì‚š’m‚点"; + this->groupBoxEnterSound->Text = L"入宀のお知らせ"; // // buttonEnterSoundPlay // @@ -725,7 +725,7 @@ private: System::Windows::Forms::CheckBox^ checkBoxShowResult; this->buttonEnterSoundPlay->Name = L"buttonEnterSoundPlay"; this->buttonEnterSoundPlay->Size = System::Drawing::Size(65, 20); this->buttonEnterSoundPlay->TabIndex = 4; - this->buttonEnterSoundPlay->Text = L"Ä¶"; + this->buttonEnterSoundPlay->Text = L"再生"; this->buttonEnterSoundPlay->UseVisualStyleBackColor = true; this->buttonEnterSoundPlay->Click += gcnew System::EventHandler(this, &OptionForm::buttonEnterSoundPlay_Click); // @@ -736,7 +736,7 @@ private: System::Windows::Forms::CheckBox^ checkBoxShowResult; this->checkBoxEnterSound->Name = L"checkBoxEnterSound"; this->checkBoxEnterSound->Size = System::Drawing::Size(48, 16); this->checkBoxEnterSound->TabIndex = 3; - this->checkBoxEnterSound->Text = L"—LŒø"; + this->checkBoxEnterSound->Text = L"有効"; this->checkBoxEnterSound->UseVisualStyleBackColor = true; this->checkBoxEnterSound->CheckedChanged += gcnew System::EventHandler(this, &OptionForm::ApplyButtonEnable); // @@ -772,7 +772,7 @@ private: System::Windows::Forms::CheckBox^ checkBoxShowResult; this->groupBoxNoticeSound->Size = System::Drawing::Size(336, 52); this->groupBoxNoticeSound->TabIndex = 2; this->groupBoxNoticeSound->TabStop = false; - this->groupBoxNoticeSound->Text = L"’m‚Ì‚š’m‚点"; + this->groupBoxNoticeSound->Text = L"告知のお知らせ"; // // buttonNoticeSoundPlay // @@ -780,7 +780,7 @@ private: System::Windows::Forms::CheckBox^ checkBoxShowResult; this->buttonNoticeSoundPlay->Name = L"buttonNoticeSoundPlay"; this->buttonNoticeSoundPlay->Size = System::Drawing::Size(65, 20); this->buttonNoticeSoundPlay->TabIndex = 4; - this->buttonNoticeSoundPlay->Text = L"Ä¶"; + this->buttonNoticeSoundPlay->Text = L"再生"; this->buttonNoticeSoundPlay->UseVisualStyleBackColor = true; this->buttonNoticeSoundPlay->Click += gcnew System::EventHandler(this, &OptionForm::buttonNoticeSoundPlay_Click); // @@ -791,7 +791,7 @@ private: System::Windows::Forms::CheckBox^ checkBoxShowResult; this->checkBoxNoticeSound->Name = L"checkBoxNoticeSound"; this->checkBoxNoticeSound->Size = System::Drawing::Size(48, 16); this->checkBoxNoticeSound->TabIndex = 3; - this->checkBoxNoticeSound->Text = L"—LŒø"; + this->checkBoxNoticeSound->Text = L"有効"; this->checkBoxNoticeSound->UseVisualStyleBackColor = true; this->checkBoxNoticeSound->CheckedChanged += gcnew System::EventHandler(this, &OptionForm::ApplyButtonEnable); // @@ -827,7 +827,7 @@ private: System::Windows::Forms::CheckBox^ checkBoxShowResult; this->groupBoxVSSound->Size = System::Drawing::Size(336, 52); this->groupBoxVSSound->TabIndex = 1; this->groupBoxVSSound->TabStop = false; - this->groupBoxVSSound->Text = L"‘ΐí‚Ì‚š’m‚点"; + this->groupBoxVSSound->Text = L"察戊のお知らせ"; // // buttonVSSoundPlay // @@ -835,7 +835,7 @@ private: System::Windows::Forms::CheckBox^ checkBoxShowResult; this->buttonVSSoundPlay->Name = L"buttonVSSoundPlay"; this->buttonVSSoundPlay->Size = System::Drawing::Size(65, 20); this->buttonVSSoundPlay->TabIndex = 4; - this->buttonVSSoundPlay->Text = L"Ä¶"; + this->buttonVSSoundPlay->Text = L"再生"; this->buttonVSSoundPlay->UseVisualStyleBackColor = true; this->buttonVSSoundPlay->Click += gcnew System::EventHandler(this, &OptionForm::buttonVSSoundPlay_Click); // @@ -846,7 +846,7 @@ private: System::Windows::Forms::CheckBox^ checkBoxShowResult; this->checkBoxVSSound->Name = L"checkBoxVSSound"; this->checkBoxVSSound->Size = System::Drawing::Size(48, 16); this->checkBoxVSSound->TabIndex = 3; - this->checkBoxVSSound->Text = L"—LŒø"; + this->checkBoxVSSound->Text = L"有効"; this->checkBoxVSSound->UseVisualStyleBackColor = true; this->checkBoxVSSound->CheckedChanged += gcnew System::EventHandler(this, &OptionForm::ApplyButtonEnable); // @@ -884,7 +884,7 @@ private: System::Windows::Forms::CheckBox^ checkBoxShowResult; this->tabPagePath->Padding = System::Windows::Forms::Padding(3); this->tabPagePath->Size = System::Drawing::Size(369, 295); this->tabPagePath->TabIndex = 0; - this->tabPagePath->Text = L"Šî–{"; + this->tabPagePath->Text = L"基本"; this->tabPagePath->UseVisualStyleBackColor = true; // // groupBoxProfile @@ -901,7 +901,7 @@ private: System::Windows::Forms::CheckBox^ checkBoxShowResult; this->groupBoxProfile->Size = System::Drawing::Size(330, 85); this->groupBoxProfile->TabIndex = 4; this->groupBoxProfile->TabStop = false; - this->groupBoxProfile->Text = L"ƒvƒƒtƒ@ƒCƒ‹"; + this->groupBoxProfile->Text = L"プロファむル"; // // buttonSaveProfile // @@ -909,7 +909,7 @@ private: System::Windows::Forms::CheckBox^ checkBoxShowResult; this->buttonSaveProfile->Name = L"buttonSaveProfile"; this->buttonSaveProfile->Size = System::Drawing::Size(45, 22); this->buttonSaveProfile->TabIndex = 7; - this->buttonSaveProfile->Text = L"•Û‘¶"; + this->buttonSaveProfile->Text = L"保存"; this->buttonSaveProfile->UseVisualStyleBackColor = true; this->buttonSaveProfile->Click += gcnew System::EventHandler(this, &OptionForm::buttonSaveProfile_Click); // @@ -919,7 +919,7 @@ private: System::Windows::Forms::CheckBox^ checkBoxShowResult; this->buttonAddProfile->Name = L"buttonAddProfile"; this->buttonAddProfile->Size = System::Drawing::Size(45, 22); this->buttonAddProfile->TabIndex = 6; - this->buttonAddProfile->Text = L"’ljÁ"; + this->buttonAddProfile->Text = L"远加"; this->buttonAddProfile->UseVisualStyleBackColor = true; this->buttonAddProfile->Click += gcnew System::EventHandler(this, &OptionForm::buttonAddProfile_Click); // @@ -930,7 +930,7 @@ private: System::Windows::Forms::CheckBox^ checkBoxShowResult; this->labelProfileName->Name = L"labelProfileName"; this->labelProfileName->Size = System::Drawing::Size(69, 12); this->labelProfileName->TabIndex = 5; - this->labelProfileName->Text = L"ƒvƒƒtƒ@ƒCƒ‹–Œ"; + this->labelProfileName->Text = L"プロファむル名"; // // buttonDeleteProfile // @@ -938,7 +938,7 @@ private: System::Windows::Forms::CheckBox^ checkBoxShowResult; this->buttonDeleteProfile->Name = L"buttonDeleteProfile"; this->buttonDeleteProfile->Size = System::Drawing::Size(45, 22); this->buttonDeleteProfile->TabIndex = 4; - this->buttonDeleteProfile->Text = L"íœ"; + this->buttonDeleteProfile->Text = L"削陀"; this->buttonDeleteProfile->UseVisualStyleBackColor = true; this->buttonDeleteProfile->Click += gcnew System::EventHandler(this, &OptionForm::buttonDeleteProfile_Click); // @@ -957,7 +957,7 @@ private: System::Windows::Forms::CheckBox^ checkBoxShowResult; this->buttonCopyProfile->Name = L"buttonCopyProfile"; this->buttonCopyProfile->Size = System::Drawing::Size(45, 22); this->buttonCopyProfile->TabIndex = 2; - this->buttonCopyProfile->Text = L"•¡»"; + this->buttonCopyProfile->Text = L"耇補"; this->buttonCopyProfile->UseVisualStyleBackColor = true; this->buttonCopyProfile->Click += gcnew System::EventHandler(this, &OptionForm::buttonCopyProfile_Click); // @@ -983,7 +983,7 @@ private: System::Windows::Forms::CheckBox^ checkBoxShowResult; this->groupBoxReplayFolder->Size = System::Drawing::Size(330, 80); this->groupBoxReplayFolder->TabIndex = 2; this->groupBoxReplayFolder->TabStop = false; - this->groupBoxReplayFolder->Text = L"ƒŠƒvƒŒƒC•Û‘¶ƒtƒHƒ‹ƒ_"; + this->groupBoxReplayFolder->Text = L"リプレむ保存フォルダ"; // // textBoxReplayFolder // @@ -1013,7 +1013,7 @@ private: System::Windows::Forms::CheckBox^ checkBoxShowResult; this->checkBoxDivide->Name = L"checkBoxDivide"; this->checkBoxDivide->Size = System::Drawing::Size(168, 16); this->checkBoxDivide->TabIndex = 3; - this->checkBoxDivide->Text = L"ƒŠƒvƒŒƒCƒtƒ@ƒCƒ‹‚ÌŽ©“®U‚蕪‚¯"; + this->checkBoxDivide->Text = L"リプレむファむルの自動振り分け"; this->checkBoxDivide->UseVisualStyleBackColor = true; this->checkBoxDivide->CheckedChanged += gcnew System::EventHandler(this, &OptionForm::ApplyButtonEnable); // @@ -1028,7 +1028,7 @@ private: System::Windows::Forms::CheckBox^ checkBoxShowResult; this->groupBoxNet->Size = System::Drawing::Size(330, 80); this->groupBoxNet->TabIndex = 3; this->groupBoxNet->TabStop = false; - this->groupBoxNet->Text = L"‰ñüÝ’è"; + this->groupBoxNet->Text = L"回線蚭定"; // // labelComment // @@ -1037,7 +1037,7 @@ private: System::Windows::Forms::CheckBox^ checkBoxShowResult; this->labelComment->Name = L"labelComment"; this->labelComment->Size = System::Drawing::Size(38, 12); this->labelComment->TabIndex = 0; - this->labelComment->Text = L"ƒRƒƒ“ƒg"; + this->labelComment->Text = L"コメント"; // // numericUpDownMaxConnection // @@ -1064,7 +1064,7 @@ private: System::Windows::Forms::CheckBox^ checkBoxShowResult; this->label5->Name = L"label5"; this->label5->Size = System::Drawing::Size(65, 12); this->label5->TabIndex = 0; - this->label5->Text = L"Å‘åÚ‘±”"; + this->label5->Text = L"最倧接続数"; // // groupBoxGameExe // @@ -1075,7 +1075,7 @@ private: System::Windows::Forms::CheckBox^ checkBoxShowResult; this->groupBoxGameExe->Size = System::Drawing::Size(330, 52); this->groupBoxGameExe->TabIndex = 1; this->groupBoxGameExe->TabStop = false; - this->groupBoxGameExe->Text = L"ŽÀsƒtƒ@ƒCƒ‹‚̃pƒX"; + this->groupBoxGameExe->Text = L"実行ファむルのパス"; // // textBoxGameExe // @@ -1107,7 +1107,7 @@ private: System::Windows::Forms::CheckBox^ checkBoxShowResult; this->groupBoxSave->Size = System::Drawing::Size(154, 42); this->groupBoxSave->TabIndex = 4; this->groupBoxSave->TabStop = false; - this->groupBoxSave->Text = L"ƒŠƒvƒŒƒCƒtƒ@ƒCƒ‹"; + this->groupBoxSave->Text = L"リプレむファむル"; // // radioButtonReplayVersion1 // @@ -1117,7 +1117,7 @@ private: System::Windows::Forms::CheckBox^ checkBoxShowResult; this->radioButtonReplayVersion1->Size = System::Drawing::Size(59, 16); this->radioButtonReplayVersion1->TabIndex = 2; this->radioButtonReplayVersion1->TabStop = true; - this->radioButtonReplayVersion1->Text = L"–³ˆ³k"; + this->radioButtonReplayVersion1->Text = L"無圧瞮"; this->radioButtonReplayVersion1->UseVisualStyleBackColor = true; this->radioButtonReplayVersion1->CheckedChanged += gcnew System::EventHandler(this, &OptionForm::ApplyButtonEnable); // @@ -1129,7 +1129,7 @@ private: System::Windows::Forms::CheckBox^ checkBoxShowResult; this->radioButtonReplayVersion2->Size = System::Drawing::Size(66, 16); this->radioButtonReplayVersion2->TabIndex = 2; this->radioButtonReplayVersion2->TabStop = true; - this->radioButtonReplayVersion2->Text = L"ˆ³k‚·‚é"; + this->radioButtonReplayVersion2->Text = L"圧瞮する"; this->radioButtonReplayVersion2->UseVisualStyleBackColor = true; this->radioButtonReplayVersion2->CheckedChanged += gcnew System::EventHandler(this, &OptionForm::ApplyButtonEnable); // @@ -1163,7 +1163,7 @@ private: System::Windows::Forms::CheckBox^ checkBoxShowResult; this->tabPageGame->Padding = System::Windows::Forms::Padding(3); this->tabPageGame->Size = System::Drawing::Size(369, 295); this->tabPageGame->TabIndex = 4; - this->tabPageGame->Text = L"ƒQ[ƒ€"; + this->tabPageGame->Text = L"ゲヌム"; this->tabPageGame->UseVisualStyleBackColor = true; // // groupBoxTeamOption @@ -1175,7 +1175,7 @@ private: System::Windows::Forms::CheckBox^ checkBoxShowResult; this->groupBoxTeamOption->Size = System::Drawing::Size(167, 68); this->groupBoxTeamOption->TabIndex = 6; this->groupBoxTeamOption->TabStop = false; - this->groupBoxTeamOption->Text = L"ƒ`[ƒ€ƒvƒŒƒCÝ’è"; + this->groupBoxTeamOption->Text = L"チヌムプレむ蚭定"; // // labelTeamRoundHP // @@ -1184,7 +1184,7 @@ private: System::Windows::Forms::CheckBox^ checkBoxShowResult; this->labelTeamRoundHP->Name = L"labelTeamRoundHP"; this->labelTeamRoundHP->Size = System::Drawing::Size(138, 12); this->labelTeamRoundHP->TabIndex = 1; - this->labelTeamRoundHP->Text = L"Š1vs1‚ł̓Iƒt‚É‚µ‚Ä‚­‚Ÿ‚³‚¢"; + this->labelTeamRoundHP->Text = L"※1vs1ではオフにしおください"; // // checkBoxTeamRoundHP // @@ -1193,7 +1193,7 @@ private: System::Windows::Forms::CheckBox^ checkBoxShowResult; this->checkBoxTeamRoundHP->Name = L"checkBoxTeamRoundHP"; this->checkBoxTeamRoundHP->Size = System::Drawing::Size(148, 16); this->checkBoxTeamRoundHP->TabIndex = 0; - this->checkBoxTeamRoundHP->Text = L"ƒ‰ƒEƒ“ƒhŠÔ‚ÅHP‚ðŽ‚¿‰z‚·"; + this->checkBoxTeamRoundHP->Text = L"ラりンド間でHPを持ち越す"; this->checkBoxTeamRoundHP->UseVisualStyleBackColor = true; this->checkBoxTeamRoundHP->CheckedChanged += gcnew System::EventHandler(this, &OptionForm::ApplyButtonEnable); // @@ -1206,7 +1206,7 @@ private: System::Windows::Forms::CheckBox^ checkBoxShowResult; this->groupBoxSimulate->Size = System::Drawing::Size(154, 44); this->groupBoxSimulate->TabIndex = 5; this->groupBoxSimulate->TabStop = false; - this->groupBoxSimulate->Text = L"ƒVƒ~ƒ…ƒŒ[ƒg"; + this->groupBoxSimulate->Text = L"シミュレヌト"; // // numericUpDownSimDelay // @@ -1223,7 +1223,7 @@ private: System::Windows::Forms::CheckBox^ checkBoxShowResult; this->labelSimDelay->Name = L"labelSimDelay"; this->labelSimDelay->Size = System::Drawing::Size(40, 12); this->labelSimDelay->TabIndex = 0; - this->labelSimDelay->Text = L"ƒfƒBƒŒƒC"; + this->labelSimDelay->Text = L"ディレむ"; // // groupBoxRun // @@ -1234,7 +1234,7 @@ private: System::Windows::Forms::CheckBox^ checkBoxShowResult; this->groupBoxRun->Size = System::Drawing::Size(168, 68); this->groupBoxRun->TabIndex = 3; this->groupBoxRun->TabStop = false; - this->groupBoxRun->Text = L"ŠiƒcƒN"; + this->groupBoxRun->Text = L"栌ツク"; // // checkBoxWindowSize // @@ -1243,7 +1243,7 @@ private: System::Windows::Forms::CheckBox^ checkBoxShowResult; this->checkBoxWindowSize->Name = L"checkBoxWindowSize"; this->checkBoxWindowSize->Size = System::Drawing::Size(112, 16); this->checkBoxWindowSize->TabIndex = 2; - this->checkBoxWindowSize->Text = L"640 x 480 ‚Å‹N“®"; + this->checkBoxWindowSize->Text = L"640 x 480 で起動"; this->checkBoxWindowSize->UseVisualStyleBackColor = true; this->checkBoxWindowSize->CheckedChanged += gcnew System::EventHandler(this, &OptionForm::ApplyButtonEnable); // @@ -1254,7 +1254,7 @@ private: System::Windows::Forms::CheckBox^ checkBoxShowResult; this->checkBoxHitJudge->Name = L"checkBoxHitJudge"; this->checkBoxHitJudge->Size = System::Drawing::Size(111, 16); this->checkBoxHitJudge->TabIndex = 1; - this->checkBoxHitJudge->Text = L"“–‚œ‚è”»’è‚Ì•\ŽŠ"; + this->checkBoxHitJudge->Text = L"圓たり刀定の衚瀺"; this->checkBoxHitJudge->UseVisualStyleBackColor = true; this->checkBoxHitJudge->CheckedChanged += gcnew System::EventHandler(this, &OptionForm::ApplyButtonEnable); // @@ -1270,7 +1270,7 @@ private: System::Windows::Forms::CheckBox^ checkBoxShowResult; this->groupBoxView->Size = System::Drawing::Size(154, 134); this->groupBoxView->TabIndex = 4; this->groupBoxView->TabStop = false; - this->groupBoxView->Text = L"ƒ^ƒCƒgƒ‹ƒo["; + this->groupBoxView->Text = L"タむトルバヌ"; // // checkBoxVersus // @@ -1279,7 +1279,7 @@ private: System::Windows::Forms::CheckBox^ checkBoxShowResult; this->checkBoxVersus->Name = L"checkBoxVersus"; this->checkBoxVersus->Size = System::Drawing::Size(60, 16); this->checkBoxVersus->TabIndex = 2; - this->checkBoxVersus->Text = L"‘ΐ퐔"; + this->checkBoxVersus->Text = L"察戊数"; this->checkBoxVersus->UseVisualStyleBackColor = true; this->checkBoxVersus->CheckedChanged += gcnew System::EventHandler(this, &OptionForm::ApplyButtonEnable); // @@ -1290,7 +1290,7 @@ private: System::Windows::Forms::CheckBox^ checkBoxShowResult; this->checkBoxName->Name = L"checkBoxName"; this->checkBoxName->Size = System::Drawing::Size(78, 16); this->checkBoxName->TabIndex = 1; - this->checkBoxName->Text = L"ƒjƒbƒNƒl[ƒ€"; + this->checkBoxName->Text = L"ニックネヌム"; this->checkBoxName->UseVisualStyleBackColor = true; this->checkBoxName->CheckedChanged += gcnew System::EventHandler(this, &OptionForm::ApplyButtonEnable); // @@ -1301,7 +1301,7 @@ private: System::Windows::Forms::CheckBox^ checkBoxShowResult; this->checkBoxFramerate->Name = L"checkBoxFramerate"; this->checkBoxFramerate->Size = System::Drawing::Size(88, 16); this->checkBoxFramerate->TabIndex = 3; - this->checkBoxFramerate->Text = L"ƒtƒŒ[ƒ€ƒŒ[ƒg"; + this->checkBoxFramerate->Text = L"フレヌムレヌト"; this->checkBoxFramerate->UseVisualStyleBackColor = true; this->checkBoxFramerate->CheckedChanged += gcnew System::EventHandler(this, &OptionForm::ApplyButtonEnable); // @@ -1312,7 +1312,7 @@ private: System::Windows::Forms::CheckBox^ checkBoxShowResult; this->checkBoxRand->Name = L"checkBoxRand"; this->checkBoxRand->Size = System::Drawing::Size(106, 16); this->checkBoxRand->TabIndex = 4; - this->checkBoxRand->Text = L"—”‚ÌŽg—p‰ñ”"; + this->checkBoxRand->Text = L"乱数の䜿甚回数"; this->checkBoxRand->UseVisualStyleBackColor = true; this->checkBoxRand->CheckedChanged += gcnew System::EventHandler(this, &OptionForm::ApplyButtonEnable); // @@ -1331,7 +1331,7 @@ private: System::Windows::Forms::CheckBox^ checkBoxShowResult; this->groupBoxSetting->Size = System::Drawing::Size(168, 134); this->groupBoxSetting->TabIndex = 1; this->groupBoxSetting->TabStop = false; - this->groupBoxSetting->Text = L"‘ΐíÝ’è"; + this->groupBoxSetting->Text = L"察戊蚭定"; // // numericUpDownRound // @@ -1351,7 +1351,7 @@ private: System::Windows::Forms::CheckBox^ checkBoxShowResult; this->labelRound->Name = L"labelRound"; this->labelRound->Size = System::Drawing::Size(52, 12); this->labelRound->TabIndex = 0; - this->labelRound->Text = L"ƒ‰ƒEƒ“ƒh”"; + this->labelRound->Text = L"ラりンド数"; // // labelTimer // @@ -1360,7 +1360,7 @@ private: System::Windows::Forms::CheckBox^ checkBoxShowResult; this->labelTimer->Name = L"labelTimer"; this->labelTimer->Size = System::Drawing::Size(71, 12); this->labelTimer->TabIndex = 0; - this->labelTimer->Text = L"ƒQ[ƒ€ƒ^ƒCƒ}["; + this->labelTimer->Text = L"ゲヌムタむマヌ"; // // numericUpDownTimer // @@ -1388,7 +1388,7 @@ private: System::Windows::Forms::CheckBox^ checkBoxShowResult; this->labelMaxStage->Name = L"labelMaxStage"; this->labelMaxStage->Size = System::Drawing::Size(79, 12); this->labelMaxStage->TabIndex = 0; - this->labelMaxStage->Text = L"Å‘åƒXƒe[ƒW”"; + this->labelMaxStage->Text = L"最倧ステヌゞ数"; // // labelStageSelect // @@ -1397,7 +1397,7 @@ private: System::Windows::Forms::CheckBox^ checkBoxShowResult; this->labelStageSelect->Name = L"labelStageSelect"; this->labelStageSelect->Size = System::Drawing::Size(67, 12); this->labelStageSelect->TabIndex = 0; - this->labelStageSelect->Text = L"‘ΐíƒXƒe[ƒW"; + this->labelStageSelect->Text = L"察戊ステヌゞ"; // // numericUpDownStageSelect // @@ -1418,7 +1418,7 @@ private: System::Windows::Forms::CheckBox^ checkBoxShowResult; this->tabPageColor->Padding = System::Windows::Forms::Padding(3); this->tabPageColor->Size = System::Drawing::Size(369, 295); this->tabPageColor->TabIndex = 5; - this->tabPageColor->Text = L"ƒJƒ‰["; + this->tabPageColor->Text = L"カラヌ"; this->tabPageColor->UseVisualStyleBackColor = true; // // groupBoxMessageColor @@ -1431,7 +1431,7 @@ private: System::Windows::Forms::CheckBox^ checkBoxShowResult; this->groupBoxMessageColor->Size = System::Drawing::Size(168, 108); this->groupBoxMessageColor->TabIndex = 3; this->groupBoxMessageColor->TabStop = false; - this->groupBoxMessageColor->Text = L"ƒƒbƒZ[ƒW"; + this->groupBoxMessageColor->Text = L"メッセヌゞ"; // // buttonDebugMessage // @@ -1440,7 +1440,7 @@ private: System::Windows::Forms::CheckBox^ checkBoxShowResult; this->buttonDebugMessage->Name = L"buttonDebugMessage"; this->buttonDebugMessage->Size = System::Drawing::Size(136, 20); this->buttonDebugMessage->TabIndex = 3; - this->buttonDebugMessage->Text = L"ƒfƒoƒbƒO"; + this->buttonDebugMessage->Text = L"デバッグ"; this->buttonDebugMessage->UseVisualStyleBackColor = false; this->buttonDebugMessage->Click += gcnew System::EventHandler(this, &OptionForm::buttonDebugMessage_Click); this->buttonDebugMessage->ForeColorChanged += gcnew System::EventHandler(this, &OptionForm::ApplyButtonEnable); @@ -1452,7 +1452,7 @@ private: System::Windows::Forms::CheckBox^ checkBoxShowResult; this->buttonErrorMessage->Name = L"buttonErrorMessage"; this->buttonErrorMessage->Size = System::Drawing::Size(136, 20); this->buttonErrorMessage->TabIndex = 2; - this->buttonErrorMessage->Text = L"ƒGƒ‰["; + this->buttonErrorMessage->Text = L"゚ラヌ"; this->buttonErrorMessage->UseVisualStyleBackColor = false; this->buttonErrorMessage->Click += gcnew System::EventHandler(this, &OptionForm::buttonErrorMessage_Click); this->buttonErrorMessage->ForeColorChanged += gcnew System::EventHandler(this, &OptionForm::ApplyButtonEnable); @@ -1464,7 +1464,7 @@ private: System::Windows::Forms::CheckBox^ checkBoxShowResult; this->buttonSystemMessage->Name = L"buttonSystemMessage"; this->buttonSystemMessage->Size = System::Drawing::Size(136, 20); this->buttonSystemMessage->TabIndex = 1; - this->buttonSystemMessage->Text = L"ƒVƒXƒeƒ€"; + this->buttonSystemMessage->Text = L"システム"; this->buttonSystemMessage->UseVisualStyleBackColor = false; this->buttonSystemMessage->Click += gcnew System::EventHandler(this, &OptionForm::buttonSystemMessage_Click); this->buttonSystemMessage->ForeColorChanged += gcnew System::EventHandler(this, &OptionForm::ApplyButtonEnable); @@ -1479,7 +1479,7 @@ private: System::Windows::Forms::CheckBox^ checkBoxShowResult; this->groupBoxOthersColor->Size = System::Drawing::Size(168, 108); this->groupBoxOthersColor->TabIndex = 4; this->groupBoxOthersColor->TabStop = false; - this->groupBoxOthersColor->Text = L"‚»‚Ì‘Œ"; + this->groupBoxOthersColor->Text = L"その他"; // // buttonSecret // @@ -1488,7 +1488,7 @@ private: System::Windows::Forms::CheckBox^ checkBoxShowResult; this->buttonSecret->Name = L"buttonSecret"; this->buttonSecret->Size = System::Drawing::Size(136, 20); this->buttonSecret->TabIndex = 3; - this->buttonSecret->Text = L"HHH"; + this->buttonSecret->Text = L""; this->buttonSecret->UseVisualStyleBackColor = false; this->buttonSecret->Click += gcnew System::EventHandler(this, &OptionForm::buttonSecret_Click); this->buttonSecret->ForeColorChanged += gcnew System::EventHandler(this, &OptionForm::ApplyButtonEnable); @@ -1500,7 +1500,7 @@ private: System::Windows::Forms::CheckBox^ checkBoxShowResult; this->buttonCommentBack->Name = L"buttonCommentBack"; this->buttonCommentBack->Size = System::Drawing::Size(136, 20); this->buttonCommentBack->TabIndex = 2; - this->buttonCommentBack->Text = L"ƒRƒƒ“ƒg‚Ì”wŒi"; + this->buttonCommentBack->Text = L"コメントの背景"; this->buttonCommentBack->UseVisualStyleBackColor = false; this->buttonCommentBack->BackColorChanged += gcnew System::EventHandler(this, &OptionForm::ApplyButtonEnable); this->buttonCommentBack->Click += gcnew System::EventHandler(this, &OptionForm::buttonCommentBack_Click); @@ -1512,7 +1512,7 @@ private: System::Windows::Forms::CheckBox^ checkBoxShowResult; this->buttonNoticeBack->Name = L"buttonNoticeBack"; this->buttonNoticeBack->Size = System::Drawing::Size(136, 20); this->buttonNoticeBack->TabIndex = 1; - this->buttonNoticeBack->Text = L"’mƒƒbƒZ[ƒW‚Ì”wŒi"; + this->buttonNoticeBack->Text = L"告知メッセヌゞの背景"; this->buttonNoticeBack->UseVisualStyleBackColor = false; this->buttonNoticeBack->BackColorChanged += gcnew System::EventHandler(this, &OptionForm::ApplyButtonEnable); this->buttonNoticeBack->Click += gcnew System::EventHandler(this, &OptionForm::buttonNoticeBack_Click); @@ -1528,7 +1528,7 @@ private: System::Windows::Forms::CheckBox^ checkBoxShowResult; this->groupBoxStateColor->Size = System::Drawing::Size(168, 137); this->groupBoxStateColor->TabIndex = 2; this->groupBoxStateColor->TabStop = false; - this->groupBoxStateColor->Text = L"ó‘Ô"; + this->groupBoxStateColor->Text = L"状態"; // // buttonSeekState // @@ -1536,7 +1536,7 @@ private: System::Windows::Forms::CheckBox^ checkBoxShowResult; this->buttonSeekState->Name = L"buttonSeekState"; this->buttonSeekState->Size = System::Drawing::Size(136, 21); this->buttonSeekState->TabIndex = 4; - this->buttonSeekState->Text = L"‘ΐí•åW’†"; + this->buttonSeekState->Text = L"察戊募集䞭"; this->buttonSeekState->UseVisualStyleBackColor = true; this->buttonSeekState->BackColorChanged += gcnew System::EventHandler(this, &OptionForm::ApplyButtonEnable); this->buttonSeekState->Click += gcnew System::EventHandler(this, &OptionForm::buttonSeekState_Click); @@ -1548,7 +1548,7 @@ private: System::Windows::Forms::CheckBox^ checkBoxShowResult; this->buttonWatchState->Name = L"buttonWatchState"; this->buttonWatchState->Size = System::Drawing::Size(136, 20); this->buttonWatchState->TabIndex = 3; - this->buttonWatchState->Text = L"ŠÏí’†"; + this->buttonWatchState->Text = L"芳戊䞭"; this->buttonWatchState->UseVisualStyleBackColor = false; this->buttonWatchState->BackColorChanged += gcnew System::EventHandler(this, &OptionForm::ApplyButtonEnable); this->buttonWatchState->Click += gcnew System::EventHandler(this, &OptionForm::buttonWatchState_Click); @@ -1560,7 +1560,7 @@ private: System::Windows::Forms::CheckBox^ checkBoxShowResult; this->buttonVSState->Name = L"buttonVSState"; this->buttonVSState->Size = System::Drawing::Size(136, 20); this->buttonVSState->TabIndex = 2; - this->buttonVSState->Text = L"‘ΐ풆"; + this->buttonVSState->Text = L"察戊䞭"; this->buttonVSState->UseVisualStyleBackColor = false; this->buttonVSState->BackColorChanged += gcnew System::EventHandler(this, &OptionForm::ApplyButtonEnable); this->buttonVSState->Click += gcnew System::EventHandler(this, &OptionForm::buttonVSState_Click); @@ -1572,7 +1572,7 @@ private: System::Windows::Forms::CheckBox^ checkBoxShowResult; this->buttonRestState->Name = L"buttonRestState"; this->buttonRestState->Size = System::Drawing::Size(136, 20); this->buttonRestState->TabIndex = 1; - this->buttonRestState->Text = L"‹xŒe’†"; + this->buttonRestState->Text = L"䌑憩䞭"; this->buttonRestState->UseVisualStyleBackColor = false; this->buttonRestState->BackColorChanged += gcnew System::EventHandler(this, &OptionForm::ApplyButtonEnable); this->buttonRestState->Click += gcnew System::EventHandler(this, &OptionForm::buttonRestState_Click); @@ -1587,7 +1587,7 @@ private: System::Windows::Forms::CheckBox^ checkBoxShowResult; this->groupBoxNameColor->Size = System::Drawing::Size(168, 108); this->groupBoxNameColor->TabIndex = 1; this->groupBoxNameColor->TabStop = false; - this->groupBoxNameColor->Text = L"–Œ‘O"; + this->groupBoxNameColor->Text = L"名前"; // // buttonClientName // @@ -1596,7 +1596,7 @@ private: System::Windows::Forms::CheckBox^ checkBoxShowResult; this->buttonClientName->Name = L"buttonClientName"; this->buttonClientName->Size = System::Drawing::Size(136, 20); this->buttonClientName->TabIndex = 3; - this->buttonClientName->Text = L"ƒNƒ‰ƒCƒAƒ“ƒg"; + this->buttonClientName->Text = L"クラむアント"; this->buttonClientName->UseVisualStyleBackColor = false; this->buttonClientName->Click += gcnew System::EventHandler(this, &OptionForm::buttonClientName_Click); this->buttonClientName->ForeColorChanged += gcnew System::EventHandler(this, &OptionForm::ApplyButtonEnable); @@ -1608,7 +1608,7 @@ private: System::Windows::Forms::CheckBox^ checkBoxShowResult; this->buttonHostName->Name = L"buttonHostName"; this->buttonHostName->Size = System::Drawing::Size(136, 20); this->buttonHostName->TabIndex = 2; - this->buttonHostName->Text = L"ƒzƒXƒg"; + this->buttonHostName->Text = L"ホスト"; this->buttonHostName->UseVisualStyleBackColor = false; this->buttonHostName->Click += gcnew System::EventHandler(this, &OptionForm::buttonHostName_Click); this->buttonHostName->ForeColorChanged += gcnew System::EventHandler(this, &OptionForm::ApplyButtonEnable); @@ -1620,7 +1620,7 @@ private: System::Windows::Forms::CheckBox^ checkBoxShowResult; this->buttonServerName->Name = L"buttonServerName"; this->buttonServerName->Size = System::Drawing::Size(136, 20); this->buttonServerName->TabIndex = 1; - this->buttonServerName->Text = L"ƒT[ƒo"; + this->buttonServerName->Text = L"サヌバ"; this->buttonServerName->UseVisualStyleBackColor = false; this->buttonServerName->Click += gcnew System::EventHandler(this, &OptionForm::buttonServerName_Click); this->buttonServerName->ForeColorChanged += gcnew System::EventHandler(this, &OptionForm::ApplyButtonEnable); @@ -1635,7 +1635,7 @@ private: System::Windows::Forms::CheckBox^ checkBoxShowResult; this->tabPageVolume->Padding = System::Windows::Forms::Padding(3); this->tabPageVolume->Size = System::Drawing::Size(369, 295); this->tabPageVolume->TabIndex = 6; - this->tabPageVolume->Text = L"‰¹—Ê"; + this->tabPageVolume->Text = L"音量"; this->tabPageVolume->UseVisualStyleBackColor = true; // // groupBoxMidi @@ -1647,7 +1647,7 @@ private: System::Windows::Forms::CheckBox^ checkBoxShowResult; this->groupBoxMidi->Size = System::Drawing::Size(352, 52); this->groupBoxMidi->TabIndex = 3; this->groupBoxMidi->TabStop = false; - this->groupBoxMidi->Text = L"SW ƒVƒ“ƒZƒTƒCƒU"; + this->groupBoxMidi->Text = L"SW シンセサむザ"; // // labelMidi // @@ -1749,7 +1749,7 @@ private: System::Windows::Forms::CheckBox^ checkBoxShowResult; this->tabPageIP->Padding = System::Windows::Forms::Padding(3); this->tabPageIP->Size = System::Drawing::Size(369, 295); this->tabPageIP->TabIndex = 7; - this->tabPageIP->Text = L"IP‚Ì•ÏŠ·"; + this->tabPageIP->Text = L"IPの倉換"; this->tabPageIP->UseVisualStyleBackColor = true; // // AddPortbutton @@ -1758,7 +1758,7 @@ private: System::Windows::Forms::CheckBox^ checkBoxShowResult; this->AddPortbutton->Name = L"AddPortbutton"; this->AddPortbutton->Size = System::Drawing::Size(103, 24); this->AddPortbutton->TabIndex = 4; - this->AddPortbutton->Text = L"ƒ|[ƒg•t‚«•ÏŠ·"; + this->AddPortbutton->Text = L"ポヌト付き倉換"; this->AddPortbutton->UseVisualStyleBackColor = true; this->AddPortbutton->Click += gcnew System::EventHandler(this, &OptionForm::AddPortbutton_Click); // @@ -1769,7 +1769,7 @@ private: System::Windows::Forms::CheckBox^ checkBoxShowResult; this->discriptionlabel->Name = L"discriptionlabel"; this->discriptionlabel->Size = System::Drawing::Size(297, 48); this->discriptionlabel->TabIndex = 3; - this->discriptionlabel->Text = L"IPƒAƒhƒŒƒX‚ð•ÏŠ·‚·‚邱‚ƂŁA\r\nƒT[ƒo‚ðŒöŠJ‚·‚éÛ‚̃ŠƒXƒN‚𑜏­ŒyŒž‚Å‚«‚Ü‚·B\r\n\r\nƒT[ƒo‚ðŒöŠJ‚·‚éÛ‚́A•ÏŠ·‚³‚ê‚œƒAƒhƒŒƒX‚ðŒöŠJ‚µ‚Ä‚­‚Ÿ‚³‚¢B"; + this->discriptionlabel->Text = L"IPアドレスを倉換するこずで、\r\nサヌバを公開する際のリスクを倚少軜枛できたす。\r\n\r\nサヌバを公開する際は、倉換されたアドレスを公開しおください。"; // // Convertbutton // @@ -1777,7 +1777,7 @@ private: System::Windows::Forms::CheckBox^ checkBoxShowResult; this->Convertbutton->Name = L"Convertbutton"; this->Convertbutton->Size = System::Drawing::Size(64, 24); this->Convertbutton->TabIndex = 2; - this->Convertbutton->Text = L"•ÏŠ·"; + this->Convertbutton->Text = L"倉換"; this->Convertbutton->UseVisualStyleBackColor = true; this->Convertbutton->Click += gcnew System::EventHandler(this, &OptionForm::Convertbutton_Click); // @@ -1792,7 +1792,7 @@ private: System::Windows::Forms::CheckBox^ checkBoxShowResult; this->Base64groupBox->Size = System::Drawing::Size(352, 84); this->Base64groupBox->TabIndex = 1; this->Base64groupBox->TabStop = false; - this->Base64groupBox->Text = L"•ÏŠ·Œã‚̃AƒhƒŒƒX"; + this->Base64groupBox->Text = L"倉換埌のアドレス"; // // labelAddrMT // @@ -1801,7 +1801,7 @@ private: System::Windows::Forms::CheckBox^ checkBoxShowResult; this->labelAddrMT->Name = L"labelAddrMT"; this->labelAddrMT->Size = System::Drawing::Size(47, 12); this->labelAddrMT->TabIndex = 3; - this->labelAddrMT->Text = L"MTSP—p"; + this->labelAddrMT->Text = L"MTSP甹"; // // textBoxMTAddr // @@ -1818,7 +1818,7 @@ private: System::Windows::Forms::CheckBox^ checkBoxShowResult; this->labelAddrBase64->Name = L"labelAddrBase64"; this->labelAddrBase64->Size = System::Drawing::Size(63, 12); this->labelAddrBase64->TabIndex = 1; - this->labelAddrBase64->Text = L"LilithPort—p"; + this->labelAddrBase64->Text = L"LilithPort甹"; // // Base64textBox // @@ -1837,7 +1837,7 @@ private: System::Windows::Forms::CheckBox^ checkBoxShowResult; this->IPgroupBox->Size = System::Drawing::Size(352, 52); this->IPgroupBox->TabIndex = 0; this->IPgroupBox->TabStop = false; - this->IPgroupBox->Text = L"IPƒAƒhƒŒƒX"; + this->IPgroupBox->Text = L"IPアドレス"; // // IPtextBox // @@ -1857,7 +1857,7 @@ private: System::Windows::Forms::CheckBox^ checkBoxShowResult; this->tabPageDetails->Padding = System::Windows::Forms::Padding(3); this->tabPageDetails->Size = System::Drawing::Size(369, 295); this->tabPageDetails->TabIndex = 8; - this->tabPageDetails->Text = L"Ú×"; + this->tabPageDetails->Text = L"詳现"; this->tabPageDetails->UseVisualStyleBackColor = true; // // groupBoxDetails @@ -1871,7 +1871,7 @@ private: System::Windows::Forms::CheckBox^ checkBoxShowResult; this->groupBoxDetails->Size = System::Drawing::Size(351, 282); this->groupBoxDetails->TabIndex = 0; this->groupBoxDetails->TabStop = false; - this->groupBoxDetails->Text = L"Ú×Ý’è"; + this->groupBoxDetails->Text = L"詳现蚭定"; // // checkBoxShowGameOption // @@ -1880,7 +1880,7 @@ private: System::Windows::Forms::CheckBox^ checkBoxShowResult; this->checkBoxShowGameOption->Name = L"checkBoxShowGameOption"; this->checkBoxShowGameOption->Size = System::Drawing::Size(199, 16); this->checkBoxShowGameOption->TabIndex = 3; - this->checkBoxShowGameOption->Text = L"ƒQ[ƒ€‹N“®Žž‚ɑΐíÝ’è‚ð•\ŽŠ‚·‚é"; + this->checkBoxShowGameOption->Text = L"ゲヌム起動時に察戊蚭定を衚瀺する"; this->checkBoxShowGameOption->UseVisualStyleBackColor = true; this->checkBoxShowGameOption->CheckedChanged += gcnew System::EventHandler(this, &OptionForm::ApplyButtonEnable); // @@ -1891,7 +1891,7 @@ private: System::Windows::Forms::CheckBox^ checkBoxShowResult; this->checkBoxNameFlash->Name = L"checkBoxNameFlash"; this->checkBoxNameFlash->Size = System::Drawing::Size(203, 16); this->checkBoxNameFlash->TabIndex = 1; - this->checkBoxNameFlash->Text = L"–Œ‘O‚ªŒÄ‚΂ꂜ‚çƒEƒBƒ“ƒhƒE‚ð“_–Å‚·‚é"; + this->checkBoxNameFlash->Text = L"名前が呌ばれたらりィンドりを点滅する"; this->checkBoxNameFlash->UseVisualStyleBackColor = true; this->checkBoxNameFlash->CheckedChanged += gcnew System::EventHandler(this, &OptionForm::ApplyButtonEnable); // @@ -1902,7 +1902,7 @@ private: System::Windows::Forms::CheckBox^ checkBoxShowResult; this->checkBoxGetIP->Name = L"checkBoxGetIP"; this->checkBoxGetIP->Size = System::Drawing::Size(200, 16); this->checkBoxGetIP->TabIndex = 2; - this->checkBoxGetIP->Text = L"Server‹N“®Žž‚ÉIPƒAƒhƒŒƒX‚ðŽæ“Ÿ‚·‚é"; + this->checkBoxGetIP->Text = L"Server起動時にIPアドレスを取埗する"; this->checkBoxGetIP->UseVisualStyleBackColor = true; this->checkBoxGetIP->CheckedChanged += gcnew System::EventHandler(this, &OptionForm::ApplyButtonEnable); // @@ -1913,7 +1913,7 @@ private: System::Windows::Forms::CheckBox^ checkBoxShowResult; this->checkBoxTalkFlash->Name = L"checkBoxTalkFlash"; this->checkBoxTalkFlash->Size = System::Drawing::Size(153, 16); this->checkBoxTalkFlash->TabIndex = 0; - this->checkBoxTalkFlash->Text = L"”­ŒŸ‚ŃEƒBƒ“ƒhƒE‚ð“_–Å‚·‚é"; + this->checkBoxTalkFlash->Text = L"発蚀でりィンドりを点滅する"; this->checkBoxTalkFlash->UseVisualStyleBackColor = true; this->checkBoxTalkFlash->CheckedChanged += gcnew System::EventHandler(this, &OptionForm::ApplyButtonEnable); // @@ -1924,7 +1924,7 @@ private: System::Windows::Forms::CheckBox^ checkBoxShowResult; this->checkBoxShowResult->Name = L"checkBoxShowResult"; this->checkBoxShowResult->Size = System::Drawing::Size(72, 16); this->checkBoxShowResult->TabIndex = 5; - this->checkBoxShowResult->Text = L"‘ΐ폟”s"; + this->checkBoxShowResult->Text = L"察戊勝敗"; this->checkBoxShowResult->UseVisualStyleBackColor = true; this->checkBoxShowResult->CheckedChanged += gcnew System::EventHandler(this, &OptionForm::ApplyButtonEnable); // @@ -1943,7 +1943,7 @@ private: System::Windows::Forms::CheckBox^ checkBoxShowResult; this->MinimizeBox = false; this->Name = L"OptionForm"; this->ShowInTaskbar = false; - this->Text = L"ƒIƒvƒVƒ‡ƒ“"; + this->Text = L"オプション"; this->Load += gcnew System::EventHandler(this, &OptionForm::OptionForm_Load); this->Shown += gcnew System::EventHandler(this, &OptionForm::OptionForm_Shown); this->FormClosed += gcnew System::Windows::Forms::FormClosedEventHandler(this, &OptionForm::OptionForm_FormClosed); @@ -2025,22 +2025,22 @@ private: System::Windows::Forms::CheckBox^ checkBoxShowResult; DWORD MixerVolumeMin, MixerVolumeMax; void AdviceGameExe(){ - textBoxGameExe->Text = gcnew String("‰E‚̃{ƒ^ƒ“‚ð‰Ÿ‚µ‚ăpƒX‚ðÝ’肵‚Ä‚­‚Ÿ‚³‚¢"); + textBoxGameExe->Text = gcnew String("右のボタンを抌しおパスを蚭定しおください"); textBoxGameExe->Focus(); } void CheckStageValue(){ if(numericUpDownStageSelect->Value > numericUpDownMaxStage->Value){ - labelMaxStage->Text = gcnew String("ŠJŽnƒXƒe[ƒW"); - labelStageSelect->Text = gcnew String("I’[ƒXƒe[ƒW"); + labelMaxStage->Text = gcnew String("開始ステヌゞ"); + labelStageSelect->Text = gcnew String("終端ステヌゞ"); } else{ - labelMaxStage->Text = gcnew String("Å‘åƒXƒe[ƒW”"); - labelStageSelect->Text = gcnew String("‘ΐíƒXƒe[ƒW"); + labelMaxStage->Text = gcnew String("最倧ステヌゞ数"); + labelStageSelect->Text = gcnew String("察戊ステヌゞ"); } if(numericUpDownStageSelect->Value == 0){ - labelStageSelect->Text = gcnew String("ƒ‰ƒ“ƒ_ƒ€ƒXƒe[ƒW"); + labelStageSelect->Text = gcnew String("ランダムステヌゞ"); } } @@ -2092,7 +2092,7 @@ private: System::Windows::Forms::CheckBox^ checkBoxShowResult; textBoxKeywordSoundPath->Text = gcnew String(MTOPTION.KEYWORD_SOUND); textBoxKeyword->Text = gcnew String(MTOPTION.KEYWORD); - // ƒpƒX‚̃ZƒŒƒNƒVƒ‡ƒ“‚ð––”ö‚É + // パスのセレクションを末尟に textBoxGameExe->SelectionStart = textBoxGameExe->Text->Length; textBoxReplayFolder->SelectionStart = textBoxReplayFolder->Text->Length; textBoxComment->SelectionStart = textBoxComment->Text->Length; @@ -2164,7 +2164,7 @@ private: System::Windows::Forms::CheckBox^ checkBoxShowResult; buttonCommentBack->BackColor = Color::FromArgb(MTCOLOR.COMMENT_BACK); buttonSecret->ForeColor = Color::FromArgb(MTCOLOR.SECRET); - // SWƒVƒ“ƒZ + // SWシンセ try{ hMixer = NULL; pin_ptr p_hm = &hMixer; @@ -2173,7 +2173,7 @@ private: System::Windows::Forms::CheckBox^ checkBoxShowResult; throw gcnew Exception; } else{ - // €”õ + // 準備 MIXERLINE line; MIXERLINECONTROLS lc; MIXERCONTROL ctrl; @@ -2200,7 +2200,7 @@ private: System::Windows::Forms::CheckBox^ checkBoxShowResult; MixerVolumeMin = ctrl.Bounds.dwMinimum; MixerVolumeMax = ctrl.Bounds.dwMaximum; - // ‰¹—ÊŽæ“Ÿ + // 音量取埗 MIXERCONTROLDETAILS mcd; MIXERCONTROLDETAILS_UNSIGNED vol; @@ -2280,17 +2280,17 @@ private: System::Windows::Forms::CheckBox^ checkBoxShowResult; } System::Void buttonGameExe_Click(System::Object^ sender, System::EventArgs^ e) { - openFileDialog1->Title = gcnew String("Ši“¬ƒcƒN[ƒ‹‚ÌŽÀsƒtƒ@ƒCƒ‹"); + openFileDialog1->Title = gcnew String("栌闘ツクヌルの実行ファむル"); openFileDialog1->Filter = gcnew String("exe file (*.exe)|*.exe"); if(openFileDialog1->ShowDialog() == ::DialogResult::OK){ FileVersionInfo^ info = FileVersionInfo::GetVersionInfo(openFileDialog1->FileName); - if(info->FileDescription == "‚Q‚cŠi“¬ƒcƒN[ƒ‹2nd." || info->FileDescription == "‚Q‚cŠi“¬ƒcƒN[ƒ‹‚X‚T"){ + if(info->FileDescription == "栌闘ツクヌル2nd." || info->FileDescription == "栌闘ツクヌル"){ textBoxGameExe->Text = openFileDialog1->FileName; } else{ - textBoxGameExe->Text = "Ši“¬ƒcƒN[ƒ‹‚ÌŽÀsƒtƒ@ƒCƒ‹‚Å‚Í‚ ‚è‚Ü‚¹‚ñ"; + textBoxGameExe->Text = "栌闘ツクヌルの実行ファむルではありたせん"; textBoxGameExe->SelectAll(); textBoxGameExe->Focus(); } @@ -2304,7 +2304,7 @@ private: System::Windows::Forms::CheckBox^ checkBoxShowResult; } System::Void buttonVSSound_Click(System::Object^ sender, System::EventArgs^ e) { - openFileDialog1->Title = gcnew String("‘ΐ펞‚ɖ‚炷‰¹ºƒtƒ@ƒCƒ‹"); + openFileDialog1->Title = gcnew String("察戊時に鳎らす音声ファむル"); openFileDialog1->Filter = gcnew String("wav file (*.wav)|*.wav"); if(openFileDialog1->ShowDialog() == ::DialogResult::OK){ @@ -2313,7 +2313,7 @@ private: System::Windows::Forms::CheckBox^ checkBoxShowResult; } System::Void buttonNoticeSound_Click(System::Object^ sender, System::EventArgs^ e) { - openFileDialog1->Title = gcnew String("’mŽóMŽž‚ɖ‚炷‰¹ºƒtƒ@ƒCƒ‹"); + openFileDialog1->Title = gcnew String("告知受信時に鳎らす音声ファむル"); openFileDialog1->Filter = gcnew String("wav file (*.wav)|*.wav"); if(openFileDialog1->ShowDialog() == ::DialogResult::OK){ @@ -2322,7 +2322,7 @@ private: System::Windows::Forms::CheckBox^ checkBoxShowResult; } System::Void buttonEnterSound_Click(System::Object^ sender, System::EventArgs^ e) { - openFileDialog1->Title = gcnew String("ƒƒ“ƒo[“üŽºŽž‚ɖ‚炷‰¹ºƒtƒ@ƒCƒ‹"); + openFileDialog1->Title = gcnew String("メンバヌ入宀時に鳎らす音声ファむル"); openFileDialog1->Filter = gcnew String("wav file (*.wav)|*.wav"); if(openFileDialog1->ShowDialog() == ::DialogResult::OK){ @@ -2331,7 +2331,7 @@ private: System::Windows::Forms::CheckBox^ checkBoxShowResult; } System::Void buttonNameSound_Click(System::Object^ sender, System::EventArgs^ e) { - openFileDialog1->Title = gcnew String("ƒjƒbƒNƒl[ƒ€‚ªŒÄ‚΂ꂜ‚ç–‚炷‰¹ºƒtƒ@ƒCƒ‹"); + openFileDialog1->Title = gcnew String("ニックネヌムが呌ばれたら鳎らす音声ファむル"); openFileDialog1->Filter = gcnew String("wav file (*.wav)|*.wav"); if(openFileDialog1->ShowDialog() == ::DialogResult::OK){ @@ -2340,7 +2340,7 @@ private: System::Windows::Forms::CheckBox^ checkBoxShowResult; } System::Void buttonTalkSound_Click(System::Object^ sender, System::EventArgs^ e) { - openFileDialog1->Title = gcnew String("”­ŒŸ‚Ŗ‚炷‰¹ºƒtƒ@ƒCƒ‹"); + openFileDialog1->Title = gcnew String("発蚀で鳎らす音声ファむル"); openFileDialog1->Filter = gcnew String("wav file (*.wav)|*.wav"); if(openFileDialog1->ShowDialog() == ::DialogResult::OK){ @@ -2349,7 +2349,7 @@ private: System::Windows::Forms::CheckBox^ checkBoxShowResult; } System::Void buttonSeekSound_Click(System::Object^ sender, System::EventArgs^ e) { - openFileDialog1->Title = gcnew String("‘ΐí•åW‚Ŗ‚炷‰¹ºƒtƒ@ƒCƒ‹"); + openFileDialog1->Title = gcnew String("察戊募集で鳎らす音声ファむル"); openFileDialog1->Filter = gcnew String("wav file (*.wav)|*.wav"); if(openFileDialog1->ShowDialog() == ::DialogResult::OK){ @@ -2358,7 +2358,7 @@ private: System::Windows::Forms::CheckBox^ checkBoxShowResult; } System::Void buttonKeywordSound_Click(System::Object^ sender, System::EventArgs^ e) { - openFileDialog1->Title = gcnew String("ƒL[ƒ[ƒh‚Ŗ‚炷‰¹ºƒtƒ@ƒCƒ‹"); + openFileDialog1->Title = gcnew String("キヌワヌドで鳎らす音声ファむル"); openFileDialog1->Filter = gcnew String("wav file (*.wav)|*.wav"); if(openFileDialog1->ShowDialog() == ::DialogResult::OK){ @@ -2500,7 +2500,7 @@ private: System::Windows::Forms::CheckBox^ checkBoxShowResult; String^ extension = Path::GetExtension(file[0])->ToLower(); FileVersionInfo^ info = FileVersionInfo::GetVersionInfo(file[0]); - if(extension == ".exe" && (info->FileDescription == "‚Q‚cŠi“¬ƒcƒN[ƒ‹2nd." || info->FileDescription == "‚Q‚cŠi“¬ƒcƒN[ƒ‹‚X‚T")){ + if(extension == ".exe" && (info->FileDescription == "栌闘ツクヌル2nd." || info->FileDescription == "栌闘ツクヌル")){ e->Effect = DragDropEffects::All; } } @@ -2586,7 +2586,7 @@ private: System::Windows::Forms::CheckBox^ checkBoxShowResult; } } - // Ä¶ƒ{ƒ^ƒ“ + // 再生ボタン System::Void buttonVSSoundPlay_Click(System::Object^ sender, System::EventArgs^ e) { try{ Media::SoundPlayer^ wav = gcnew Media::SoundPlayer(gcnew String(MTOPTION.VS_SOUND)); @@ -2644,7 +2644,7 @@ private: System::Windows::Forms::CheckBox^ checkBoxShowResult; } } - // IP“ü—̓`ƒFƒbƒN + // IP入力チェック System::Void IPtextBox_TextChanged(System::Object^ sender, System::EventArgs^ e) { if(Net::IPAddress::TryParse(IPtextBox->Text, gcnew Net::IPAddress(0)) == false){ Convertbutton->Enabled = false; @@ -2655,30 +2655,30 @@ private: System::Windows::Forms::CheckBox^ checkBoxShowResult; AddPortbutton->Enabled = true; } } - // IP‚Ì•ÏŠ· + // IPの倉換 System::Void Convertbutton_Click(System::Object^ sender, System::EventArgs^ e) { Base64textBox->Text = EncryptionIP(IPtextBox->Text); textBoxMTAddr->Text = MTEncryptionIP(IPtextBox->Text); } - // ƒ|[ƒg•t‚«IP‚Ì•ÏŠ· + // ポヌト付きIPの倉換 System::Void AddPortbutton_Click(System::Object^ sender, System::EventArgs^ e) { Base64textBox->Text = String::Format("{0}:{1}", EncryptionIP(IPtextBox->Text), MTOPTION.OPEN_PORT); textBoxMTAddr->Text = String::Format("{0}:{1}", MTEncryptionIP(IPtextBox->Text), MTOPTION.OPEN_PORT); } - // ƒvƒƒtƒ@ƒCƒ‹ƒRƒ“ƒ{ƒ{ƒbƒNƒX•ÏX + // プロファむルコンボボックス倉曎 System::Void comboBoxProfile_SelectedIndexChanged(System::Object^ sender, System::EventArgs^ e) { String^ buf = ((ComboBox^)sender)->Text; String^ bufProfile = gcnew String(MTOPTION.PROFILE); if(buf != bufProfile){ - // Ø‚è‘Ö‚Š + // 切り替え IntPtr mp = Runtime::InteropServices::Marshal::StringToHGlobalAuto(buf); _tcscpy_s(MTOPTION.PROFILE, static_cast(mp.ToPointer())); Runtime::InteropServices::Marshal::FreeHGlobal(mp); LoadMTOption(); - // ƒvƒƒtƒ@ƒCƒ‹ƒZƒNƒVƒ‡ƒ“‚̐ݒè’l‚ðXV + // プロファむルセクションの蚭定倀を曎新 textBoxGameExe->Text = gcnew String(MTOPTION.GAME_EXE); textBoxReplayFolder->Text = gcnew String(MTOPTION.REPLAY_FOLDER); textBoxGameExe->SelectionStart = textBoxGameExe->Text->Length; @@ -2710,24 +2710,24 @@ private: System::Windows::Forms::CheckBox^ checkBoxShowResult; buttonApply->Enabled = false; } System::Void buttonCopyProfile_Click(System::Object^ sender, System::EventArgs^ e) { - // ƒvƒƒtƒ@ƒCƒ‹•¡» + // プロファむル耇補 String^ mes; String^ buf = comboBoxProfile->Items[comboBoxProfile->SelectedIndex]->ToString(); String^ bufClone = String::Format("{0}{1}", buf, "_"); if(buf->Length > MAX_ARRAY-1){ - mes = "ƒvƒƒtƒ@ƒCƒ‹–Œ‚ª’·‚·‚¬‚Ü‚·B\n•¡»‚ðs‚€‚ɂ́Aƒvƒƒtƒ@ƒCƒ‹–Œ‚ð’Z‚­‚µ‚Ä‚­‚Ÿ‚³‚¢B"; + mes = "プロファむル名が長すぎたす。\n耇補を行うには、プロファむル名を短くしおください。"; } for(int i=0; i < Profile::ProfileList->Count; i++){ if(Profile::ProfileList[i] == bufClone){ - mes = "Šù‚É•¡»‚³‚ê‚œƒvƒƒtƒ@ƒCƒ‹‚ª‘¶Ý‚µ‚Ü‚·B"; + mes = "既に耇補されたプロファむルが存圚したす。"; } } if(Profile::ProfileList->Count > 31){ - mes = "‚±‚êˆÈãƒvƒƒtƒ@ƒCƒ‹‚ðì¬‚Å‚«‚Ü‚¹‚ñB"; + mes = "これ以䞊プロファむルを䜜成できたせん。"; return; } if(mes != nullptr){ - MessageBox::Show(mes, "ƒvƒƒtƒ@ƒCƒ‹•¡»", MessageBoxButtons::OK, MessageBoxIcon::Exclamation); + MessageBox::Show(mes, "プロファむル耇補", MessageBoxButtons::OK, MessageBoxIcon::Exclamation); return; } Profile::ProfileList->Add(bufClone); @@ -2744,10 +2744,10 @@ private: System::Windows::Forms::CheckBox^ checkBoxShowResult; } System::Void buttonDeleteProfile_Click(System::Object^ sender, System::EventArgs^ e) { - // ƒvƒƒtƒ@ƒCƒ‹íœ + // プロファむル削陀 int index = comboBoxProfile->SelectedIndex; String^ buf = comboBoxProfile->Items[index]->ToString(); - if(MessageBox::Show(String::Format("{0}‚ðíœ‚µ‚Ü‚·B\n‚æ‚낵‚¢‚Å‚·‚©H", buf), "ƒvƒƒtƒ@ƒCƒ‹íœ", MessageBoxButtons::YesNo, MessageBoxIcon::Question) == ::DialogResult::Yes){ + if(MessageBox::Show(String::Format("{0}を削陀したす。\nよろしいですか", buf), "プロファむル削陀", MessageBoxButtons::YesNo, MessageBoxIcon::Question) == ::DialogResult::Yes){ Profile::ProfileList->RemoveAt(index); comboBoxProfile->Items->RemoveAt(index); @@ -2759,13 +2759,13 @@ private: System::Windows::Forms::CheckBox^ checkBoxShowResult; } } System::Void buttonAddProfile_Click(System::Object^ sender, System::EventArgs^ e) { - // ƒvƒƒtƒ@ƒCƒ‹’ljÁ + // プロファむル远加 String^ bufText = textBoxProfileName->Text; if(CheckTextProfileName(bufText)){ return; } if(Profile::ProfileList->Count > 31){ - MessageBox::Show("‚±‚êˆÈãƒvƒƒtƒ@ƒCƒ‹‚ðì¬‚Å‚«‚Ü‚¹‚ñB", "ƒvƒƒtƒ@ƒCƒ‹’ljÁ", MessageBoxButtons::OK, MessageBoxIcon::Exclamation); + MessageBox::Show("これ以䞊プロファむルを䜜成できたせん。", "プロファむル远加", MessageBoxButtons::OK, MessageBoxIcon::Exclamation); return; } @@ -2777,13 +2777,13 @@ private: System::Windows::Forms::CheckBox^ checkBoxShowResult; buttonApply->Enabled = false; } System::Void buttonSaveProfile_Click(System::Object^ sender, System::EventArgs^ e) { - // ƒvƒƒtƒ@ƒCƒ‹•Û‘¶ + // プロファむル保存 String^ bufText = textBoxProfileName->Text; String^ bufSelectedItem = comboBoxProfile->SelectedItem->ToString(); if(CheckTextProfileName(bufText)){ return; } - // ã‘‚« + // 䞊曞き if(bufText != bufSelectedItem){ for(int i=0; i < Profile::ProfileList->Count; i++){ if(Profile::ProfileList[i] == gcnew String(MTOPTION.PROFILE)){ diff --git a/LilithPort/OptionForm.resx b/LilithPort/OptionForm.resx index 5380199..6d0e8b7 100644 --- a/LilithPort/OptionForm.resx +++ b/LilithPort/OptionForm.resx @@ -1,4 +1,4 @@ - +