tytd-2019/source/settings.h

73 lines
1.5 KiB
C
Raw Normal View History

2022-04-17 11:39:48 +00:00
#ifndef SETTINGS_H
#define SETTINGS_H
2022-04-17 11:44:32 +00:00
#include <gccore.h>
#include <dirent.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <unistd.h>
2022-04-17 11:39:48 +00:00
#include <fat.h>
#include <unistd.h>
#include <ogc/usbstorage.h>
2022-04-17 11:46:26 +00:00
#include <ntfs.h>
2022-04-17 11:39:48 +00:00
#include <stdio.h>
#include <stdlib.h>
#include <wiiuse/wpad.h>
#include <string.h>
#include <time.h>
2022-04-17 11:41:25 +00:00
2022-04-17 11:46:26 +00:00
#include <sdcard/wiisd_io.h>
2022-04-17 11:39:48 +00:00
#include <curl/curl.h>
#include <grrlib.h>
#include "FreeMonoBold_ttf.h"
2022-04-17 11:46:26 +00:00
extern int net_init();
2022-04-17 11:41:25 +00:00
2022-04-17 11:46:26 +00:00
extern char* TempVal;
typedef struct disks{
int ntfsc;
bool sdfat;
bool usbfat;
ntfs_md *ntfsv;
}disks;
2022-04-17 11:41:25 +00:00
typedef struct dlf{
FILE* fp;
char fnam[1000];
2022-04-17 11:44:32 +00:00
char fnam2[500];
2022-04-17 11:41:25 +00:00
int fileid;
2022-04-17 11:44:32 +00:00
int fileindex;
2022-04-17 11:41:25 +00:00
}dlf;
2022-04-17 11:46:26 +00:00
void SetRoot(char* rootdir);
2022-04-17 11:44:32 +00:00
char* FileNameParse(char* path);
2022-04-17 11:41:25 +00:00
void DLFhandler(dlf* dl,size_t real);
2022-04-17 11:39:48 +00:00
void OpenPlaylistFile(char* playlist);
2022-04-17 11:46:26 +00:00
char* PLTXTDIR();
2022-04-17 11:39:48 +00:00
char* OpenFile(char* fname);
char* OpenPlaylistVideoFile(char* playlist,char* video);
2022-04-17 11:46:26 +00:00
char* OpenPlaylistDescFile(char* playlist,char* video);
char* OpenDescFile(char* video);
2022-04-17 11:39:48 +00:00
FILE* HistoryRead();
FILE* HistoryAppend();
int UsingIRFeatures();
2022-04-17 11:46:26 +00:00
disks* FileSystemDrivers();
2022-04-17 11:44:32 +00:00
void WriteFile2PL(char* fil,char* type,char* url,char* filename);
void CreatePL(char* fil);
2022-04-17 11:46:26 +00:00
char* CreatePL2(char* fil);
2022-04-17 11:39:48 +00:00
char* OpenVideoFile(char* filename);
char* ThumbnailFileName(char* filename);
2022-04-17 11:46:26 +00:00
2022-04-17 11:39:48 +00:00
int ThumbnailExists(char* id);
int CreateFolders();
char* ThumbnailURL(char* id);
2022-04-17 11:46:26 +00:00
char* ThumbnailURLAlt(char* id,char* res);
2022-04-17 11:39:48 +00:00
FILE* PlaylistTXT(char* fil);
char* Temp();
2022-04-17 11:46:26 +00:00
char* AppConfig();
2022-04-17 11:39:48 +00:00
void DeleteTemp();
void SwitchIR();
2022-04-17 11:46:26 +00:00
2022-04-17 11:39:48 +00:00
#endif