* fixed dangerous code (out of bounds memory writing in renderman)
[open-ps2-loader.git] / include / usbld.h
blob0374cb7a1216fdd6abaca64b2dede7dfb7954c94
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 void setErrorMessage(int strId, int error);
37 int loadConfig(int types);
38 int saveConfig(int types, int showUI);
39 void applyConfig(int themeID, int langID, int changed);
40 void moduleUpdateMenu(int mode, int themeChanged);
41 void handleHdlSrv();
42 void shutdown();
44 char *gBaseMCDir;
46 //// IP config
48 #define IPCONFIG_MAX_LEN 64
50 int ps2_ip[4];
51 int ps2_netmask[4];
52 int ps2_gateway[4];
53 int pc_ip[4];
54 int gPCPort;
55 char gPCShareName[32];
56 char gPCUserName[32];
57 char gPCPassword[32];
59 //// Settings
61 // describes what is happening in the network startup thread (>0 means loading, <0 means error)...
62 int gNetworkStartup;
63 // true if the ip config should be saved as well
64 int gIPConfigChanged;
65 int gHDDSpindown;
66 /// Indicates the hdd module loading sequence
67 int gHddStartup;
68 /// 0 = off, 1 = manual, 2 = auto
69 int gUSBStartMode;
70 int gHDDStartMode;
71 int gETHStartMode;
72 int gAPPStartMode;
73 int gAutosort;
74 int gAutoRefresh;
75 int gUseInfoScreen;
76 int gEnableArt;
77 int gWideScreen;
78 int gVMode; // 0 - Auto, 1 - PAL, 2 - NTSC
79 int gVSync; // 0 - False, 1 - True
81 // 0,1,2 scrolling speed
82 int gScrollSpeed;
83 // Exit path
84 char gExitPath[32];
85 // Disable Debug Colors
86 int gDisableDebug;
87 // Default device
88 int gDefaultDevice;
90 int gEnableDandR;
92 int gCheckUSBFragmentation;
93 int gUSBDelay;
94 char gUSBPrefix[32];
96 int gRememberLastPlayed;
98 char *infotxt;
100 unsigned char gDefaultBgColor[3];
101 unsigned char gDefaultTextColor[3];
102 unsigned char gDefaultSelTextColor[3];
103 unsigned char gDefaultUITextColor[3];
105 #define MENU_ITEM_HEIGHT 19
107 #endif