Commit Graph

377 Commits

Author SHA1 Message Date
The Dax
90c21a370c Add Full-width Latin keyboard(upper and lower cases), and allow OSK to input characters as long as it's <= FieldMaxLength. This should allow Valkyria Chronicles II to have correct password entry on all platforms. 2013-09-25 13:50:50 -04:00
The Dax
d102baacd0 Prep PPSSPP for Visual Studio 2013. 2013-09-17 10:27:06 -04:00
Unknown W. Brackets
887a61ae56 Make it possible to add new sections optionally. 2013-09-15 07:58:52 -07:00
Henrik Rydgård
82ee817647 Convert to new-style DoState 2013-09-15 09:53:24 +02:00
Henrik Rydgård
52e4a7cf5d Merge branch 'patch-1' of https://github.com/shenweip/ppsspp into shenweip-patch-1 2013-09-15 09:46:52 +02:00
Unknown W. Brackets
50e9e45d65 Check version in each DoState() func.
They bail on PointerWrap error or bad version.
2013-09-14 20:23:03 -07:00
shenweip
c018281509 fix style 2013-09-14 00:39:14 +08:00
shenweip
41dfea3150 Add PSPGamedataInstallDialog 2013-09-13 23:05:11 +08:00
The Dax
58aab2eeb8 Simplify NativeKeyboard, and only copy the amount of bytes of the output plus null terminator. 2013-09-11 15:42:32 -04:00
Unknown W. Brackets
db7496a37c Write only changed characters from OSK. 2013-09-11 08:04:01 -07:00
Unknown W. Brackets
5352432d8f Don't copy a negative size in savedata.
Not sure what's correct here, Street Fighter Alpha 3 passes -1.
It seems to call it twice, so probably the first time is to get the size?

Fixes #3722, thanks @thedax.
2013-09-10 22:23:47 -07:00
Unknown W. Brackets
e75ea49a66 Fix #3706, custom save dialog dates. 2013-09-10 02:09:18 -07:00
Unknown W. Brackets
9fb64183e6 Don't write more than the savedata buffer.
Fixes Numblast when there's savedata, probably others.
Could use more testing.
2013-09-10 01:46:49 -07:00
Henrik Rydgard
8c88dff5a4 More log categories, use them (and existing ones). Improve log config. 2013-09-07 22:02:55 +02:00
Henrik Rydgård
8996bac23e Merge pull request #3631 from lioncash/master
Remove a redundant wcsncat call.
2013-09-07 08:45:49 -07:00
Lioncash
78f6808ece Remove a redundant wcsncat call.
Just makes the else statement the dominant branch.
2013-09-04 15:05:28 -04:00
sum2012
f941b09909 better fix 2013-09-04 23:14:39 +08:00
sum2012
3d20b8d7b0 Fix crash in debug build 2013-09-04 20:35:34 +08:00
sum2012
6358f4ec62 Fix Summon Night 5,when there is a save,make new game would crash 2013-09-04 20:18:21 +08:00
The Dax
91fe3a8d4c Remove old comment since this now supports wchar/Unicode. 2013-08-27 08:54:41 -04:00
The Dax
d5c4f6673c Switch from u32_le to u32, and truncate the user's input if it's too long(so that they still get something entered. It's probably confusing not to enter something). 2013-08-27 08:46:54 -04:00
The Dax
3c303925c9 Change u32_le to u32. 2013-08-27 08:41:59 -04:00
The Dax
f70faaa0c2 Terminate the loop early if it's going to overflow; there's no reason to keep riding it out. Also fix use of uninitialized variable. 2013-08-27 08:08:06 -04:00
The Dax
2e25f00585 Really prevent the possible buffer overflow. This is getting silly. 2013-08-27 08:02:42 -04:00
The Dax
58ca962d89 Prevent possible buffer overflow. 2013-08-27 07:44:32 -04:00
The Dax
05b860c167 Win32: Update OSK bypass with Unicode/wchar/wstring support. 2013-08-27 07:36:46 -04:00
adrian17
06a015983a Fixed some doubled semicolons 2013-08-25 19:43:18 +02:00
Unknown W. Brackets
1ed8edb0d3 Avoid some dangerous hex constant widths. 2013-08-22 23:23:48 -07:00
Unknown W. Brackets
83373b8d87 Fix a pointer ARRAY_SIZE() compare (eek.) 2013-08-12 23:33:40 -07:00
Unknown W. Brackets
008052e6d6 Fix some variable hiding warnings. 2013-08-12 23:32:38 -07:00
Unknown W. Brackets
c8716d9a02 Fix a few minor typos + small reporting change. 2013-08-12 23:02:39 -07:00
Henrik Rydgard
43978f0ed6 Auto-create .nomedia file on Android to hide savedata icons from Gallery 2013-08-12 21:49:02 +02:00
Yaroslav
62835aad40 Make more strings translatable. 2013-08-11 22:25:50 +07:00
Henrik Rydgard
51ffdfa132 Rename gpuStats.numFrames to numVBlanks. Switch to using numFlips for things like cache expirations. 2013-08-07 22:34:00 +02:00
The Dax
d549337080 Tidy up some newlines. 2013-08-06 19:40:59 -04:00
The Dax
f9067e15c9 Remove old comment, change another one, and change MenuScreens.cpp to use the new class Host's InputBoxGetString. 2013-08-06 19:36:51 -04:00
The Dax
40b1c6298a Fix Headless build error introduced by #3063. 2013-08-06 19:28:43 -04:00
Henrik Rydgard
993d3b01de Android buildfix 2013-08-06 19:00:32 +02:00
The Dax
4a2605d85e Switch to strncat instead of sprintf. 2013-08-05 23:46:00 -04:00
The Dax
b9541d9a15 Switch to size_t instead of u32. 2013-08-05 23:29:59 -04:00
The Dax
1da0454508 Add support for changing the InputBox's title to the description text provided by the game(or the emulator itself). If none is provided(empty string), fall back to a default string. 2013-08-05 23:17:26 -04:00
The Dax
22bceea46c Remove old comment, and change length value. 2013-08-05 22:49:04 -04:00
The Dax
4570d83c05 Fix crash in InputBox.cpp by offering an overloaded func which takes a size, and use it in MenuScreens.cpp / PSPOskDialog.cpp. 2013-08-05 22:45:51 -04:00
The Dax
d20ac3c4c2 Fall back on "VALUE" if for some reason we can't get the initial text. 2013-08-05 22:15:10 -04:00
The Dax
db00010eb2 Support initial text from the oskParams struct, instead of hard-coding "VALUE". 2013-08-05 22:12:51 -04:00
The Dax
78ab002fde ifdef away NativeKeyboard for non Win32 platforms, for now. 2013-08-05 21:50:21 -04:00
The Dax
80953ac56d Win32: Enable user to change emulated PSP nickname from the menu screens by popping a dialog box.
Win32: Enable user to bypass the in-game OSK by using the same dialog box. It doesn't support non-Roman characters yet.
2013-08-05 21:39:06 -04:00
Unknown W. Brackets
0b5bdeb1d3 Fix some compile failures under big endian. 2013-07-28 21:04:17 -07:00
raven02
e75f647bc4 Fix the YES/OK/No button sizing and code cleanup 2013-07-29 00:31:01 +08:00
Unknown W. Brackets
777074cfe1 Switch to _le memory layout specs in dialogs. 2013-07-27 15:30:18 -07:00
raven02
12a3a42d9a Buildfix 2013-07-21 17:59:04 +08:00
raven02
4c9422088b Only show OK button when (flag & DS_OK) in message dialog 2013-07-21 17:52:04 +08:00
raven02
cfd8ef494a Add text shadow to Save Dialog 2013-07-20 21:33:40 +08:00
raven02
00fe237f45 Fix YES/NO selection color in save dialog 2013-07-13 22:56:46 +08:00
raven02
3382e73063 Fix YES/NO background color in save dialog 2013-07-10 11:20:24 +02:00
Unknown W. Brackets
a32cf817ff Fix some minor warnings. 2013-07-07 20:31:04 -07:00
raven02
d28dbffe68 Fix uninitialized variable in PSPMsgDialog 2013-07-03 08:13:16 +08:00
Lioncash
ea830774c8 Fix a missing 'break' in a date formatting switch statement in PSPSaveDialog.cpp. 2013-07-02 16:28:34 -04:00
raven02
66c1f59b42 Small fix to right border 2013-07-01 21:07:52 +08:00
raven02
ae796ad5c7 Add fake glowing effect to save icon 2013-07-01 20:42:10 +08:00
raven02
2db74a7088 Use "NEW DATA" as real PSP does for new save 2013-07-01 07:39:36 +08:00
raven02
78742a0ddb Match transition in save dialog as real PSP does 2013-07-01 07:39:27 +08:00
raven02
0c22bcf2e4 Fix wrong YES/NO color of save dialog 2013-06-29 04:58:44 +08:00
raven02
fa138b9354 Quick fix sizing 2013-06-29 04:31:17 +08:00
raven02
1ecde43163 Match the font size of save dialog with real PSP 2013-06-29 04:28:50 +08:00
raven02
5b920e1d86 Add square icon to LOAD/SAVE/DELETE 2013-06-29 03:37:30 +08:00
raven02
1f9846e5c4 Minor sizing fix 2013-06-29 01:17:36 +08:00
raven02
c4b0db4d2f Match message dialog with real PSP 2013-06-29 01:02:55 +08:00
Unknown W. Brackets
c36fa5bd76 Fix typo breaking delete button in OSK. 2013-06-26 08:07:21 -07:00
Lioncash
76165a8815 Fixed incorrect る/ル misplacements in the Japanese Hirigana/Katakana characters. Replaced them with the appropriate ろ/ロ character.
Fixes issue 2468.
2013-06-25 17:10:56 -04:00
Lioncash
5de2adcead Fixed missing Japanese characters in the OSK.
Also added the vowel lengthening character to Katakana and Hirigana
2013-06-25 16:59:40 -04:00
Lioncash
b823bb7543 Change PSPPointer function name Valid to IsValid.
Improves readability and shows intent better.
2013-06-25 09:51:39 -04:00
Unknown W. Brackets
a94640f112 Fix a few null checks in savedata.
Fixes #2456.
2013-06-24 23:02:57 -07:00
Unknown W. Brackets
f1659a228c Dumb typo. 2013-06-24 08:38:06 -07:00
Henrik Rydgård
aab66ad623 Merge pull request #2443 from raven02/patch-12
Add text shadow to Yes/No/Enter/Back button
2013-06-24 08:18:26 -07:00
Unknown W. Brackets
ab353a4624 Compare with the old savedata params, not current.
Some savedata modes make changes that aren't flushed to memory right away.
Although, maybe/probably they shouldn't...

Fixes #2440, fixes #2439 (which is a duplicate.)
2013-06-24 07:59:23 -07:00
raven02
b1c910b5b7 Add text shadow to Yes/No/Enter/Back button 2013-06-24 22:56:44 +08:00
Sacha
5ce2f2abcc Blackberry Buildfix. 2013-06-24 21:22:05 +10:00
Unknown W. Brackets
9032fc274f Reload the savedata request if it changes.
This happens in "Where Is My Heart?", and if it's ignored the save is
created with the wrong name and cannot be loaded properly later.
2013-06-23 22:30:23 -07:00
Unknown W. Brackets
8f0d3c55fb Use PSP memory directly in GETSIZES for savedata. 2013-06-23 22:22:25 -07:00
Unknown W. Brackets
8734b29105 Return a bind value in FILELIST, tweaks. 2013-06-23 22:22:25 -07:00
Unknown W. Brackets
6eca664c7c Switch idList to use structs in savedata. 2013-06-23 22:22:24 -07:00
Unknown W. Brackets
73acbe556d Use the specified game/save name for SIZES.
It doesn't use the global one (not sure why...)
2013-06-23 22:22:24 -07:00
Unknown W. Brackets
3672b591bb Return error codes from SavedataParam::GetSizes().
Rather than true/false, makes things simpler.
2013-06-23 22:22:23 -07:00
Unknown W. Brackets
16752f57b6 Switch SIZES savedata mode to using structs. 2013-06-23 22:22:23 -07:00
Unknown W. Brackets
63ceec35ac For AUTOSAVE/MAKEDATA type modes, "" is valid.
Don't try to use the saveNameList in this case, use "".
2013-06-23 22:22:22 -07:00
raven02
1a46843996 Add text shadow to message dialog that match real PSP 2013-06-24 01:01:55 +09:00
Unknown W. Brackets
dae4156654 Make more savedata struct parts PSPPointers. 2013-06-22 22:49:39 -07:00
Unknown W. Brackets
12232dcad4 Simplify some Memory::GetPointer stuff. 2013-06-22 22:44:00 -07:00
Unknown W. Brackets
f7a717746f Sometimes newData.buf is NULL, don't log an error. 2013-06-22 22:40:48 -07:00
Unknown W. Brackets
eb1f39f0eb Use the saveName by default in MAKE/WRITE/READDATA.
Suspected this, but wasn't sure.  Tests confirm it works like AUTOLOAD.
2013-06-22 14:48:09 -07:00
Unknown W. Brackets
8fe9620350 Always use iButtonPreference, fixes #2390. 2013-06-21 17:45:39 -07:00
raven02
de4d970ab6 Toggle to adjust VPS/FPS/Both , new timeFormat/dateFormat/buttonPerference 2013-06-19 15:09:01 +08:00
Henrik Rydgård
c4abec3560 Add option for very transparent touch buttons 2013-06-17 20:28:22 +02:00
raven02
a1f6a23974 Use bit longer horizontal lines 2013-06-16 22:53:13 +02:00
Henrik Rydgard
f836517853 MsgDialog: Have the text WRAP_WIDTH match the horizontal lines. Fixes #2288. 2013-06-15 23:55:23 +02:00
Henrik Rydgård
4437e0dfc7 Merge pull request #2263 from raven02/master
Quick fix wrong sizing of CIRCLE image and misc UI refinements
2013-06-15 02:17:38 -07:00
raven02
26ec4c283f Minor fix to the correct font scale 2013-06-15 16:29:46 +08:00
raven02
a9363292d6 Better align the message context in message dialog 2013-06-15 13:09:41 +08:00
aquanull
e52ac677c0 Quick Save Dialog workaround. 2013-06-11 18:21:48 +08:00