mirror of
https://github.com/kichikuou/system3-sdl2.git
synced 2026-09-30 10:58:07 +03:00
Convert all Shift_JIS files to UTF-8
This commit is contained in:
+53
-53
@@ -41,7 +41,7 @@ void NACT_Sys3::cmd_branch()
|
||||
int t_addr = scenario_addr + 2;
|
||||
int f_addr = getw();
|
||||
|
||||
// sigmarion3 最適化誤爆の対策
|
||||
// sigmarion3 最適化誤爆の対策
|
||||
scenario_addr = condition ? t_addr : f_addr;
|
||||
|
||||
#if defined(_DEBUG_CONSOLE)
|
||||
@@ -74,7 +74,7 @@ void NACT_Sys3::cmd_label_call()
|
||||
#endif
|
||||
|
||||
if(next_addr == 0) {
|
||||
// リターン
|
||||
// リターン
|
||||
if(label_depth == 0) {
|
||||
// fatal_error = true;
|
||||
return;
|
||||
@@ -111,7 +111,7 @@ void NACT_Sys3::cmd_page_call()
|
||||
#endif
|
||||
|
||||
if(next_page == 0) {
|
||||
// リターン
|
||||
// リターン
|
||||
if(page_depth == 0) {
|
||||
// fatal_error = true;
|
||||
return;
|
||||
@@ -160,7 +160,7 @@ void NACT_Sys3::cmd_set_menu()
|
||||
|
||||
int NACT_Sys3::menu_select(int num_items)
|
||||
{
|
||||
// クリック中の間は待機
|
||||
// クリック中の間は待機
|
||||
for(;;) {
|
||||
if(terminate) {
|
||||
return -1;
|
||||
@@ -172,11 +172,11 @@ int NACT_Sys3::menu_select(int num_items)
|
||||
SDL_Delay(16);
|
||||
}
|
||||
|
||||
// メニュー表示
|
||||
// メニュー表示
|
||||
ags->open_menu_window(menu_window);
|
||||
int current_index = 0;
|
||||
|
||||
// マウス移動
|
||||
// マウス移動
|
||||
int sx = ags->menu_w[menu_window - 1].sx;
|
||||
int sy = ags->menu_w[menu_window - 1].sy;
|
||||
int ex = ags->menu_w[menu_window - 1].ex;
|
||||
@@ -187,9 +187,9 @@ int NACT_Sys3::menu_select(int num_items)
|
||||
|
||||
bool selectable = true;
|
||||
|
||||
// メニュー選択
|
||||
// メニュー選択
|
||||
for(;;) {
|
||||
// 入力待機
|
||||
// 入力待機
|
||||
int val = 0, current_mx = mx, current_my = my;
|
||||
for(;;) {
|
||||
if(terminate) {
|
||||
@@ -219,7 +219,7 @@ int NACT_Sys3::menu_select(int num_items)
|
||||
}
|
||||
|
||||
if(val == 0) {
|
||||
// マウス操作
|
||||
// マウス操作
|
||||
mx = current_mx; my = current_my;
|
||||
int index = (my - sy) / height;
|
||||
if(sx <= mx && mx <= ex && 0 <= index && index < num_items) {
|
||||
@@ -249,7 +249,7 @@ int NACT_Sys3::menu_select(int num_items)
|
||||
}
|
||||
}
|
||||
|
||||
// 画面更新
|
||||
// 画面更新
|
||||
ags->close_menu_window(menu_window);
|
||||
if(clear_text) {
|
||||
ags->clear_text_window(text_window, true);
|
||||
@@ -322,7 +322,7 @@ void NACT_Sys3::cmd_set_verbobj2()
|
||||
|
||||
void NACT_Sys3::cmd_open_verb()
|
||||
{
|
||||
// 動詞メニューの表示
|
||||
// 動詞メニューの表示
|
||||
#if defined(_DEBUG_CONSOLE)
|
||||
char log[128];
|
||||
sprintf_s(log, 128, "\nopen verb-obj menu");
|
||||
@@ -330,7 +330,7 @@ void NACT_Sys3::cmd_open_verb()
|
||||
#endif
|
||||
verb_obj = false;
|
||||
|
||||
// 表示する動詞のチェック
|
||||
// 表示する動詞のチェック
|
||||
int chk[MAX_VERB], page = 0;
|
||||
|
||||
memset(chk, 0, sizeof(chk));
|
||||
@@ -338,7 +338,7 @@ void NACT_Sys3::cmd_open_verb()
|
||||
chk[menu_verb[i]] = 1;
|
||||
}
|
||||
|
||||
// メニュー項目の準備
|
||||
// メニュー項目の準備
|
||||
int id[32], index = 0;
|
||||
|
||||
ags->clear_menu_window();
|
||||
@@ -370,10 +370,10 @@ void NACT_Sys3::cmd_open_verb()
|
||||
|
||||
void NACT_Sys3::cmd_open_obj(int verb)
|
||||
{
|
||||
// 目的語メニューの表示
|
||||
// 目的語メニューの表示
|
||||
verb_obj = false;
|
||||
|
||||
// 表示する目的語のチェック
|
||||
// 表示する目的語のチェック
|
||||
int chk[MAX_OBJ], addr[MAX_OBJ], page = 0;
|
||||
|
||||
memset(chk, 0, sizeof(chk));
|
||||
@@ -383,16 +383,16 @@ void NACT_Sys3::cmd_open_obj(int verb)
|
||||
addr[menu_obj[i]] = menu_addr[i];
|
||||
}
|
||||
}
|
||||
// 目的語がない場合
|
||||
// 目的語がない場合
|
||||
if(chk[0]) {
|
||||
scenario_addr = addr[0];
|
||||
return;
|
||||
}
|
||||
// 以後、obj=0は戻るとして扱う
|
||||
// 以後、obj=0は戻るとして扱う
|
||||
chk[0] = 0;
|
||||
addr[0] = scenario_data[0] | (scenario_data[1] << 8);
|
||||
|
||||
// メニュー項目の準備
|
||||
// メニュー項目の準備
|
||||
int id[32], index = 0;
|
||||
|
||||
ags->clear_menu_window();
|
||||
@@ -408,10 +408,10 @@ void NACT_Sys3::cmd_open_obj(int verb)
|
||||
ags->menu_dest_y += ags->menu_font_size + 2;
|
||||
}
|
||||
}
|
||||
// 戻るを追加
|
||||
// 戻るを追加
|
||||
ags->menu_dest_x = 2;
|
||||
ags->menu_dest_y += 2;
|
||||
ags->draw_text("戻る");
|
||||
ags->draw_text("戻る");
|
||||
id[index++] = 0;
|
||||
ags->menu_dest_y += ags->menu_font_size + 2;
|
||||
ags->draw_menu = false;
|
||||
@@ -438,12 +438,12 @@ void NACT_Sys3::cmd_a()
|
||||
#endif
|
||||
|
||||
if(!text_skip_enb) {
|
||||
// Pushマークの表示
|
||||
// Pushマークの表示
|
||||
if(show_push) {
|
||||
ags->draw_push(text_window);
|
||||
}
|
||||
|
||||
// キーが押されて離されるまで待機
|
||||
// キーが押されて離されるまで待機
|
||||
for(;;) {
|
||||
if(terminate) {
|
||||
return;
|
||||
@@ -465,7 +465,7 @@ void NACT_Sys3::cmd_a()
|
||||
}
|
||||
}
|
||||
|
||||
// ウィンドウ更新
|
||||
// ウィンドウ更新
|
||||
ags->clear_text_window(text_window, true);
|
||||
}
|
||||
|
||||
@@ -486,7 +486,7 @@ void NACT_Sys3::cmd_b()
|
||||
#endif
|
||||
|
||||
if(cmd == 1) {
|
||||
// あゆみちゃん物語
|
||||
// あゆみちゃん物語
|
||||
if(crc32 == CRC32_AYUMI_CD || crc32 == CRC32_AYUMI_JISSHA_256 || crc32 == CRC32_AYUMI_JISSHA_FULL) {
|
||||
p5 = 1;
|
||||
}
|
||||
@@ -497,7 +497,7 @@ void NACT_Sys3::cmd_b()
|
||||
ags->menu_w[index - 1].ey = p4;
|
||||
ags->menu_w[index - 1].push = p5 ? true : false;
|
||||
|
||||
// 退避画面の破棄
|
||||
// 退避画面の破棄
|
||||
if(ags->menu_w[index - 1].screen) {
|
||||
free(ags->menu_w[index - 1].screen);
|
||||
ags->menu_w[index - 1].screen = NULL;
|
||||
@@ -512,21 +512,21 @@ void NACT_Sys3::cmd_b()
|
||||
ags->text_w[index - 1].ey = p4;
|
||||
ags->text_w[index - 1].push = p5 ? true : false;
|
||||
|
||||
// 退避画面の破棄
|
||||
// 退避画面の破棄
|
||||
if(ags->text_w[index - 1].screen) {
|
||||
free(ags->text_w[index - 1].screen);
|
||||
ags->text_w[index - 1].screen = NULL;
|
||||
}
|
||||
// 退避窓の破棄
|
||||
// 退避窓の破棄
|
||||
if(ags->text_w[index - 1].window) {
|
||||
free(ags->text_w[index - 1].window);
|
||||
ags->text_w[index - 1].window = NULL;
|
||||
}
|
||||
} else if(cmd == 4) {
|
||||
if(p5 == 0) {
|
||||
// ウィンドウ退避
|
||||
// ウィンドウ退避
|
||||
if(crc32 == CRC32_PROSTUDENTG_CD && p4) {
|
||||
// prostudent G オープニング画面化け対策
|
||||
// prostudent G オープニング画面化け対策
|
||||
if(ags->text_w[index - 1].window) {
|
||||
free(ags->text_w[index - 1].window);
|
||||
ags->text_w[index - 1].window = NULL;
|
||||
@@ -536,7 +536,7 @@ void NACT_Sys3::cmd_b()
|
||||
ags->open_text_window(index, p4 ? false : true);
|
||||
text_window = index;
|
||||
} else {
|
||||
// ウィンドウ復帰
|
||||
// ウィンドウ復帰
|
||||
ags->close_text_window(index, text_window == index ? true : false);
|
||||
}
|
||||
}
|
||||
@@ -544,7 +544,7 @@ void NACT_Sys3::cmd_b()
|
||||
|
||||
void NACT_Sys3::cmd_d()
|
||||
{
|
||||
// 未使用
|
||||
// 未使用
|
||||
}
|
||||
|
||||
void NACT_Sys3::cmd_e()
|
||||
@@ -604,12 +604,12 @@ void NACT_Sys3::cmd_h()
|
||||
output_console(log);
|
||||
#endif
|
||||
|
||||
// 隠しコマンド?
|
||||
// 隠しコマンド?
|
||||
if(length >= 9) {
|
||||
return;
|
||||
}
|
||||
|
||||
// 8桁の文字列を生成
|
||||
// 8桁の文字列を生成
|
||||
char tmp[8];
|
||||
tmp[0] = '0';
|
||||
tmp[1] = '0';
|
||||
@@ -626,7 +626,7 @@ void NACT_Sys3::cmd_h()
|
||||
tmp[i] = ' ';
|
||||
}
|
||||
|
||||
// 指定した桁数だけ出力
|
||||
// 指定した桁数だけ出力
|
||||
char string[9];
|
||||
int p = 0;
|
||||
if(length == 0) {
|
||||
@@ -659,7 +659,7 @@ void NACT_Sys3::cmd_i()
|
||||
output_console(log);
|
||||
#endif
|
||||
|
||||
// X方向はカラム単位で切り捨て
|
||||
// X方向はカラム単位で切り捨て
|
||||
sx = column ? sx * 8 : sx & 0xfff8;
|
||||
ex = column ? ex * 8 - 1 : (crc32 == CRC32_NINGYO) ? (ex & 0xfff8) + 7 : (ex & 0xfff8) - 1;
|
||||
dx = column ? dx * 8 : dx & 0xfff8;
|
||||
@@ -677,7 +677,7 @@ void NACT_Sys3::cmd_j()
|
||||
output_console(log);
|
||||
#endif
|
||||
|
||||
// x方向はカラム単位で切り捨て
|
||||
// x方向はカラム単位で切り捨て
|
||||
ags->cg_dest_x = column ? x * 8 : x & 0xfff8;
|
||||
ags->cg_dest_y = y;
|
||||
ags->set_cg_dest = true;
|
||||
@@ -693,17 +693,17 @@ void NACT_Sys3::cmd_k()
|
||||
output_console(log);
|
||||
#endif
|
||||
|
||||
// K6の場合は、すぐに返る
|
||||
// K6の場合は、すぐに返る
|
||||
if(cmd == 6) {
|
||||
RND = get_key();
|
||||
return;
|
||||
}
|
||||
|
||||
// マウスの初期取得
|
||||
// マウスの初期取得
|
||||
int mx, my;
|
||||
get_cursor(&mx, &my);
|
||||
|
||||
// キーが押されるまで待機
|
||||
// キーが押されるまで待機
|
||||
for(;;) {
|
||||
if(terminate) {
|
||||
return;
|
||||
@@ -712,7 +712,7 @@ void NACT_Sys3::cmd_k()
|
||||
break;
|
||||
}
|
||||
if(1 <= cmd && cmd <= 3) {
|
||||
// マウス対応
|
||||
// マウス対応
|
||||
int x, y, dx, dy;
|
||||
get_cursor(&x, &y);
|
||||
dx = (x < mx) ? mx - x : x - mx;
|
||||
@@ -740,7 +740,7 @@ void NACT_Sys3::cmd_k()
|
||||
RND = val;
|
||||
}
|
||||
|
||||
// キーが離されるまで待機
|
||||
// キーが離されるまで待機
|
||||
if(cmd != 1) {
|
||||
SDL_Delay(100);
|
||||
for(;;) {
|
||||
@@ -754,7 +754,7 @@ void NACT_Sys3::cmd_k()
|
||||
}
|
||||
}
|
||||
|
||||
// K0の場合は改行
|
||||
// K0の場合は改行
|
||||
if(cmd == 0) {
|
||||
cmd_r();
|
||||
}
|
||||
@@ -771,7 +771,7 @@ void NACT_Sys3::cmd_l()
|
||||
#endif
|
||||
|
||||
if(index == 0) {
|
||||
// 特殊セーブ
|
||||
// 特殊セーブ
|
||||
FILEIO* fio = new FILEIO();
|
||||
if(fio->Fopen("ASLEEP.DAT", FILEIO_READ_BINARY | FILEIO_SAVEDATA)) {
|
||||
// U01 - U20
|
||||
@@ -1029,7 +1029,7 @@ void NACT_Sys3::cmd_q()
|
||||
{
|
||||
static char header[112] = {
|
||||
#if 0
|
||||
// 夢幻泡影についてきたASLEEP_A.DATのヘッダ
|
||||
// 夢幻泡影についてきたASLEEP_A.DATのヘッダ
|
||||
'T', 'h', 'i', 's', ' ', 'i', 's', ' ', 's', 'a', 'v', 'e', ' ', 'd', 'a', 't',
|
||||
'a', ' ', 'f', 'o', 'r', ' ', 'S', 'y', 's', 't', 'e', 'm', '3', ' ', ' ', 'U',
|
||||
'n', 'i', 'o', 'n', ' ', '[', 'P', 'C', '9', '8', '0', '1', ':', 'F', 'M', 'T',
|
||||
@@ -1038,7 +1038,7 @@ void NACT_Sys3::cmd_q()
|
||||
' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', '(', 'C', ')', '1', '9', '9',
|
||||
'4', ' ', 'A', 'L', 'I', 'C', 'E', '-', 'S', 'O', 'F', 'T', ' ', ' ', ' ', ' '
|
||||
#else
|
||||
// 偽ヘッダ
|
||||
// 偽ヘッダ
|
||||
'T', 'h', 'i', 's', ' ', 'i', 's', ' ', 's', 'a', 'v', 'e', ' ', 'd', 'a', 't',
|
||||
'a', ' ', 'f', 'o', 'r', ' ', 'S', 'y', 's', 't', 'e', 'm', '3', ' ', ' ', 'U',
|
||||
'n', 'i', 'o', 'n', ' ', '[', 'W', 'i', 'n', '9', 'x', '/', 'N', 'T', '4', '0',
|
||||
@@ -1058,7 +1058,7 @@ void NACT_Sys3::cmd_q()
|
||||
#endif
|
||||
|
||||
if(index == 0) {
|
||||
// 特殊セーブ
|
||||
// 特殊セーブ
|
||||
FILEIO* fio = new FILEIO();
|
||||
if(fio->Fopen("ASLEEP.DAT", FILEIO_WRITE_BINARY | FILEIO_SAVEDATA)) {
|
||||
// U01 - U20
|
||||
@@ -1155,7 +1155,7 @@ void NACT_Sys3::cmd_r()
|
||||
output_console(log);
|
||||
#endif
|
||||
|
||||
// ウィンドウの表示範囲外の場合は改ページ
|
||||
// ウィンドウの表示範囲外の場合は改ページ
|
||||
if(ags->return_text_line(text_window)) {
|
||||
cmd_a();
|
||||
}
|
||||
@@ -1189,7 +1189,7 @@ void NACT_Sys3::cmd_t()
|
||||
output_console(log);
|
||||
#endif
|
||||
|
||||
// x方向はカラム単位で切り捨て
|
||||
// x方向はカラム単位で切り捨て
|
||||
ags->text_dest_x = column ? x * 8 : x & 0xfff8;
|
||||
ags->text_dest_y = y;
|
||||
}
|
||||
@@ -1454,7 +1454,7 @@ void NACT_Sys3::cmd_y()
|
||||
M_X = (x < 0) ? x : (x > 639) ? 639 : x;
|
||||
M_Y = (y < 0) ? 0 : (y > 479) ? 479 : y;
|
||||
if((RND = get_key())) {
|
||||
// キー入力があった場合は、離すまで待機
|
||||
// キー入力があった場合は、離すまで待機
|
||||
for(;;) {
|
||||
if(terminate) {
|
||||
return;
|
||||
@@ -1523,8 +1523,8 @@ void NACT_Sys3::cmd_y()
|
||||
RND = mako->check_pcm() ? 1 : 0;
|
||||
break;
|
||||
case 106:
|
||||
// 乙女戦記で使用している謎のコマンド
|
||||
// 多分PCM関連
|
||||
// 乙女戦記で使用している謎のコマンド
|
||||
// 多分PCM関連
|
||||
break;
|
||||
case 221:
|
||||
case 222:
|
||||
@@ -1628,7 +1628,7 @@ void NACT_Sys3::cmd_y()
|
||||
path[2] = '\\';
|
||||
path[3] = '\0';
|
||||
UINT t = GetDriveType(path);
|
||||
// フロッピーから起動した場合は0が返る
|
||||
// フロッピーから起動した場合は0が返る
|
||||
//RND = (t == DRIVE_REMOVABLE) ? 0 : (t == DRIVE_CDROM) ? 2 : 1;
|
||||
RND = (t == DRIVE_CDROM) ? 2 : 1;
|
||||
#else
|
||||
@@ -1688,7 +1688,7 @@ void NACT_Sys3::cmd_z()
|
||||
}
|
||||
|
||||
|
||||
// 下位関数
|
||||
// 下位関数
|
||||
|
||||
uint16 NACT_Sys3::cali()
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user