mirror of
https://gitlab.com/Nanolx/homebrewfilter.git
synced 2024-11-01 15:15:09 +01:00
585b596e22
--> HBF mounts the DVD but does not (yet) list any apps from it
62 lines
1012 B
C++
62 lines
1012 B
C++
/****************************************************************************
|
|
* WiiMC
|
|
* Tantric 2009-2010
|
|
*
|
|
* fileop.h
|
|
*
|
|
* File operations
|
|
****************************************************************************/
|
|
|
|
#ifndef _FILEOP_H_
|
|
#define _FILEOP_H_
|
|
|
|
#include <gccore.h>
|
|
#include <stdio.h>
|
|
#include <string>
|
|
#include <string.h>
|
|
#include <unistd.h>
|
|
|
|
#define MAX_DEVICES 10
|
|
|
|
using namespace std;
|
|
|
|
typedef struct
|
|
{
|
|
char name[100];
|
|
char mount[10];
|
|
int type;
|
|
DISC_INTERFACE* interface;
|
|
sec_t sector;
|
|
} DEVICE_STRUCT;
|
|
|
|
extern DEVICE_STRUCT part[2][MAX_DEVICES];
|
|
|
|
void MountAllDevices();
|
|
void UnmountAllDevices();
|
|
|
|
bool MountDVD();
|
|
bool MountDVDFS();
|
|
void UnMountDVD();
|
|
bool DVD_Inserted();
|
|
void check_dvd();
|
|
|
|
/*
|
|
//!USB FAT Controls
|
|
int USBDevice_Init();
|
|
void USBDevice_deInit();
|
|
*/
|
|
bool USBDevice_Inserted();
|
|
void check_usb();
|
|
/*
|
|
//!SD FAT Controls
|
|
int SDCard_Init();
|
|
void SDCard_deInit();
|
|
*/
|
|
bool SDCard_Inserted();
|
|
void check_sd();
|
|
|
|
void check_device();
|
|
string check_path(string old_path);
|
|
|
|
#endif
|