Use filesystem drivers
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47
diff --git a/src/main/ps2/SDL_ps2_main.c b/src/main/ps2/SDL_ps2_main.c
index d3fb617..b237eea 100644
--- a/src/main/ps2/SDL_ps2_main.c
+++ b/src/main/ps2/SDL_ps2_main.c
@@ -17,9 +17,7 @@
#include <sifrpc.h>
#include <iopcontrol.h>
#include <sbv_patches.h>
-#include <ps2_fileXio_driver.h>
-#include <ps2_memcard_driver.h>
-#include <ps2_usb_driver.h>
+#include <ps2_filesystem_driver.h>
#ifdef main
#undef main
@@ -45,29 +43,12 @@ static void prepare_IOP()
static void init_drivers()
{
- init_memcard_driver(true);
- init_usb_driver(true);
+ init_ps2_filesystem_driver();
}
static void deinit_drivers()
{
- deinit_usb_driver(true);
- deinit_memcard_driver(true);
-}
-
-static void waitUntilDeviceIsReady(char *path)
-{
- struct stat buffer;
- int ret = -1;
- int retries = 50;
-
- while (ret != 0 && retries > 0) {
- ret = stat(path, &buffer);
- /* Wait until the device is ready */
- nopdelay();
-
- retries--;
- }
+ deinit_ps2_filesystem_driver();
}
int main(int argc, char *argv[])