* fix for theme font handling (when switching back to the default theme, the language...
[open-ps2-loader.git] / include / usbld.h
blobf1784403a2cd21fe200ee8adcd73258b84627d21
1 #ifndef __USBLD_H
2 #define __USBLD_H
4 #include <tamtypes.h>
5 #include <kernel.h>
6 #include <sifrpc.h>
7 #include <fileio.h>
8 #include <iopcontrol.h>
9 #include <iopheap.h>
10 #include <string.h>
11 #include <loadfile.h>
12 #include <stdio.h>
13 #include <sbv_patches.h>
14 #include <libcdvd.h>
15 #include <libpad.h>
16 #include <libmc.h>
17 #include <debug.h>
18 #include <gsKit.h>
19 #include <dmaKit.h>
20 #include <gsToolkit.h>
21 #include <malloc.h>
22 #include <math.h>
23 #include <libpwroff.h>
24 #include <fileXio_rpc.h>
25 #include <smod.h>
26 #include <smem.h>
27 #include <debug.h>
28 #include <ps2smb.h>
29 #include "config.h"
30 #ifdef VMC
31 #include <sys/fcntl.h>
32 #endif
34 #define USBLD_VERSION "0.8"
36 #define IO_MENU_UPDATE_DEFFERED 2
38 void setErrorMessage(int strId, int error);
39 int loadConfig(int types);
40 int saveConfig(int types, int showUI);
41 void applyConfig(int themeID, int langID);
42 void menuDeferredUpdate(void* data);
43 void moduleUpdateMenu(int mode, int themeChanged);
44 void handleHdlSrv();
45 void shutdown();
47 char *gBaseMCDir;
49 //// IP config
51 #define IPCONFIG_MAX_LEN 64
53 int ps2_ip[4];
54 int ps2_netmask[4];
55 int ps2_gateway[4];
56 int pc_ip[4];
57 int gPCPort;
58 char gPCShareName[32];
59 char gPCUserName[32];
60 char gPCPassword[32];
62 //// Settings
64 // describes what is happening in the network startup thread (>0 means loading, <0 means error)...
65 int gNetworkStartup;
66 // true if the ip config should be saved as well
67 int gIPConfigChanged;
68 int gHDDSpindown;
69 /// Indicates the hdd module loading sequence
70 int gHddStartup;
71 /// 0 = off, 1 = manual, 2 = auto
72 int gUSBStartMode;
73 int gHDDStartMode;
74 int gETHStartMode;
75 int gAPPStartMode;
76 int gAutosort;
77 int gAutoRefresh;
78 int gUseInfoScreen;
79 int gEnableArt;
80 int gWideScreen;
81 int gVMode; // 0 - Auto, 1 - PAL, 2 - NTSC
82 int gVSync; // 0 - False, 1 - True
84 // 0,1,2 scrolling speed
85 int gScrollSpeed;
86 // Exit path
87 char gExitPath[32];
88 // Disable Debug Colors
89 int gDisableDebug;
90 // Default device
91 int gDefaultDevice;
93 int gEnableDandR;
95 int gCheckUSBFragmentation;
96 int gUSBDelay;
97 char gUSBPrefix[32];
98 char gETHPrefix[32];
100 int gRememberLastPlayed;
102 char *infotxt;
104 unsigned char gDefaultBgColor[3];
105 unsigned char gDefaultTextColor[3];
106 unsigned char gDefaultSelTextColor[3];
107 unsigned char gDefaultUITextColor[3];
109 #define MENU_ITEM_HEIGHT 19
111 #endif