Commit graph

25 commits

Author SHA1 Message Date
Jean-Philip Desjardins
035702b95c Add constraint to CheckAsync matcher. 2020-05-15 12:37:54 -04:00
Jean-Philip Desjardins
ba1598dfc7 LibMc2: Warn if optional functions are not found. 2020-05-04 12:48:38 -04:00
Jean-Philip Desjardins
409743e6d5 Fix stylin issues. 2020-04-22 16:24:01 -04:00
Jean-Philip Desjardins
30fd233015 Remove dead code. 2020-04-20 11:14:37 -04:00
Jean-Philip Desjardins
675e584fec Handle alternate WriteFile function. 2020-04-20 11:14:37 -04:00
Jean-Philip Desjardins
0c3add43d3 Handle error case in ReadFile. 2020-04-20 11:14:37 -04:00
Jean-Philip Desjardins
112a040524 Test signed values.
Otherwise, we won't catch potential errors.
2020-04-20 11:14:36 -04:00
Jean-Philip Desjardins
9f59ab2499 Fix some return values.
Fixes hang in Persona 4. Somewhat able to save & load now.
2020-04-20 11:14:36 -04:00
Jean-Philip Desjardins
06e78653ea Hook Mc2 functions when specific IOP modules are loaded. 2020-04-20 11:14:36 -04:00
Jean-Philip Desjardins
8831e1bded Make sure SearchFile returns not found if file is not there. 2020-04-20 11:14:36 -04:00
Jean-Philip Desjardins
184729014a Tweak the function detection heuristic.
Fixes Saint Seiya: The Sanctuary not starting.
Still can't load or save though.
2020-04-20 11:14:36 -04:00
Jean-Philip Desjardins
182e63c0a2 Implement ChDir. 2020-04-20 11:14:35 -04:00
Jean-Philip Desjardins
7f79720d13 Clean ReadFile handling. 2020-04-20 11:14:35 -04:00
Jean-Philip Desjardins
be4fdad83d Use defines for operation results. 2020-04-20 11:14:35 -04:00
Jean-Philip Desjardins
54762353b5 Flesh out GetDir implementation. 2020-04-20 11:14:34 -04:00
Jean-Philip Desjardins
07583792b4 Function 5 is ReadFileAsync. 2020-04-20 11:14:34 -04:00
Jean-Philip Desjardins
b0caeb4e2c Fix some problems in GetDir. 2020-04-20 11:14:34 -04:00
Jean-Philip Desjardins
26a2e9ac24 Default to port 0. 2020-04-20 11:14:34 -04:00
Jean-Philip Desjardins
bf0bdcac30 Add WriteFileAsync. 2020-04-20 11:14:34 -04:00
Jean-Philip Desjardins
f7b239ec21 Add MkDirAsync and CreateFileAsync. 2020-04-20 11:14:33 -04:00
Jean-Philip Desjardins
6f32000960 Add some basic error checking. 2020-04-20 11:14:33 -04:00
Jean-Philip Desjardins
8b8279e214 Use constant for memory card port. 2020-04-20 11:14:33 -04:00
Jean-Philip Desjardins
9f62488cad Find function pointers using an heuristic. 2020-04-20 11:14:33 -04:00
Jean-Philip Desjardins
47a6f10c74 Hook the underlaying check async function. 2020-04-20 11:14:33 -04:00
Jean-Philip Desjardins
13923bd8a4 Initial version of libmc2 HLE. 2020-04-20 11:14:32 -04:00