diff --git a/src/sdlmain.cpp b/src/sdlmain.cpp index 42b20a2..5dc474c 100644 --- a/src/sdlmain.cpp +++ b/src/sdlmain.cpp @@ -35,10 +35,6 @@ int main(int argc, char *argv[]) #else _stprintf_s(buf, 128, _T("Scenario Decoder SYSTEM3 - %s"), title); #endif - wchar_t wbuf[128]; - MultiByteToWideChar(CP_ACP, 0, buf, -1, wbuf, 128); - WideCharToMultiByte(CP_UTF8, 0, wbuf, -1, buf, 128, NULL, NULL); - SDL_SetWindowTitle(g_window, buf); } diff --git a/src/sys/nact.h b/src/sys/nact.h index 8979343..9012271 100644 --- a/src/sys/nact.h +++ b/src/sys/nact.h @@ -7,7 +7,6 @@ #ifndef _NACT_H_ #define _NACT_H_ -#include #include #include "../common.h" diff --git a/src/sys/nact_crc32.cpp b/src/sys/nact_crc32.cpp index f446879..e11d07c 100644 --- a/src/sys/nact_crc32.cpp +++ b/src/sys/nact_crc32.cpp @@ -31,7 +31,7 @@ uint32 NACT::calc_crc32() } table[i] = c; } - // ADISK.DAT‚Ì�擪256bytes + // ADISK.DATã�®å…ˆé ­256bytes for(int i = 0; i < 256; i++) { int d = fio->Fgetc(); uint32 c = ~crc; @@ -42,7 +42,7 @@ uint32 NACT::calc_crc32() } #if defined(_SYSTEM2) if(crc == CRC32_SDPS) { - // Super D.P.S‚Ì�ê�‡‚ÍBDISK.DAT‚ÌCRC‚ðŽæ‚é + // Super D.P.Sã�®å ´å�ˆã�¯BDISK.DATã�®CRCã‚’å�–ã‚‹ _stprintf_s(file_path, _MAX_PATH, _T("%sBDISK.DAT"), g_root); if(fio->Fopen(file_path, FILEIO_READ_BINARY)) { @@ -58,7 +58,7 @@ uint32 NACT::calc_crc32() } table[i] = c; } - // BDISK.DAT‚Ì�擪256bytes + // BDISK.DATã�®å…ˆé ­256bytes crc = 0; for(int i = 0; i < 256; i++) { int d = fio->Fgetc(); @@ -84,19 +84,19 @@ bool NACT::get_title(_TCHAR title[], int length) #if defined(_SYSTEM1) #if defined(_CRESCENT) - _tcscpy_s(title, length, _T("ƒNƒŒƒZƒ“ƒgƒ€�[ƒ“‚ª‚Ÿ‚é")); + _tcscpy_s(title, length, _T("クレセントムーンã�Œã��ã‚‹")); return true; #elif defined(_DPS) _tcscpy_s(title, length, _T("D.P.S - Dream Program System")); return true; #elif defined(_FUKEI) - _tcscpy_s(title, length, _T("•wŒx‚³‚ñ‚u‚w")); + _tcscpy_s(title, length, _T("婦警ã�•んVX")); return true; #elif defined(_INTRUDER) - _tcscpy_s(title, length, _T("Intruder -�÷‰®•~‚Ì’T�õ-")); + _tcscpy_s(title, length, _T("Intruder -桜屋敷ã�®æŽ¢ç´¢-")); return true; #elif defined(_TENGU) - _tcscpy_s(title, length, _T("‚ ‚Ô‚È‚¢‚Ä‚ñ‚®“`�à")); + _tcscpy_s(title, length, _T("ã�‚ã�¶ã�ªã�„ã�¦ã‚“ã��ä¼�説")); return true; #elif defined(_VAMPIRE) _tcscpy_s(title, length, _T("Little Vampire")); @@ -110,7 +110,7 @@ bool NACT::get_title(_TCHAR title[], int length) switch(crc32) { case CRC32_AYUMI_PROTO: - _tcscpy_s(title, length, _T("‚ ‚ä‚Ý‚¿‚á‚ñ•¨Œê PROTO")); + _tcscpy_s(title, length, _T("ã�‚ゆã�¿ã�¡ã‚ƒã‚“物語 PROTO")); return true; case CRC32_SDPS_MARIA: case CRC32_SDPS_TONO: @@ -129,58 +129,58 @@ bool NACT::get_title(_TCHAR title[], int length) switch(crc32) { case CRC32_AMBIVALENZ_FD: case CRC32_AMBIVALENZ_CD: - _tcscpy_s(title, length, _T("AmbivalenZ �|“ñ—¥”w”½�|")); + _tcscpy_s(title, length, _T("AmbivalenZ −二律背å��−")); return true; case CRC32_DPSALL: - _tcscpy_s(title, length, _T("D.P.S. ‘S•”")); + _tcscpy_s(title, length, _T("D.P.S. 全部")); return true; case CRC32_FUNNYBEE_CD: // case CRC32_FUNNYBEE_PATCH: case CRC32_FUNNYBEE_FD: - _tcscpy_s(title, length, _T("‰F’ˆ‰õ“�ƒtƒ@ƒj�[Bee")); + _tcscpy_s(title, length, _T("宇宙快盗ファニーBee")); return true; case CRC32_ONLYYOU: - _tcscpy_s(title, length, _T("Only You �|�¢‹I––‚̃Wƒ…ƒŠƒGƒbƒg’B�|")); + _tcscpy_s(title, length, _T("Only You −世紀末ã�®ã‚¸ãƒ¥ãƒªã‚¨ãƒƒãƒˆé�”−")); return true; case CRC32_ONLYYOU_DEMO: - _tcscpy_s(title, length, _T("Only You �|�¢‹I––‚̃Wƒ…ƒŠƒGƒbƒg’B�| ƒfƒ‚”Å")); + _tcscpy_s(title, length, _T("Only You −世紀末ã�®ã‚¸ãƒ¥ãƒªã‚¨ãƒƒãƒˆé�”− デモ版")); return true; case CRC32_PROSTUDENTG_CD: _tcscpy_s(title, length, _T("prostudent G")); return true; case CRC32_RANCE41: - _tcscpy_s(title, length, _T("ƒ‰ƒ“ƒX 4.1 �`‚¨–ò�H�ê‚ð‹~‚¦�I�`")); + _tcscpy_s(title, length, _T("ランス 4.1 〜ã�Šè–¬å·¥å ´ã‚’æ•‘ã�ˆï¼�〜")); return true; case CRC32_RANCE42: - _tcscpy_s(title, length, _T("ƒ‰ƒ“ƒX 4.2 �`ƒGƒ“ƒWƒFƒ‹‘g�`")); + _tcscpy_s(title, length, _T("ランス 4.2 〜エンジェル組〜")); return true; case CRC32_AYUMI_CD: - _tcscpy_s(title, length, _T("‚ ‚ä‚Ý‚¿‚á‚ñ•¨Œê")); + _tcscpy_s(title, length, _T("ã�‚ゆã�¿ã�¡ã‚ƒã‚“物語")); return true; case CRC32_AYUMI_JISSHA_256: - _tcscpy_s(title, length, _T("‚ ‚ä‚Ý‚¿‚á‚ñ•¨Œê ŽÀŽÊ”Å")); + _tcscpy_s(title, length, _T("ã�‚ゆã�¿ã�¡ã‚ƒã‚“物語 実写版")); return true; case CRC32_AYUMI_JISSHA_FULL: - _tcscpy_s(title, length, _T("‚ ‚ä‚Ý‚¿‚á‚ñ•¨Œê ƒtƒ‹ƒJƒ‰�[ŽÀŽÊ”Å")); + _tcscpy_s(title, length, _T("ã�‚ゆã�¿ã�¡ã‚ƒã‚“物語 フルカラー実写版")); return true; case CRC32_YAKATA3_CD: case CRC32_YAKATA3_FD: - _tcscpy_s(title, length, _T("ƒAƒŠƒX‚ÌŠÙ3")); + _tcscpy_s(title, length, _T("アリスã�®é¤¨3")); return true; case CRC32_HASHIRIONNA2: - _tcscpy_s(title, length, _T("‘–‚è�—2")); + _tcscpy_s(title, length, _T("走り女2")); return true; case CRC32_TOUSHIN2_SP: - _tcscpy_s(title, length, _T("“¬�_“sŽs2 ‚»‚µ‚Ä�A‚»‚ê‚©‚ç�c")); + _tcscpy_s(title, length, _T("闘神都市2 ã��ã�—ã�¦ã€�ã��れã�‹ã‚‰â€¦")); return true; case CRC32_OTOMESENKI: - _tcscpy_s(title, length, _T("‰³�—�í‹L")); + _tcscpy_s(title, length, _T("乙女戦記")); return true; case CRC32_NINGYO: - _tcscpy_s(title, length, _T("�l‹› -åfŽq-")); + _tcscpy_s(title, length, _T("人魚 -蘿å­�-")); return true; case CRC32_MUGENHOUYOU: - _tcscpy_s(title, length, _T("–²Œ¶–A‰e")); + _tcscpy_s(title, length, _T("夢幻泡影")); return true; } title[0] = _T('\0');