(empty log message)
@@ -1,6 +1,10 @@ | ||
1 | 1 | -- gameplaySP Gameboy Advance emulator for Playstation Portable -- |
2 | 2 | |
3 | 3 | -- Release log -- |
4 | +-UnOfficial gpSP kai 3.1 test 16 svn rev. | |
5 | + 一部のROMで画面が乱れるのを修正 | |
6 | + サスペンドの反応速度向上 | |
7 | + | |
4 | 8 | -UnOfficial gpSP kai 3.1 test 15 svn rev.213 |
5 | 9 | HOMEボタンを押したときにメニューに移行する様にした |
6 | 10 | HOMEを押したときの反応を向上 |
@@ -660,7 +660,7 @@ | ||
660 | 660 | |
661 | 661 | // TODO:初期設定に移動 |
662 | 662 | sound_read_offset = 0; |
663 | - memset(buffer, 0, sizeof(buffer)); | |
663 | + memset(buffer, 0, SAMPLE_SIZE * 2 * 2); | |
664 | 664 | left_buffer = 0; |
665 | 665 | |
666 | 666 | // メインループ |
@@ -685,7 +685,10 @@ | ||
685 | 685 | } |
686 | 686 | else |
687 | 687 | { |
688 | - buffer_num = 0; // オール0のサウンドデータを再生 | |
688 | + if (pause_sound_flag == 1) | |
689 | + buffer_num = 0; // 全て0のデーターを再生 | |
690 | + else | |
691 | + buffer_num = 1; // 前回のデーターをそのまま再生 | |
689 | 692 | } |
690 | 693 | sceAudioOutputPannedBlocking(audio_handle, PSP_AUDIO_VOLUME_MAX, PSP_AUDIO_VOLUME_MAX, &buffer[buffer_num][0]); |
691 | 694 | sceKernelDelayThread(SAMPLE_COUNT / 44100 * 1000 * 1000 * 0.5); |
@@ -2488,7 +2488,7 @@ | ||
2488 | 2488 | { 0x0, 0x0 }, // SWI 5: VBlankIntrWait |
2489 | 2489 | { 0x1, 0x1 }, // SWI 6: Div |
2490 | 2490 | { 0x1, 0x1 }, // SWI 7: DivArm |
2491 | - { 0x0, 0x1 }, // SWI 8: Sqrt | |
2491 | + { 0x1, 0x1 }, // SWI 8: Sqrt | |
2492 | 2492 | { 0x0, 0x0 }, // SWI 9: ArcTan |
2493 | 2493 | { 0x0, 0x0 }, // SWI A: ArcTan2 |
2494 | 2494 | { 0x0, 0x1 }, // SWI B: CpuSet |
@@ -2529,6 +2529,12 @@ | ||
2529 | 2529 | u32 swi_number = _swi_number; \ |
2530 | 2530 | if(swi_hle_handle[swi_number][bios_mode]) \ |
2531 | 2531 | { \ |
2532 | + /* Halt */ \ | |
2533 | + if(swi_number == 0x02) \ | |
2534 | + { \ | |
2535 | + generate_function_call(bios_halt); \ | |
2536 | + } \ | |
2537 | + \ | |
2532 | 2538 | /* Div */ \ |
2533 | 2539 | if(swi_number == 0x06) \ |
2534 | 2540 | { \ |
@@ -20,6 +20,8 @@ | ||
20 | 20 | |
21 | 21 | #include "common.h" |
22 | 22 | |
23 | +static u32 reg_work[100]; | |
24 | + | |
23 | 25 | #define save_reg() \ |
24 | 26 | asm( "\n \ |
25 | 27 | sw $3, 0(%0)\n \ |
@@ -37,7 +39,8 @@ | ||
37 | 39 | sw $18, 40(%0)\n \ |
38 | 40 | sw $28, 52(%0)\n \ |
39 | 41 | sw $30, 64(%0)\n \ |
40 | - "::"r"(reg)); \ | |
42 | + lw $28, 128(%0)\n \ | |
43 | + "::"r"(reg_work)); \ | |
41 | 44 | |
42 | 45 | #define load_reg() \ |
43 | 46 | asm( "\n \ |
@@ -56,7 +59,7 @@ | ||
56 | 59 | lw $18, 40(%0)\n \ |
57 | 60 | lw $28, 52(%0)\n \ |
58 | 61 | lw $30, 64(%0)\n \ |
59 | - "::"r"(reg)); \ | |
62 | + "::"r"(reg_work)); \ | |
60 | 63 | |
61 | 64 | s16 b_sinetable[256] = { |
62 | 65 | (s16)0x0000, (s16)0x0192, (s16)0x0323, (s16)0x04B5, (s16)0x0645, (s16)0x07D5, (s16)0x0964, (s16)0x0AF1, |
@@ -145,7 +145,8 @@ | ||
145 | 145 | #define tile_lookup_palette(palette, source) \ |
146 | 146 | current_pixel = palette[source]; \ |
147 | 147 | |
148 | -#define tile_expand_base_normal(index) \ | |
148 | +// palette 0 に対応 | |
149 | +#define tile_expand_base_normal_p0(index) \ | |
149 | 150 | if (current_pixel != 0) \ |
150 | 151 | { \ |
151 | 152 | tile_lookup_palette(palette, current_pixel); \ |
@@ -152,6 +153,10 @@ | ||
152 | 153 | dest_ptr[index] = current_pixel; \ |
153 | 154 | } \ |
154 | 155 | |
156 | +#define tile_expand_base_normal(index) \ | |
157 | + tile_lookup_palette(palette, current_pixel); \ | |
158 | + dest_ptr[index] = current_pixel \ | |
159 | + | |
155 | 160 | #define tile_expand_transparent_normal(index) \ |
156 | 161 | tile_expand_base_normal(index) \ |
157 | 162 |
@@ -598,6 +603,7 @@ | ||
598 | 603 | current_pixel = palette[0]; \ |
599 | 604 | tile_4bpp_draw_eight_base_zero(current_pixel) \ |
600 | 605 | |
606 | + | |
601 | 607 | // Draws eight 4bpp pixels. |
602 | 608 | |
603 | 609 | #define tile_4bpp_draw_eight_noflip(combine_op, alpha_op) \ |
@@ -1289,7 +1295,7 @@ | ||
1289 | 1295 | *dest_ptr = current_pixel \ |
1290 | 1296 | |
1291 | 1297 | #define bitmap_render_pixel_mode4(alpha_op) \ |
1292 | - tile_expand_base_##alpha_op(0) \ | |
1298 | + tile_expand_base_##alpha_op##_p0(0) \ | |
1293 | 1299 | |
1294 | 1300 | #define bitmap_render_pixel_mode5(alpha_op) \ |
1295 | 1301 | bitmap_render_pixel_mode3(alpha_op) \ |
@@ -1396,17 +1402,17 @@ | ||
1396 | 1402 | #define render_scanline_vram_setup_mode5() \ |
1397 | 1403 | u16 *src_ptr; \ |
1398 | 1404 | if(io_registers[REG_DISPCNT] & 0x10) \ |
1399 | - src_ptr = (u16 *)vram + 0xA000; \ | |
1405 | + src_ptr = (u16*)(vram + 0xA000); \ | |
1400 | 1406 | else \ |
1401 | - src_ptr = (u16 *)vram \ | |
1407 | + src_ptr = (u16*)vram \ | |
1402 | 1408 | |
1403 | 1409 | #define render_scanline_vram_setup_mode4() \ |
1404 | 1410 | u16 *palette = palette_ram; \ |
1405 | 1411 | u8 *src_ptr; \ |
1406 | 1412 | if(io_registers[REG_DISPCNT] & 0x10) \ |
1407 | - src_ptr = (u8 *)vram + 0xA000; \ | |
1413 | + src_ptr = (u8*)(vram + 0xA000); \ | |
1408 | 1414 | else \ |
1409 | - src_ptr = (u8 *)vram \ | |
1415 | + src_ptr = (u8*)(vram) \ | |
1410 | 1416 | |
1411 | 1417 | // Build bitmap scanline rendering functions. |
1412 | 1418 |
@@ -1414,10 +1420,8 @@ | ||
1414 | 1420 | void render_scanline_bitmap_##type##_##alpha_op(u32 start, u32 end, \ |
1415 | 1421 | void *scanline) \ |
1416 | 1422 | { \ |
1417 | - /*u32 bg_control = io_registers[REG_BG2CNT];*/ \ | |
1418 | 1423 | u32 current_pixel; \ |
1419 | 1424 | s32 source_x, source_y; \ |
1420 | - /*u32 vcount = io_registers[REG_VCOUNT];*/ \ | |
1421 | 1425 | s32 pixel_x, pixel_y; \ |
1422 | 1426 | \ |
1423 | 1427 | s32 dx = (s16)io_registers[REG_BG2PA]; \ |
@@ -2184,7 +2188,7 @@ | ||
2184 | 2188 | |
2185 | 2189 | |
2186 | 2190 | #define fill_line_color_normal() \ |
2187 | - color = palette_ram[color] \ | |
2191 | + color = palette_ram[color] \ | |
2188 | 2192 | |
2189 | 2193 | #define fill_line_color_alpha() \ |
2190 | 2194 |
@@ -2464,7 +2468,6 @@ | ||
2464 | 2468 | #define fill_line_bg(type, dest, _start, _end) \ |
2465 | 2469 | fill_line_##type(0, dest, _start, _end) \ |
2466 | 2470 | |
2467 | - | |
2468 | 2471 | // Render all layers as they appear in the layer order. |
2469 | 2472 | |
2470 | 2473 | #define render_layers(tile_alpha, obj_alpha, dest) \ |
@@ -2672,9 +2675,12 @@ | ||
2672 | 2675 | render_scanline_layer_functions_bitmap(); |
2673 | 2676 | u32 current_layer; |
2674 | 2677 | u32 layer_order_pos; |
2678 | + u32 *scanline2 = (u32*)scanline; | |
2675 | 2679 | |
2676 | - // ラインをパレット0で埋める | |
2677 | - fill_line_bg(normal, scanline, 0, 240); | |
2680 | + // ラインをパレット0で埋める(32bitアクセスで高速化) | |
2681 | + u32 color = (u32)palette_ram[0]; | |
2682 | + color = color << 16 || color; | |
2683 | + fill_line_color32(color, scanline2, 0, 240/2); | |
2678 | 2684 | |
2679 | 2685 | for(layer_order_pos = 0; layer_order_pos < layer_count; layer_order_pos++) |
2680 | 2686 | { |
@@ -71,17 +71,17 @@ | ||
71 | 71 | ローカル変数 |
72 | 72 | ***************************************************************************/ |
73 | 73 | |
74 | -static int Server; | |
74 | +static u32 Server; | |
75 | 75 | static int pdpId; |
76 | 76 | |
77 | -static char g_mac[16]; | |
77 | +static unsigned char g_mac[16]; | |
78 | 78 | static char g_mymac[16]; |
79 | -static int g_unk1; | |
80 | -static int g_matchEvent; | |
81 | -static int g_matchOptLen; | |
79 | +static u32 g_unk1; | |
80 | +static u32 g_matchEvent; | |
81 | +static u32 g_matchOptLen; | |
82 | 82 | static char g_matchOptData[1000]; |
83 | 83 | static char g_matchingData[32]; |
84 | -static int matchChanged; | |
84 | +static u32 matchChanged; | |
85 | 85 | static int matchingId; |
86 | 86 | |
87 | 87 | static struct psplist_t |
@@ -90,8 +90,8 @@ | ||
90 | 90 | char mac[6]; |
91 | 91 | } psplist[NUM_ENTRIES]; |
92 | 92 | |
93 | -static int adhoc_max; | |
94 | -static int ahdoc_pos; | |
93 | +static u32 adhoc_max; | |
94 | +static u32 ahdoc_pos; | |
95 | 95 | |
96 | 96 | /*************************************************************************** |
97 | 97 | ローカル関数 |
@@ -101,7 +101,7 @@ | ||
101 | 101 | プログレスバー初期化 |
102 | 102 | --------------------------------------------------------*/ |
103 | 103 | |
104 | -static void adhoc_init_progress(int total, const char *text) | |
104 | +static void adhoc_init_progress(u32 total, const char *text) | |
105 | 105 | { |
106 | 106 | char buf[MAX_FILE]; |
107 | 107 |
@@ -137,9 +137,9 @@ | ||
137 | 137 | リストに追加 |
138 | 138 | --------------------------------------------------------*/ |
139 | 139 | |
140 | -static int AddPsp(char *mac, char *name, int length) | |
140 | +static u32 AddPsp(char *mac, char *name, u32 length) | |
141 | 141 | { |
142 | - int i; | |
142 | + u32 i; | |
143 | 143 | |
144 | 144 | if (adhoc_max == NUM_ENTRIES) |
145 | 145 | return 0; |
@@ -173,9 +173,9 @@ | ||
173 | 173 | リストから削除 |
174 | 174 | --------------------------------------------------------*/ |
175 | 175 | |
176 | -static int DelPsp(char *mac) | |
176 | +static u32 DelPsp(char *mac) | |
177 | 177 | { |
178 | - int i, j; | |
178 | + u32 i, j; | |
179 | 179 | |
180 | 180 | for (i = 0; i < adhoc_max; i++) |
181 | 181 | { |
@@ -207,7 +207,7 @@ | ||
207 | 207 | リストを表示 |
208 | 208 | --------------------------------------------------------*/ |
209 | 209 | |
210 | -static void DisplayPspList(int top, int rows) | |
210 | +static void DisplayPspList(u32 top, u32 rows) | |
211 | 211 | { |
212 | 212 | if (adhoc_max == 0) |
213 | 213 | { |
@@ -216,7 +216,7 @@ | ||
216 | 216 | } |
217 | 217 | else |
218 | 218 | { |
219 | - int i; | |
219 | + u32 i; | |
220 | 220 | char temp[20]; |
221 | 221 | |
222 | 222 | // 画面表示 |
@@ -254,7 +254,7 @@ | ||
254 | 254 | 選択中のPSPの情報を取得 |
255 | 255 | --------------------------------------------------------*/ |
256 | 256 | |
257 | -static int GetPspEntry(char *mac, char *name) | |
257 | +static u32 GetPspEntry(char *mac, char *name) | |
258 | 258 | { |
259 | 259 | if (adhoc_max == 0) |
260 | 260 | return -1; |
@@ -269,8 +269,7 @@ | ||
269 | 269 | Matching callback |
270 | 270 | --------------------------------------------------------*/ |
271 | 271 | |
272 | -static void matchingCallback(int unk1, int event, char *mac2, int optLen, | |
273 | - char *optData) | |
272 | +static void matchingCallback(int unk1, int event, char *mac2, int optLen, char *optData) | |
274 | 273 | { |
275 | 274 | switch (event) |
276 | 275 | { |
@@ -301,9 +300,9 @@ | ||
301 | 300 | モジュールのロード |
302 | 301 | --------------------------------------------------------*/ |
303 | 302 | |
304 | -int pspSdkLoadAdhocModules(void) | |
303 | +u32 pspSdkLoadAdhocModules(void) | |
305 | 304 | { |
306 | - int modID; | |
305 | + u32 modID; | |
307 | 306 | |
308 | 307 | modID = pspSdkLoadStartModule("flash0:/kd/ifhandle.prx", PSP_MEMORY_PARTITION_KERNEL); |
309 | 308 | if (modID < 0) |
@@ -351,7 +350,7 @@ | ||
351 | 350 | 初期化 |
352 | 351 | --------------------------------------------------------*/ |
353 | 352 | |
354 | -int adhocInit(const char *matchingData) | |
353 | +u32 adhocInit(const char *matchingData) | |
355 | 354 | { |
356 | 355 | struct productStruct product; |
357 | 356 | int error = 0, state = 0; |
@@ -458,7 +457,7 @@ | ||
458 | 457 | 切断 |
459 | 458 | --------------------------------------------------------*/ |
460 | 459 | |
461 | -int adhocTerm(void) | |
460 | +u32 adhocTerm(void) | |
462 | 461 | { |
463 | 462 | adhoc_init_progress(5, "DISCONNECTING"); |
464 | 463 |
@@ -521,7 +520,7 @@ | ||
521 | 520 | SSIDを指定して再接続 |
522 | 521 | --------------------------------------------------------*/ |
523 | 522 | |
524 | -int adhocReconnect(char *ssid) | |
523 | +u32 adhocReconnect(char *ssid) | |
525 | 524 | { |
526 | 525 | int error = 0, state = 1; |
527 | 526 | char mac[20], buf[256]; |
@@ -626,13 +625,13 @@ | ||
626 | 625 | 接続先の選択 |
627 | 626 | --------------------------------------------------------*/ |
628 | 627 | |
629 | -int adhocSelect(void) | |
628 | +u32 adhocSelect(void) | |
630 | 629 | { |
631 | - int top = 0; | |
632 | - int rows = 11; | |
633 | - int currentState= PSP_LISTING; | |
634 | - int prev_max = 0; | |
635 | - int update = 1; | |
630 | + u32 top = 0; | |
631 | + u32 rows = 11; | |
632 | + u32 currentState= PSP_LISTING; | |
633 | + u32 prev_max = 0; | |
634 | + u32 update = 1; | |
636 | 635 | char mac[16]; |
637 | 636 | char name[64]; |
638 | 637 | char temp[64]; |
@@ -829,9 +828,9 @@ | ||
829 | 828 | データ送信 |
830 | 829 | --------------------------------------------------------*/ |
831 | 830 | |
832 | -int adhocSend(void *buffer, int length) | |
831 | +u32 adhocSend(void *buffer, u32 length) | |
833 | 832 | { |
834 | - if (sceNetAdhocPdpSend(pdpId, g_mac, 0x309, buffer, length, 0, 1) < 0) | |
833 | + if (sceNetAdhocPdpSend(pdpId, g_mac, 0x309, buffer, (int)length, 0, 1) < 0) | |
835 | 834 | return 0; |
836 | 835 | return length; |
837 | 836 | } |
@@ -840,10 +839,10 @@ | ||
840 | 839 | データ受信 |
841 | 840 | --------------------------------------------------------*/ |
842 | 841 | |
843 | -int adhocRecv(void *buffer, int length) | |
842 | +u32 adhocRecv(void *buffer, u32 length) | |
844 | 843 | { |
845 | - int port = 0; | |
846 | - char mac[6]; | |
844 | + unsigned short port = 0; | |
845 | + unsigned char mac[6]; | |
847 | 846 | |
848 | 847 | if (sceNetAdhocPdpRecv(pdpId, mac, &port, buffer, &length, 0, 1) < 0) |
849 | 848 | return 0; |
@@ -854,7 +853,7 @@ | ||
854 | 853 | データ送信を待つ |
855 | 854 | --------------------------------------------------------*/ |
856 | 855 | |
857 | -int adhocSendBlocking(void *buffer, int length) | |
856 | +u32 adhocSendBlocking(void *buffer, u32 length) | |
858 | 857 | { |
859 | 858 | if (sceNetAdhocPdpSend(pdpId, g_mac, 0x309, buffer, length, ADHOC_TIMEOUT, 0) < 0) |
860 | 859 | return 0; |
@@ -865,10 +864,10 @@ | ||
865 | 864 | データ受信を待つ |
866 | 865 | --------------------------------------------------------*/ |
867 | 866 | |
868 | -int adhocRecvBlocking(void *buffer, int length) | |
867 | +u32 adhocRecvBlocking(void *buffer, u32 length) | |
869 | 868 | { |
870 | - int port = 0; | |
871 | - char mac[6]; | |
869 | + unsigned short port = 0; | |
870 | + unsigned char mac[6]; | |
872 | 871 | |
873 | 872 | if (sceNetAdhocPdpRecv(pdpId, mac, &port, buffer, &length, ADHOC_TIMEOUT, 0) |
874 | 873 | < 0) |
@@ -880,10 +879,10 @@ | ||
880 | 879 | データ受信を待つ(タイムアウト指定) |
881 | 880 | --------------------------------------------------------*/ |
882 | 881 | |
883 | -int adhocRecvBlockingTimeout(void *buffer, int length, int timeout) | |
882 | +u32 adhocRecvBlockingTimeout(void *buffer, u32 length, u32 timeout) | |
884 | 883 | { |
885 | - int port = 0; | |
886 | - char mac[6]; | |
884 | + unsigned short port = 0; | |
885 | + unsigned char mac[6]; | |
887 | 886 | |
888 | 887 | if (sceNetAdhocPdpRecv(pdpId, mac, &port, buffer, &length, timeout, 0) < 0) |
889 | 888 | return 0; |
@@ -894,11 +893,11 @@ | ||
894 | 893 | データを送信し、ackを受信するまで待つ |
895 | 894 | --------------------------------------------------------*/ |
896 | 895 | |
897 | -int adhocSendRecvAck(void *buffer, int length) | |
896 | +u32 adhocSendRecvAck(void *buffer, u32 length) | |
898 | 897 | { |
899 | - int ack_data = 0; | |
900 | - int tempLen = length; | |
901 | - int sentCount = 0; | |
898 | + u32 ack_data = 0; | |
899 | + u32 tempLen = length; | |
900 | + u32 sentCount = 0; | |
902 | 901 | u8 *buf = (u8 *)buffer; |
903 | 902 | |
904 | 903 | do |
@@ -908,7 +907,7 @@ | ||
908 | 907 | |
909 | 908 | adhocSendBlocking(buf, tempLen); |
910 | 909 | |
911 | - if (adhocRecvBlocking(&ack_data, sizeof(int)) == 0) | |
910 | + if (adhocRecvBlocking(&ack_data, sizeof(u32)) == 0) | |
912 | 911 | return 0; |
913 | 912 | |
914 | 913 | if (ack_data != tempLen) |
@@ -926,10 +925,10 @@ | ||
926 | 925 | データの受信を待ち、ackを送信する |
927 | 926 | --------------------------------------------------------*/ |
928 | 927 | |
929 | -int adhocRecvSendAck(void *buffer, int length) | |
928 | +u32 adhocRecvSendAck(void *buffer, u32 length) | |
930 | 929 | { |
931 | - int tempLen = length; | |
932 | - int rcvdCount = 0; | |
930 | + u32 tempLen = length; | |
931 | + u32 rcvdCount = 0; | |
933 | 932 | u8 *buf = (u8 *)buffer; |
934 | 933 | |
935 | 934 | do |
@@ -940,7 +939,7 @@ | ||
940 | 939 | if (adhocRecvBlocking(buf, tempLen) == 0) |
941 | 940 | return 0; |
942 | 941 | |
943 | - adhocSendBlocking(&tempLen, sizeof(int)); | |
942 | + adhocSendBlocking(&tempLen, sizeof(u32)); | |
944 | 943 | |
945 | 944 | buf += ADHOC_BLOCKSIZE; |
946 | 945 | rcvdCount += ADHOC_BLOCKSIZE; |
@@ -20,7 +20,7 @@ | ||
20 | 20 | |
21 | 21 | VERSION_MAJOR = 3 |
22 | 22 | VERSION_MINOR = 1 |
23 | -VERSION_BUILD = 15 | |
23 | +VERSION_BUILD = 16 | |
24 | 24 | VERSION_OPT = test ${VERSION_BUILD} |
25 | 25 | |
26 | 26 | PSP_EBOOT_TITLE = UnOfficial_gpSP_kai_${VERSION_MAJOR}.${VERSION_MINOR} ${VERSION_OPT} |
@@ -24,21 +24,21 @@ | ||
24 | 24 | /****************************************************************************** |
25 | 25 | * グローバル関数の宣言 |
26 | 26 | ******************************************************************************/ |
27 | -int pspSdkLoadAdhocModules(void); | |
27 | +u32 pspSdkLoadAdhocModules(void); | |
28 | 28 | |
29 | -int adhocInit(const char *matchingData); | |
30 | -int adhocTerm(void); | |
31 | -int adhocSelect(void); | |
32 | -int adhocReconnect(char *ssid); | |
29 | +u32 adhocInit(const char *matchingData); | |
30 | +u32 adhocTerm(void); | |
31 | +u32 adhocSelect(void); | |
32 | +u32 adhocReconnect(char *ssid); | |
33 | 33 | |
34 | -int adhocSend(void *buffer, int length); | |
35 | -int adhocRecv(void *buffer, int length); | |
34 | +u32 adhocSend(void *buffer, u32 length); | |
35 | +u32 adhocRecv(void *buffer, u32 length); | |
36 | 36 | |
37 | -int adhocSendBlocking(void *buffer, int length); | |
38 | -int adhocRecvBlocking(void *buffer, int length); | |
39 | -int adhocRecvBlockingTimeout(void *buffer, int length, int timeout); | |
37 | +u32 adhocSendBlocking(void *buffer, u32 length); | |
38 | +u32 adhocRecvBlocking(void *buffer, u32 length); | |
39 | +u32 adhocRecvBlockingTimeout(void *buffer, u32 length, u32 timeout); | |
40 | 40 | |
41 | -int adhocSendRecvAck(void *buffer, int length); | |
42 | -int adhocRecvSendAck(void *buffer, int length); | |
41 | +u32 adhocSendRecvAck(void *buffer, u32 length); | |
42 | +u32 adhocRecvSendAck(void *buffer, u32 length); | |
43 | 43 | |
44 | 44 | #endif |
@@ -212,13 +212,12 @@ | ||
212 | 212 | int exit_callback(int arg1, int arg2, void *common) |
213 | 213 | { |
214 | 214 | quit_flag = 1; |
215 | - sceKernelDelayThread(500); | |
216 | 215 | return 0; |
217 | 216 | } |
218 | 217 | |
219 | 218 | int power_callback(int unknown, int powerInfo, void *common) |
220 | 219 | { |
221 | - if (powerInfo & PSP_POWER_CB_SUSPENDING) | |
220 | + if (powerInfo & PSP_POWER_CB_POWER_SWITCH) | |
222 | 221 | power_flag = 1; |
223 | 222 | else |
224 | 223 | power_flag = 0; |