• R/O
  • SSH
  • HTTPS

gpsp-kai: Commit


Commit MetaInfo

Revision574 (tree)
Time2010-03-12 00:58:36
Authortakka

Log Message

(empty log message)

Change Summary

Incremental Difference

--- trunk/iso_tool/screen.c (revision 573)
+++ trunk/iso_tool/screen.c (revision 574)
@@ -1089,6 +1089,18 @@
10891089 ret = DONE;
10901090 break;
10911091
1092+ case MSG_REDROW:
1093+ make_window("", MSG_WIN_X1, MSG_WIN_Y1, MSG_WIN_X2, MSG_WIN_Y2, 0);
1094+
1095+ for(loop = 0; loop < MSG_WIN_LINE; loop++)
1096+ print_xy(MSG_WIN_X1 + 1, MSG_WIN_Y1 + 1 + loop, text[loop], 1, 1, MSG_WIN_LEN);
1097+
1098+ if(beep_flg == 1)
1099+ beep();
1100+
1101+ ret = DONE;
1102+ break;
1103+
10921104 default:
10931105 break;
10941106 }
--- trunk/iso_tool/screen.h (revision 573)
+++ trunk/iso_tool/screen.h (revision 574)
@@ -14,8 +14,7 @@
1414 MSG_CLEAR,
1515 MSG_WAIT,
1616 MSG_LINE,
17- MSG_KEY,
18- MSG_YES_NO
17+ MSG_REDROW
1918 } msg_win_command;
2019
2120 /*---------------------------------------------------------------------------
--- trunk/iso_tool/Makefile (revision 573)
+++ trunk/iso_tool/Makefile (revision 574)
@@ -8,7 +8,7 @@
88
99 #CLASSG_LIBS = libs
1010
11-VERSION = 1.02
11+VERSION = 1.03
1212
1313 INCDIR = $(CLASSG_LIBS)
1414 CFLAGS = -O3 -G0 -Wall -fno-strict-aliasing -fno-builtin-printf -mno-check-zero-division -DVERSION=$(VERSION)
--- trunk/iso_tool/menu.c (revision 573)
+++ trunk/iso_tool/menu.c (revision 574)
@@ -642,6 +642,8 @@
642642 char *text[15]; // テキスト表示用
643643 char msg[256]; // テキスト表示用
644644 char work[256]; // テキスト表示用
645+ char ext[10];
646+ char ren_path[MAX_PATH];
645647
646648 int ret;
647649 SceCtrlData data;
@@ -653,6 +655,9 @@
653655 pspTime date3;
654656 int first_wait = 0;
655657
658+ strcpy(ren_path, out_path);
659+ strcpy(&ren_path[strlen(out_path - 3)], "TMP");
660+
656661 msg_win("", 0, MSG_CLEAR, 0);
657662 sjis_to_utf8(work, strrchr(out_path, '/') + 1);
658663 sprintf(msg, "出力名:%s", work);
@@ -699,8 +704,9 @@
699704 // open設定
700705 fp_in = sceIoOpen("umd:", PSP_O_RDONLY, 0777);
701706 ERR_RET_2(fp_in, ERR_OPEN);
702- fp_out = sceIoOpen(out_path, PSP_O_WRONLY | PSP_O_CREAT | PSP_O_TRUNC, 0777);
707+ fp_out = sceIoOpen(ren_path, PSP_O_WRONLY | PSP_O_CREAT | PSP_O_TRUNC, 0777);
703708 ERR_RET_2(fp_out, ERR_OPEN);
709+
704710 break;
705711
706712 case TRANS_UMD_CSO:
@@ -727,8 +733,9 @@
727733 // open設定
728734 fp_in = sceIoOpen("umd:", PSP_O_RDONLY, 0777);
729735 ERR_RET_2(fp_in, ERR_OPEN);
730- fp_out = sceIoOpen(out_path, PSP_O_WRONLY | PSP_O_CREAT | PSP_O_TRUNC, 0777);
736+ fp_out = sceIoOpen(ren_path, PSP_O_WRONLY | PSP_O_CREAT | PSP_O_TRUNC, 0777);
731737 ERR_RET_2(fp_out, ERR_OPEN);
738+
732739 break;
733740
734741 case TRANS_ISO_CSO:
@@ -757,8 +764,9 @@
757764 // open設定
758765 fp_in = sceIoOpen(in_path, PSP_O_RDONLY, 0777);
759766 ERR_RET_2(fp_in, ERR_OPEN);
760- fp_out = sceIoOpen(out_path, PSP_O_WRONLY | PSP_O_CREAT | PSP_O_TRUNC, 0777);
767+ fp_out = sceIoOpen(ren_path, PSP_O_WRONLY | PSP_O_CREAT | PSP_O_TRUNC, 0777);
761768 ERR_RET_2(fp_out, ERR_OPEN);
769+
762770 break;
763771
764772 case TRANS_CSO_ISO:
@@ -783,7 +791,7 @@
783791 // open設定
784792 fp_in = sceIoOpen(in_path, PSP_O_RDONLY, 0777);
785793 ERR_RET_2(fp_in, ERR_OPEN);
786- fp_out = sceIoOpen(out_path, PSP_O_WRONLY | PSP_O_CREAT | PSP_O_TRUNC, 0777);
794+ fp_out = sceIoOpen(ren_path, PSP_O_WRONLY | PSP_O_CREAT | PSP_O_TRUNC, 0777);
787795 ERR_RET_2(fp_out, ERR_OPEN);
788796
789797 ret = sceIoRead(fp_in, &header, CISO_HEADER_SIZE);
@@ -958,7 +966,8 @@
958966 ret = -1;
959967 goto LABEL_ERR;
960968 }
961- msg_win("Resume", 0, MSG_LINE, 2);
969+ dir_menu(NULL, YES);
970+ msg_win("", 0, MSG_REDROW, 0);
962971 }
963972
964973 msg_win("Wait READ", 0, MSG_LINE, 4);
@@ -1008,6 +1017,8 @@
10081017
10091018 if(ret != -1)
10101019 {
1020+ sceIoRename(ren_path, out_path);
1021+
10111022 text[0] = "変換完了";
10121023 text[1] = "◎を押してください";
10131024 text[2] = "\0";
--- trunk/iso_tool/update.txt (revision 573)
+++ trunk/iso_tool/update.txt (revision 574)
@@ -1,3 +1,9 @@
1+*1.03
2+[UPDATE] ISO/CSO変換の復帰時にYES/NOダイアログを残さないように変更
3+[BUG] readme.txtにISO/CSO変換の中止について記載
4+[BUG] 破損ファイルによりXMBからメモステが開けないのを防ぐために、変換後にリネームをする処理を追加
5+[BUG] オンラインアップデート時のタイムアウトを30秒に設定
6+
17 *1.02
28 [UPDATE] キーリピートの追加
39 [BUG] 再起動/終了時にキャンセルするとエラーメッセージが表示されてしまうのを修正
--- trunk/iso_tool/readme.txt (revision 573)
+++ trunk/iso_tool/readme.txt (revision 574)
@@ -27,7 +27,7 @@
2727 U/Dキー ファイル/項目の選択
2828 L/Rキー ディレクトリの移動
2929 ○ボタン 通常メニューの表示/選択
30- ×ボタン キャンセル
30+ ×ボタン キャンセル・ISO/CSO変換の中止
3131 △ボタン システムメニューの表示
3232
3333 4)通常メニュー
@@ -59,6 +59,9 @@
5959 終了 iso_toolを終了します
6060
6161 6)補足説明
62+ ・ISO/CSO変換の中止について
63+ ×ボタンで中止確認画面がでます
64+ 処理単位ごとに確認しているので、表示が出まで押し続けて下さい
6265 ・CSO変換について
6366 圧縮レベル 1(低圧縮) - 9(高圧縮)
6467 数値が大きい方がファイルサイズを小さくできますが、圧縮に時間がかかります
Show on old repository browser