fixed the alternate device mode.
[open-ps2-loader.git] / include / usbld.h
bloba4186385b9f45ddd5bc01055b508b43154ff9dfb
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 int loadConfig(int types);
37 int saveConfig(int types, int showUI);
38 void applyConfig(int themeID, int langID, int newVMode, int newVSync);
39 void moduleUpdateMenu(int mode, int themeChanged);
40 void handleHdlSrv();
41 void shutdown();
43 char *gBaseMCDir;
45 //// IP config
47 #define IPCONFIG_MAX_LEN 64
49 int ps2_ip[4];
50 int ps2_netmask[4];
51 int ps2_gateway[4];
52 int pc_ip[4];
53 int gPCPort;
54 char gPCShareName[32];
55 char gPCUserName[32];
56 char gPCPassword[32];
58 //// Settings
60 // describes what is happening in the network startup thread (>0 means loading, <0 means error)...
61 int gNetworkStartup;
62 // true if the ip config should be saved as well
63 int gIPConfigChanged;
64 int gHDDSpindown;
65 /// Indicates the hdd module loading sequence
66 int gHddStartup;
67 /// 0 = off, 1 = manual, 2 = auto
68 int gUSBStartMode;
69 int gHDDStartMode;
70 int gETHStartMode;
71 int gAPPStartMode;
72 int gAutosort;
73 int gAutoRefresh;
74 int gUseInfoScreen;
75 int gEnableArt;
76 int gWideScreen;
77 int gVMode; // 0 - Auto, 1 - PAL, 2 - NTSC
78 int gVSync; // 0 - False, 1 - True
80 // 0,1,2 scrolling speed
81 int gScrollSpeed;
82 // Exit path
83 char gExitPath[32];
84 // Disable Debug Colors
85 int gDisableDebug;
86 // Default device
87 int gDefaultDevice;
89 int gEnableDandR;
91 int gCheckUSBFragmentation;
92 int gUSBDelay;
93 char gUSBPrefix[32];
95 int gRememberLastPlayed;
97 char *infotxt;
99 unsigned char gDefaultBgColor[3];
100 unsigned char gDefaultTextColor[3];
101 unsigned char gDefaultSelTextColor[3];
102 unsigned char gDefaultUITextColor[3];
104 #define MENU_ITEM_HEIGHT 19
106 #endif