Commit graph

77 commits

Author SHA1 Message Date
Jean-Philip Desjardins
e37bb91258 Add placeholder for ReadClock DevCtl. 2021-03-09 13:07:04 -05:00
Jean-Philip Desjardins
2e1de70243 Allow dev9x device to be registered in IOMAN.
Allows the dev9 module to initialize properly.
2021-03-09 13:07:04 -05:00
Jean-Philip Desjardins
232c79e35f Code style fixes. 2021-03-09 13:07:03 -05:00
Jean-Philip Desjardins
32f044c471 Add DevCtl in IOMAN. 2021-03-09 13:07:02 -05:00
Jean-Philip Desjardins
420f7b50cc Move DevCtl logic in IOMAN. 2021-03-09 13:07:02 -05:00
Jean-Philip Desjardins
1c8d79372b Code style fixes. 2021-03-02 07:24:07 -05:00
Jean-Philip Desjardins
fedaee8807 Add write function in IOMAN. 2021-03-02 07:24:05 -05:00
Jean-Philip Desjardins
ec5ecf27ea Add some prints to help debugging. 2021-01-11 15:59:13 -05:00
Jean-Philip Desjardins
14b6421cf6 Formatting fixes. 2021-01-11 15:59:13 -05:00
Jean-Philip Desjardins
ed5ee84096 Try getting directory first on Getstat.
Opening a directory as a file is possible on the host system.
2021-01-11 15:59:11 -05:00
Jean-Philip Desjardins
4985420fb2 Rename CreateDirectory to MakeDirectory.
Avoid clash with Win32 function name.
2021-01-11 15:59:10 -05:00
Jean-Philip Desjardins
0e202d1c85 Implement Seek64. 2021-01-11 15:59:10 -05:00
Jean-Philip Desjardins
d813125129 Seek uses a signed offset. 2021-01-11 15:59:10 -05:00
Jean-Philip Desjardins
6f62954220 Add basic mount/umount support for HDDs. 2021-01-11 15:59:09 -05:00
Jean-Philip Desjardins
8f2e8d3140 Devices don't support directory creation by default. 2021-01-11 15:59:09 -05:00
Jean-Philip Desjardins
8dc4c55457 Remove game specific hack.
CDVD device doesn't seem to care about file access.
2020-11-11 20:03:47 -05:00
Björn Gerdau
6a64117f48
Implement FileNotFoundException in CIoman
Enables Mafia to boot - it checks for a specific error code
2020-11-06 22:28:18 +01:00
Jean-Philip Desjardins
c666117b1e Add SaveState and LoadState in Module interface. 2020-09-22 17:20:14 -04:00
Jean-Philip Desjardins
4ecb979844 Prevent crashing when we can't get a file stream. 2020-07-06 19:07:05 -04:00
Jean-Philip Desjardins
038d564caf
Merge pull request #888 from Zer0xFF/devices
add rom0, host0 devices
2020-07-06 19:04:45 -04:00
Björn Gerdau
1759482214
Implement CIoman::Mkdir
Partially fixes ps2sdk mc_example.
2020-05-15 19:09:53 +02:00
Mahmood - Zer0xFF
f3d2a7060e print the path when it fails to open 2020-04-26 02:30:27 +01:00
Jean-Philip Desjardins
7131a28fd4 Remove usage of boost::filesystem. 2019-10-23 20:48:46 -04:00
Jean-Philip Desjardins
0efc933dbc Prevent crashing when erasing something that's not there. 2019-10-15 13:18:46 -04:00
Jean-Philip Desjardins
096f385209 Make IsUserDeviceFileHandle implementation slightly different.
Was causing issues if STDOUT was not opened.
2019-09-21 22:36:56 -04:00
Jean-Philip Desjardins
598cf5b699 Code style fixes. 2019-09-21 22:36:56 -04:00
Jean-Philip Desjardins
d3ec8c693b Update saved state with user device info. 2019-09-21 22:36:56 -04:00
Jean-Philip Desjardins
3acea245e0 Move CFile helper to another file. 2019-09-21 22:36:55 -04:00
Jean-Philip Desjardins
d6e2878659 Add support for custom device drivers in IOMAN. 2019-09-21 22:36:55 -04:00
Jean-Philip Desjardins
ed6d05d434 Give IopBios to IOMAN. 2019-09-21 22:36:55 -04:00
Jean-Philip Desjardins
d58e17055f Sort includes. 2019-09-21 22:36:55 -04:00
Jean-Philip Desjardins
32cccc9ab8 Move IOMAN definitions to a separate file. 2019-09-21 22:36:55 -04:00
Jean-Philip Desjardins
2076edf3c0 Fix Linux build. 2019-08-17 13:51:31 -04:00
Jean-Philip Desjardins
95e5c210da Add way to obtain file open mode. 2019-08-01 18:41:46 -04:00
Jean-Philip Desjardins
5ae930b45d Code style fixes. 2019-02-11 19:56:30 -05:00
Jean-Philip Desjardins
fb75e95bfe Use experimental map header in Framework. 2019-02-11 19:56:30 -05:00
Jean-Philip Desjardins
45d7d7d0fc Save open files state in IOMAN. 2019-02-11 19:56:30 -05:00
Jean-Philip Desjardins
dd68072942 Files in IOMAN now contain more info.
This is needed to support state saving and loading.
2019-02-11 19:56:30 -05:00
Jean-Philip Desjardins
5ae6fc478d Move path splitting code. 2018-09-26 12:34:43 -04:00
Jean-Philip Desjardins
b99cfa341e Make GetStat work with directories. 2018-09-26 12:34:43 -04:00
Jean-Philip Desjardins
c7eca744bd Add basic support for directory read functions in IOMAN. 2018-09-26 12:34:43 -04:00
Jean-Philip Desjardins
0f2fcc31bb Use Warn function. 2018-05-25 12:24:51 -04:00
Clang-Format
acf75535ec Clang format 2018-04-30 21:01:23 +01:00
Jean-Philip Desjardins
f3ac29f453 Trim trailing spaces off paths passed to IOMAN. 2018-04-19 09:14:30 -04:00
Jean-Philip Desjardins
48957fd9e4 Cleanup. 2018-04-19 09:00:45 -04:00
Jean-Philip Desjardins
3b8c01b9f0 Cleanup. 2018-04-09 09:41:12 -04:00
Jean-Philip Desjardins
4615e097ef Return 0 when we're at EOF. 2018-03-20 10:59:25 -04:00
Mahmood(Thunder07)
97c229ec98 Cleanup
Silence:"warning: '0' flag ignored with precision and ‘%X’ gnu_printf format"
2017-05-29 06:01:32 +01:00
Jean-Philip Desjardins
8e8298cec9 Cleanup. 2017-01-06 19:18:00 -05:00
Jean-Philip Desjardins
53f75a3413 Add helper function to print address + string. 2016-12-20 18:55:48 -05:00