(360) Added /privilege=6 to imagexex command line (allow insecure

sockets - no more 'couldn't resolve symbolic link root name
XlfsUploadCache'
This commit is contained in:
TwinAphex51224 2012-02-13 00:05:23 +01:00
parent 000d863ae0
commit 5a3b88bdd6
6 changed files with 36 additions and 18 deletions

View File

@ -43,9 +43,9 @@
#define DEVICE_CACHE 11
typedef struct _STRING {
USHORT Length;
USHORT MaximumLength;
PCHAR Buffer;
unsigned short Length;
unsigned short MaximumLength;
char * Buffer;
} STRING;
char SYS_CONFIG_FILE[MAX_PATH_LENGTH];
@ -148,7 +148,7 @@ static void set_default_settings (void)
static bool file_exists(const char * filename)
{
DWORD file_attr;
unsigned long file_attr;
file_attr = GetFileAttributes(filename);
@ -241,7 +241,7 @@ static void get_environment_settings (void)
{
SSNES_ERR("Couldn't change number of bytes reserved for file system cache.\n");
}
DWORD result = XMountUtilityDriveEx(XMOUNTUTILITYDRIVE_FORMAT0,8192, 0);
unsigned long result = XMountUtilityDriveEx(XMOUNTUTILITYDRIVE_FORMAT0,8192, 0);
if(result != ERROR_SUCCESS)
{
@ -249,7 +249,7 @@ static void get_environment_settings (void)
}
// detect install environment
DWORD license_mask;
unsigned long license_mask;
if (XContentGetLicenseMask(&license_mask, NULL) != ERROR_SUCCESS)
{

View File

@ -171,7 +171,7 @@ HRESULT CSSNESFileBrowser::OnNotifyPress( HXUIOBJ hObjPressed, BOOL& bHandled )
return S_OK;
}
HRESULT CSSNESSettings::OnNotifyPress( HXUIOBJ hObjPressed, BOOL& bHandled )
HRESULT CSSNESSettings::OnNotifyPress( HXUIOBJ hObjPressed, int & bHandled )
{
if ( hObjPressed == m_rewind)
{
@ -212,7 +212,7 @@ HRESULT CSSNESSettings::OnNotifyPress( HXUIOBJ hObjPressed, BOOL& bHandled )
return S_OK;
}
HRESULT CSSNESMain::OnNotifyPress( HXUIOBJ hObjPressed, BOOL& bHandled )
HRESULT CSSNESMain::OnNotifyPress( HXUIOBJ hObjPressed, int & bHandled )
{
HRESULT hr;

View File

@ -44,8 +44,8 @@ protected:
CXuiTextElement m_title;
CXuiTextElement m_core;
public:
HRESULT OnInit( XUIMessageInit* pInitData, BOOL& bHandled );
HRESULT OnNotifyPress( HXUIOBJ hObjPressed, BOOL& bHandled );
HRESULT OnInit( XUIMessageInit* pInitData, int & bHandled );
HRESULT OnNotifyPress( HXUIOBJ hObjPressed, int & bHandled );
XUI_BEGIN_MSG_MAP()
XUI_ON_XM_INIT( OnInit)
@ -62,8 +62,8 @@ protected:
CXuiControl m_back;
CXuiTextElement m_rompathtitle;
public:
HRESULT OnInit( XUIMessageInit* pInitData, BOOL& bHandled );
HRESULT OnNotifyPress( HXUIOBJ hObjPressed, BOOL& bHandled );
HRESULT OnInit( XUIMessageInit* pInitData, int & bHandled );
HRESULT OnNotifyPress( HXUIOBJ hObjPressed, int & bHandled );
XUI_BEGIN_MSG_MAP()
XUI_ON_XM_INIT( OnInit)
@ -81,8 +81,8 @@ protected:
CXuiControl m_hw_filter;
CXuiControl m_back;
public:
HRESULT OnInit( XUIMessageInit* pInitData, BOOL& bHandled );
HRESULT OnNotifyPress( HXUIOBJ hObjPressed, BOOL& bHandled );
HRESULT OnInit( XUIMessageInit* pInitData, int & bHandled );
HRESULT OnNotifyPress( HXUIOBJ hObjPressed, int & bHandled );
XUI_BEGIN_MSG_MAP()
XUI_ON_XM_INIT( OnInit)

View File

@ -36,8 +36,8 @@ Console::~Console()
Destroy();
}
HRESULT Console::Create( LPCSTR strFontFileName, D3DCOLOR colBackColor,
D3DCOLOR colTextColor, unsigned int nLines )
HRESULT Console::Create( LPCSTR strFontFileName, unsigned long colBackColor,
unsigned long colTextColor, unsigned int nLines )
{
xdk360_video_t *vid = (xdk360_video_t*)g_d3d;
D3DDevice *m_pd3dDevice = vid->xdk360_render_device;

View File

@ -82,8 +82,8 @@ private:
XdkFont m_Font;
// Colors
D3DCOLOR m_colBackColor;
D3DCOLOR m_colTextColor;
unsigned long m_colBackColor;
unsigned long m_colTextColor;
// Text Buffers
unsigned int m_cScreenHeight; // height in lines of screen area

View File

@ -120,6 +120,9 @@
<DeploymentFiles>$(RemoteRoot)=$(ImagePath);$(RemoteRoot)\media=$(OutDir)media;$(RemoteRoot)=$(OutDir)cfg</DeploymentFiles>
<ForceCopy>true</ForceCopy>
</Deploy>
<ImageXex>
<AdditionalOptions>/privilege=6 %(AdditionalOptions)</AdditionalOptions>
</ImageXex>
</ItemDefinitionGroup>
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='CodeAnalysis|Xbox 360'">
<ClCompile>
@ -145,6 +148,9 @@
<ForceCopy>true</ForceCopy>
<DeploymentType>CopyToHardDrive</DeploymentType>
</Deploy>
<ImageXex>
<AdditionalOptions>/privilege=6 %(AdditionalOptions)</AdditionalOptions>
</ImageXex>
</ItemDefinitionGroup>
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Profile|Xbox 360'">
<ClCompile>
@ -175,6 +181,9 @@
<ForceCopy>true</ForceCopy>
<DeploymentType>CopyToHardDrive</DeploymentType>
</Deploy>
<ImageXex>
<AdditionalOptions>/privilege=6 %(AdditionalOptions)</AdditionalOptions>
</ImageXex>
</ItemDefinitionGroup>
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Profile_FastCap|Xbox 360'">
<ClCompile>
@ -204,6 +213,9 @@
<ForceCopy>true</ForceCopy>
<DeploymentType>CopyToHardDrive</DeploymentType>
</Deploy>
<ImageXex>
<AdditionalOptions>/privilege=6 %(AdditionalOptions)</AdditionalOptions>
</ImageXex>
</ItemDefinitionGroup>
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|Xbox 360'">
<ClCompile>
@ -232,6 +244,9 @@
<DeploymentFiles>$(RemoteRoot)=$(ImagePath);$(RemoteRoot)\media=$(OutDir)media;$(RemoteRoot)=$(OutDir)cfg</DeploymentFiles>
<ForceCopy>true</ForceCopy>
</Deploy>
<ImageXex>
<AdditionalOptions>/privilege=6 %(AdditionalOptions)</AdditionalOptions>
</ImageXex>
</ItemDefinitionGroup>
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release_LTCG|Xbox 360'">
<ClCompile>
@ -262,6 +277,9 @@
<DeploymentFiles>$(RemoteRoot)=$(ImagePath);$(RemoteRoot)\media=$(OutDir)media;$(RemoteRoot)=$(OutDir)cfg</DeploymentFiles>
<DeploymentType>CopyToHardDrive</DeploymentType>
</Deploy>
<ImageXex>
<AdditionalOptions>/privilege=6 %(AdditionalOptions)</AdditionalOptions>
</ImageXex>
</ItemDefinitionGroup>
<ItemGroup>
<ClCompile Include="..\..\360\file_browser.c" />