Commit graph

120 commits

Author SHA1 Message Date
shenweip
c7db6b6466
Merge branch 'master' into Font-alloc/free 2020-03-16 08:16:50 +08:00
shenweip
ac56a8e93a Fix states. 2020-03-16 07:54:42 +08:00
shenweip
2f088d0970 No need to manually decide pending or not for mipscalls. 2020-03-16 07:46:13 +08:00
Unknown W. Brackets
7d36b70a8e Kernel: Rename conflicting kernel object names.
These are names that can often conflict with system headers in ports.
Let's just simplify by prefixing with PSP.

No actual functional/code changes, just syntax and names.
2020-03-15 08:33:40 -07:00
shenweip
3ffb20b66b Font:alloc/free memory for font file and char bitmap.
Following the guide of JPCSP.
2020-03-15 23:05:28 +08:00
Henrik Rydgård
7865589f48 sceFontLib: Don't call the callback if double-free. Should fix one part of #6627 2019-03-11 12:55:09 +01:00
Unknown W. Brackets
9655013938 Font: Skip log on missing zh_gb.pgf.
Fixes #8332.
2016-08-07 10:27:27 -07:00
sum2012
da8188ab7d Add more check for safely 2016-08-06 06:52:48 +08:00
sum2012
390ecb3184 Better support zh_gb.pgf 2016-08-05 19:58:31 +08:00
tpunix
6672534f49 bugfix of scefont
charCode should be limit to 16bit
see issue #8131
2015-11-01 21:11:31 +08:00
Unknown W. Brackets
e2ecd1eabd Add memchecks for ReadStruct/WriteStruct. 2015-04-05 18:09:35 -07:00
Unknown W. Brackets
67d9233de1 Fix some compiler warnings.
Oops, f format in hle logging wasn't working right.  See #7641.
2015-03-28 20:50:34 -07:00
Unknown W. Brackets
fcf0518223 Update all the HLE tables with arg and ret info. 2015-03-22 20:51:55 -07:00
Henrik Rydgard
3d012f2679 One more stack clearing value in sceFont 2015-03-05 12:26:21 +01:00
Henrik Rydgard
3e408047d3 Use unknown's measured stack clearing amounts in sceLibFont 2015-03-05 10:36:03 +01:00
Henrik Rydgard
fd1dcb881f Add ability to flag function to clear a bit of stack. See #6374, idea by JPCSP, pointed out by sum2012. 2015-03-02 01:03:12 +01:00
Unknown W. Brackets
0a8e6c2a06 Remove some unused functions. 2014-12-14 17:35:20 -08:00
Lioncash
cac632424c Core: Add missing override specifiers 2014-12-08 15:20:31 -05:00
Lioncash
4ccb838306 Core: Mark some module functions as static 2014-12-08 04:40:08 -05:00
Lioncash
f830d5dec7 Core: Mark some functions as const 2014-12-03 15:16:11 -05:00
Unknown W. Brackets
ad191cdd3a Correct error codes in sceFontOpenUserMemory(). 2014-09-26 23:44:36 -07:00
Unknown W. Brackets
1d4bd6c695 Add a delay for creating fontlibs and fonts.
Matches tests, low bound on the delay.
2014-09-26 23:44:04 -07:00
sum2012
6024fe7e13 Don't need duplicate the whole table 2014-08-15 23:30:51 +08:00
sum2012
9f4efaf142 Add sceLibFttt
Same as sceFont
2014-08-15 22:42:08 +08:00
Sacha
cd20288d99 Fix some compiler warnings. 2014-07-17 00:49:58 +10:00
Henrik Rydgard
d6b51d4dfa Reduce some excessive logging 2014-06-09 19:40:05 +02:00
Unknown W. Brackets
917af7b571 Fix some memory leaks in sceFont.
Which were highlighted quite well by tests.
2014-03-30 12:55:40 -07:00
Unknown W. Brackets
0af153efb4 Avoid a crash with a huge user memory font size.
Fixes tests.
2014-03-29 19:39:10 -07:00
Unknown W. Brackets
c0392e10be Properly fail loading state when fonts don't match.
It should fail later anyway, but this will prevent crashes just in case.
2014-03-23 13:03:33 -07:00
Unknown W. Brackets
68affb4a54 Reduce log level of some tested sceFont funcs. 2014-03-15 17:23:08 -07:00
Unknown W. Brackets
05ab192c9c Reduce includes in Core/HLE/.
Especially templates.
2014-03-15 11:22:19 -07:00
lioncash
b9886942a7 Fix some vertical alignments in misc Core source files. 2014-03-03 11:16:53 -05:00
Unknown W. Brackets
1b5e54abb4 Fix nearest size check in optimum, cleanup. 2014-03-01 02:23:56 -08:00
Unknown W. Brackets
58e29062a5 Improve error checking in sceFontGetNumFontList(). 2014-03-01 01:54:15 -08:00
Unknown W. Brackets
160d5e3279 Fix sceFontGetFontList() error codes. 2014-03-01 01:47:35 -08:00
Unknown W. Brackets
140982223a Correct sceFontGetFontInfoByIndexNumber().
It just gets font style info, pretty simple.
2014-03-01 01:30:43 -08:00
Unknown W. Brackets
0e39b6fe36 Fix results of sceFontGetFontInfo() for user fonts. 2014-03-01 01:30:25 -08:00
Unknown W. Brackets
131cbc073c Implement sceFontGetShadowInfo(). 2014-03-01 00:18:19 -08:00
Unknown W. Brackets
29d2e81676 Cleanup errors in sceFontGet*ImageRect(). 2014-02-28 23:04:34 -08:00
Unknown W. Brackets
96a93d9bae Fix error handling in sceFontPointToPixelH()/etc. 2014-02-28 22:05:37 -08:00
Unknown W. Brackets
57e64547b3 Fix sceFontSetResolution() error codes. 2014-02-28 21:52:34 -08:00
Unknown W. Brackets
67fcdc0f4a Reflect font altCharCode in psp mem for tests.
Makes it easier to be sure it's working right.  Not completely impossible
a game will check it... but hopefully not.
2014-02-28 21:31:02 -08:00
Unknown W. Brackets
692cffffd1 Use the correct default for font altCharCode. 2014-02-28 21:20:06 -08:00
Unknown W. Brackets
46370e2860 Implement sceFontGetShadowGlyphImage().
Not sure if any games actually use it, though...
2014-02-28 20:57:18 -08:00
Unknown W. Brackets
4a1c9645e8 Get rid of Memory::GetStruct(), use PSPPointer. 2014-02-27 00:28:57 -08:00
Unknown W. Brackets
ab6b998710 Correct clipping in sceFontGetCharGlyphImage_Clip.
It was not clipping completely, and didn't handle negative clip w/h.
Also, reduce to debug log (seems to work fine now and has been working
fine in most games.)
2014-02-27 00:19:40 -08:00
Unknown W. Brackets
e0258bf347 Match sceFindFont*() behavior much more accurately.
Per tests.  Fixes bad font selection in Fieldrunners.
2014-02-25 08:16:10 -08:00
Unknown W. Brackets
db4e4c1c32 Improve sceFontFindFont() errors. 2014-02-25 00:43:24 -08:00
Unknown W. Brackets
0e1dd5cb33 Improve error codes in sceFontFindOptimumFont(). 2014-02-24 23:42:22 -08:00
Unknown W. Brackets
7298133c9a Allow open fonts in a few more calls.
It turns out if you open the same internal font twice, they both work
until you close both of them (it's reference counted, but the font handles
are different.)

Anyway, these funcs seem to crash on a PSP when used with a non-open font
so there's not a ton of risk here.
2014-02-23 11:48:31 -08:00