aboutsummaryrefslogtreecommitdiff
path: root/libpsn00b
diff options
context:
space:
mode:
authorU-Lameguy64-LT\Lameguy64 <lameguy64@gmail.com>2022-03-25 11:34:06 +0800
committerU-Lameguy64-LT\Lameguy64 <lameguy64@gmail.com>2022-03-25 11:34:06 +0800
commit086ba5abc0ea275a4221b9e788d16033501e99be (patch)
tree6705bab2127db2c58bb8321a2021ca0a3ea3da72 /libpsn00b
parent975e614b3c840e2f717adac1d1cb9cee4e5e561b (diff)
downloadpsn00bsdk-086ba5abc0ea275a4221b9e788d16033501e99be.tar.gz
Replaced sample image of mdecimage example, added dummy hooks for sio tty device, updated some documentation in libn00bref.odf
Diffstat (limited to 'libpsn00b')
-rw-r--r--libpsn00b/psxsio/siocons.c27
1 files changed, 16 insertions, 11 deletions
diff --git a/libpsn00b/psxsio/siocons.c b/libpsn00b/psxsio/siocons.c
index db35eda..5937920 100644
--- a/libpsn00b/psxsio/siocons.c
+++ b/libpsn00b/psxsio/siocons.c
@@ -117,6 +117,11 @@ static void _sio_tty_cb(void)
_sio_control(2, 1, 0);
}
+static int _sio_dummy(void)
+{
+ return -1;
+}
+
static DCB _sio_dcb = {
"tty",
0x3,
@@ -127,17 +132,17 @@ static DCB _sio_dcb = {
(void*)_sio_inout, // inout
_sio_close, // close
_sio_ioctl, // ioctl
- NULL, // read
- NULL, // write
- NULL, // erase
- NULL, // undelete
- NULL, // firstfile
- NULL, // nextfile
- NULL, // format
- NULL, // chdir
- NULL, // rename
- NULL, // remove
- NULL // testdevice
+ _sio_dummy, // read
+ _sio_dummy, // write
+ _sio_dummy, // erase
+ _sio_dummy, // undelete
+ _sio_dummy, // firstfile
+ _sio_dummy, // nextfile
+ _sio_dummy, // format
+ _sio_dummy, // chdir
+ _sio_dummy, // rename
+ _sio_dummy, // remove
+ _sio_dummy // testdevice
};