1
- // Emacs style mode select -*- C++ -*-
1
+ // Emacs style mode select -*- C++ -*-
2
2
// -----------------------------------------------------------------------------
3
3
//
4
4
// $Id$
@@ -83,7 +83,7 @@ typedef struct {
83
83
84
84
#define INVALID_FILE_ATTRIBUTES -1
85
85
86
- typedef struct _STRING
86
+ typedef struct _STRING
87
87
{
88
88
USHORT Length;
89
89
USHORT MaximumLength;
@@ -108,7 +108,7 @@ static char *LauncherXBE = NULL;
108
108
static bool Xbox_RROD = false ; // Novelty - Red Ring of DOOM!
109
109
110
110
//
111
- // xbox_Getenv
111
+ // xbox_Getenv
112
112
// Environment variables don't exist on Xbox. Return NULL.
113
113
//
114
114
char *xbox_Getenv (const char *)
@@ -117,7 +117,7 @@ char *xbox_Getenv(const char *)
117
117
}
118
118
119
119
//
120
- // xbox_Putenv
120
+ // xbox_Putenv
121
121
//
122
122
// Environment variables don't exist on Xbox. Just return success.
123
123
//
@@ -127,7 +127,7 @@ int xbox_Putenv(const char *)
127
127
}
128
128
129
129
//
130
- // xbox_GetCWD
130
+ // xbox_GetCWD
131
131
//
132
132
// Return working directory which is always D:\
133
133
//
@@ -177,7 +177,7 @@ struct hostent *xbox_GetHostByName(const char *name)
177
177
WSAEVENT hEvent;
178
178
XNDNS *pDns = NULL ;
179
179
INT err;
180
-
180
+
181
181
if (!name)
182
182
return NULL ;
183
183
@@ -243,7 +243,7 @@ int xbox_GetHostname(char *name, int namelen)
243
243
}
244
244
else
245
245
errno = EFAULT;
246
-
246
+
247
247
return -1 ;
248
248
}
249
249
@@ -252,7 +252,6 @@ int xbox_GetHostname(char *name, int namelen)
252
252
//
253
253
void xbox_PrintMemoryDebug ()
254
254
{
255
- extern size_t got_heapsize;
256
255
MEMORYSTATUS stat;
257
256
static DWORD lastmem = 0 ;
258
257
char buf[100 ];
@@ -265,14 +264,10 @@ void xbox_PrintMemoryDebug()
265
264
sprintf (buf, " \n Memory Debug:\n " );
266
265
OutputDebugString ( buf );
267
266
268
- sprintf (buf, " Heap Size: \t %4d MB\n " , got_heapsize);
269
- OutputDebugString ( buf );
270
-
271
-
272
267
sprintf (buf, " Total Physical Memory: \t %4d bytes / %4d MB\n " , stat.dwTotalPhys , I_BytesToMegabytes (stat.dwTotalPhys ));
273
268
OutputDebugString ( buf );
274
269
275
- sprintf (buf, " Used Physical Memory : \t %4d bytes / %4d MB\n " , stat.dwTotalPhys - stat.dwAvailPhys ,
270
+ sprintf (buf, " Used Physical Memory : \t %4d bytes / %4d MB\n " , stat.dwTotalPhys - stat.dwAvailPhys ,
276
271
I_BytesToMegabytes (stat.dwTotalPhys - stat.dwAvailPhys ));
277
272
OutputDebugString ( buf );
278
273
@@ -321,7 +316,7 @@ LONG xbox_UnMountDevice(LPSTR sSymbolicLinkName)
321
316
//
322
317
// xbox_MountPartitions
323
318
//
324
- // Some of these partitions are automatically mounted but just
319
+ // Some of these partitions are automatically mounted but just
325
320
// to be on the safe side the mount will be attempted anyway
326
321
//
327
322
// Some of these partitions are only found on some modded consoles.
@@ -486,7 +481,7 @@ void xbox_RecordLauncherXBE(char *szLauncherXBE, DWORD dwID)
486
481
}
487
482
488
483
//
489
- // xbox_reboot
484
+ // xbox_reboot
490
485
//
491
486
// Exit Odamex and perform a warm reboot (no startup logo) to a launcher or dashboard
492
487
//
@@ -520,7 +515,7 @@ void xbox_Reboot()
520
515
}
521
516
522
517
//
523
- // xbox_AtExit
518
+ // xbox_AtExit
524
519
//
525
520
// Custom atexit function for Xbox
526
521
//
@@ -603,7 +598,7 @@ void __cdecl main()
603
598
if (XGetLaunchInfo (&launchDataType, &launchData) == ERROR_SUCCESS)
604
599
{
605
600
// Command line from debugger
606
- if (launchDataType == LDT_FROM_DEBUGGER_CMDLINE)
601
+ if (launchDataType == LDT_FROM_DEBUGGER_CMDLINE)
607
602
xbox_PrepareArgs ((char *)((PLD_FROM_DEBUGGER_CMDLINE)&launchData)->szCmdLine , xargv, xargc);
608
603
// Command line from homebrew dashboards (XBMC, etc.)
609
604
else if (launchDataType == LDT_TITLE && ((PCUSTOM_LAUNCH_DATA)&launchData)->magic == CUSTOM_LAUNCH_MAGIC)
0 commit comments