mirror of
https://github.com/libretro/RetroArch
synced 2025-03-25 16:44:01 +00:00
(Xbox 1) Remove Global.h header
This commit is contained in:
parent
6926b78840
commit
49bbacdaf1
@ -1,41 +0,0 @@
|
|||||||
/**
|
|
||||||
* RetroLaunch 2012
|
|
||||||
*
|
|
||||||
* This program is free software; you can redistribute it and/or modify it under
|
|
||||||
* the terms of the GNU General Public License as published by the Free Software
|
|
||||||
* Foundation; either version 2 of the License, or (at your option) any later
|
|
||||||
* version. This program is distributed in the hope that it will be useful, but
|
|
||||||
* WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
|
|
||||||
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more
|
|
||||||
* details. You should have received a copy of the GNU General Public License
|
|
||||||
* along with this program; if not, write to the Free Software Foundation, Inc.,
|
|
||||||
* 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. To contact the
|
|
||||||
* authors: Surreal64 CE Team (http://www.emuxtras.net)
|
|
||||||
*/
|
|
||||||
|
|
||||||
#pragma once
|
|
||||||
|
|
||||||
#include <stdio.h>
|
|
||||||
#include <stdlib.h>
|
|
||||||
#include <string.h>
|
|
||||||
#include <io.h>
|
|
||||||
#include <iostream>
|
|
||||||
#include <fstream>
|
|
||||||
#include <sstream>
|
|
||||||
#include <direct.h>
|
|
||||||
#include <list>
|
|
||||||
#include <vector>
|
|
||||||
#include <algorithm>
|
|
||||||
#include <xtl.h>
|
|
||||||
#include <xgraphics.h>
|
|
||||||
|
|
||||||
using namespace std;
|
|
||||||
|
|
||||||
#define XBUILD "Launcher CE"
|
|
||||||
|
|
||||||
typedef unsigned __int8 byte;
|
|
||||||
typedef unsigned __int16 word;
|
|
||||||
typedef unsigned __int32 dword;
|
|
||||||
typedef unsigned __int64 qword;
|
|
||||||
|
|
||||||
|
|
@ -10,7 +10,6 @@
|
|||||||
#endif // _MSC_VER > 1000
|
#endif // _MSC_VER > 1000
|
||||||
#ifdef _XBOX
|
#ifdef _XBOX
|
||||||
#include <xtl.h>
|
#include <xtl.h>
|
||||||
#include "global.h"
|
|
||||||
|
|
||||||
#define TRAY_OPEN 16
|
#define TRAY_OPEN 16
|
||||||
#define TRAY_CLOSED_NO_MEDIA 64
|
#define TRAY_CLOSED_NO_MEDIA 64
|
||||||
|
@ -126,7 +126,7 @@ void CMenuMain::Render()
|
|||||||
//FIXME: Width/Height needs to be current Rom texture width/height (or should we just leave it at a fixed size?)
|
//FIXME: Width/Height needs to be current Rom texture width/height (or should we just leave it at a fixed size?)
|
||||||
m_menuMainRomSelectPanel.Render(m_menuMainRomSelectPanel_x, m_menuMainRomSelectPanel_y, m_menuMainRomSelectPanel_w, m_menuMainRomSelectPanel_h);
|
m_menuMainRomSelectPanel.Render(m_menuMainRomSelectPanel_x, m_menuMainRomSelectPanel_y, m_menuMainRomSelectPanel_w, m_menuMainRomSelectPanel_h);
|
||||||
|
|
||||||
dword dwSpacing = 0;
|
int32_t dwSpacing = 0;
|
||||||
|
|
||||||
for (int i = m_romListBeginRender; i <= m_romListEndRender; i++)
|
for (int i = m_romListBeginRender; i <= m_romListEndRender; i++)
|
||||||
{
|
{
|
||||||
|
@ -14,7 +14,6 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
#pragma once
|
#pragma once
|
||||||
#include "Global.h"
|
|
||||||
#include "Surface.h"
|
#include "Surface.h"
|
||||||
|
|
||||||
class CMenuMain
|
class CMenuMain
|
||||||
@ -43,20 +42,20 @@ _c = color,
|
|||||||
CSurface m_menuMainBG;
|
CSurface m_menuMainBG;
|
||||||
int m_menuMainBG_x;
|
int m_menuMainBG_x;
|
||||||
int m_menuMainBG_y;
|
int m_menuMainBG_y;
|
||||||
dword m_menuMainBG_w;
|
int32_t m_menuMainBG_w;
|
||||||
dword m_menuMainBG_h;
|
int32_t m_menuMainBG_h;
|
||||||
|
|
||||||
// Rom selector panel with coords
|
// Rom selector panel with coords
|
||||||
CSurface m_menuMainRomSelectPanel;
|
CSurface m_menuMainRomSelectPanel;
|
||||||
int m_menuMainRomSelectPanel_x;
|
int m_menuMainRomSelectPanel_x;
|
||||||
int m_menuMainRomSelectPanel_y;
|
int m_menuMainRomSelectPanel_y;
|
||||||
dword m_menuMainRomSelectPanel_w;
|
int32_t m_menuMainRomSelectPanel_w;
|
||||||
dword m_menuMainRomSelectPanel_h;
|
int32_t m_menuMainRomSelectPanel_h;
|
||||||
|
|
||||||
// Title coords with color
|
// Title coords with color
|
||||||
int m_menuMainTitle_x;
|
int m_menuMainTitle_x;
|
||||||
int m_menuMainTitle_y;
|
int m_menuMainTitle_y;
|
||||||
dword m_menuMainTitle_c;
|
int32_t m_menuMainTitle_c;
|
||||||
|
|
||||||
// Rom list coords
|
// Rom list coords
|
||||||
int m_menuMainRomListPos_x;
|
int m_menuMainRomListPos_x;
|
||||||
|
@ -15,8 +15,6 @@
|
|||||||
|
|
||||||
#pragma once
|
#pragma once
|
||||||
|
|
||||||
#include "Global.h"
|
|
||||||
|
|
||||||
enum eMenuState
|
enum eMenuState
|
||||||
{
|
{
|
||||||
MENU_MAIN = 0,
|
MENU_MAIN = 0,
|
||||||
|
@ -15,8 +15,6 @@
|
|||||||
|
|
||||||
#pragma once
|
#pragma once
|
||||||
|
|
||||||
#include "Global.h"
|
|
||||||
|
|
||||||
class Rom
|
class Rom
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
|
@ -12,7 +12,7 @@
|
|||||||
* 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. To contact the
|
* 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. To contact the
|
||||||
* authors: Surreal64 CE Team (http://www.emuxtras.net)
|
* authors: Surreal64 CE Team (http://www.emuxtras.net)
|
||||||
*/
|
*/
|
||||||
|
#include <algorithm>
|
||||||
#include "RomList.h"
|
#include "RomList.h"
|
||||||
|
|
||||||
RomList g_romList;
|
RomList g_romList;
|
||||||
@ -46,7 +46,7 @@ bool RomList::IsLoaded()
|
|||||||
|
|
||||||
void RomList::AddRomToList(Rom *rom, int mode)
|
void RomList::AddRomToList(Rom *rom, int mode)
|
||||||
{
|
{
|
||||||
vector<Rom *> *pList;
|
std::vector<Rom *> *pList;
|
||||||
|
|
||||||
pList = &m_romList;
|
pList = &m_romList;
|
||||||
|
|
||||||
@ -58,17 +58,16 @@ void RomList::AddRomToList(Rom *rom, int mode)
|
|||||||
}
|
}
|
||||||
|
|
||||||
pList->push_back(rom);
|
pList->push_back(rom);
|
||||||
sort(pList->begin(), pList->end(), RLessThan);
|
std::sort(pList->begin(), pList->end(), RLessThan);
|
||||||
}
|
}
|
||||||
|
|
||||||
void RomList::RemoveRomFromList(Rom *rom, int mode)
|
void RomList::RemoveRomFromList(Rom *rom, int mode)
|
||||||
{
|
{
|
||||||
vector<Rom *> *pList;
|
std::vector<Rom *> *pList;
|
||||||
|
std::vector<Rom *>::iterator i;
|
||||||
|
|
||||||
pList = &m_romList;
|
pList = &m_romList;
|
||||||
|
|
||||||
vector<Rom *>::iterator i;
|
|
||||||
|
|
||||||
// look to see if the rom is already in the list, we dont want duplicates
|
// look to see if the rom is already in the list, we dont want duplicates
|
||||||
for (i = pList->begin(); i != pList->end(); i++)
|
for (i = pList->begin(); i != pList->end(); i++)
|
||||||
{
|
{
|
||||||
@ -152,7 +151,7 @@ void RomList::Destroy()
|
|||||||
m_bLoaded = false;
|
m_bLoaded = false;
|
||||||
m_iBaseIndex = 0;
|
m_iBaseIndex = 0;
|
||||||
|
|
||||||
vector<Rom *>::iterator i;
|
std::vector<Rom *>::iterator i;
|
||||||
|
|
||||||
for (i = m_romList.begin(); i != m_romList.end(); i++)
|
for (i = m_romList.begin(); i != m_romList.end(); i++)
|
||||||
delete *i;
|
delete *i;
|
||||||
|
@ -15,7 +15,7 @@
|
|||||||
|
|
||||||
#pragma once
|
#pragma once
|
||||||
|
|
||||||
#include "Global.h"
|
#include <vector>
|
||||||
#include "Rom.h"
|
#include "Rom.h"
|
||||||
|
|
||||||
class RomList
|
class RomList
|
||||||
@ -41,14 +41,14 @@ public:
|
|||||||
|
|
||||||
int m_iBaseIndex;
|
int m_iBaseIndex;
|
||||||
|
|
||||||
vector<Rom *> m_romList;
|
std::vector<Rom *> m_romList;
|
||||||
|
|
||||||
private:
|
private:
|
||||||
void Destroy();
|
void Destroy();
|
||||||
|
|
||||||
private:
|
private:
|
||||||
bool m_bLoaded;
|
bool m_bLoaded;
|
||||||
string m_szRomPath;
|
std::string m_szRomPath;
|
||||||
};
|
};
|
||||||
|
|
||||||
extern RomList g_romList;
|
extern RomList g_romList;
|
@ -81,7 +81,7 @@ bool CSurface::Create(const char *szFilename)
|
|||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
bool CSurface::Create(dword width, dword height)
|
bool CSurface::Create(int32_t width, int32_t height)
|
||||||
{
|
{
|
||||||
xdk_d3d_video_t *d3d = (xdk_d3d_video_t*)driver.video_data;
|
xdk_d3d_video_t *d3d = (xdk_d3d_video_t*)driver.video_data;
|
||||||
if (m_bLoaded)
|
if (m_bLoaded)
|
||||||
@ -152,7 +152,7 @@ bool CSurface::Render(int x, int y)
|
|||||||
return Render(x, y, m_imageInfo.Width, m_imageInfo.Height);
|
return Render(x, y, m_imageInfo.Width, m_imageInfo.Height);
|
||||||
}
|
}
|
||||||
|
|
||||||
bool CSurface::Render(int x, int y, dword w, dword h)
|
bool CSurface::Render(int x, int y, int32_t w, int32_t h)
|
||||||
{
|
{
|
||||||
xdk_d3d_video_t *d3d = (xdk_d3d_video_t*)driver.video_data;
|
xdk_d3d_video_t *d3d = (xdk_d3d_video_t*)driver.video_data;
|
||||||
if (m_pTexture == NULL || m_pVertexBuffer == NULL || m_bLoaded == false)
|
if (m_pTexture == NULL || m_pVertexBuffer == NULL || m_bLoaded == false)
|
||||||
@ -215,7 +215,7 @@ void CSurface::MoveTo(int x, int y)
|
|||||||
m_y = y;
|
m_y = y;
|
||||||
}
|
}
|
||||||
|
|
||||||
dword CSurface::GetWidth()
|
int32_t CSurface::GetWidth()
|
||||||
{
|
{
|
||||||
if (m_pTexture == NULL || m_pVertexBuffer == NULL)
|
if (m_pTexture == NULL || m_pVertexBuffer == NULL)
|
||||||
return 0;
|
return 0;
|
||||||
@ -223,7 +223,7 @@ dword CSurface::GetWidth()
|
|||||||
return m_imageInfo.Width;
|
return m_imageInfo.Width;
|
||||||
}
|
}
|
||||||
|
|
||||||
dword CSurface::GetHeight()
|
int32_t CSurface::GetHeight()
|
||||||
{
|
{
|
||||||
if (m_pTexture == NULL || m_pVertexBuffer == NULL)
|
if (m_pTexture == NULL || m_pVertexBuffer == NULL)
|
||||||
return 0;
|
return 0;
|
||||||
@ -231,7 +231,7 @@ dword CSurface::GetHeight()
|
|||||||
return m_imageInfo.Height;
|
return m_imageInfo.Height;
|
||||||
}
|
}
|
||||||
|
|
||||||
byte CSurface::GetOpacity()
|
int8_t CSurface::GetOpacity()
|
||||||
{
|
{
|
||||||
return m_byOpacity;
|
return m_byOpacity;
|
||||||
}
|
}
|
||||||
|
@ -17,8 +17,6 @@
|
|||||||
|
|
||||||
#pragma once
|
#pragma once
|
||||||
|
|
||||||
#include "Global.h"
|
|
||||||
|
|
||||||
class CSurface
|
class CSurface
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
@ -29,14 +27,14 @@ public:
|
|||||||
* Do functions
|
* Do functions
|
||||||
*/
|
*/
|
||||||
bool Create(const char *szFilename);
|
bool Create(const char *szFilename);
|
||||||
bool Create(dword width, dword height);
|
bool Create(int32_t width, int32_t height);
|
||||||
void Destroy();
|
void Destroy();
|
||||||
|
|
||||||
bool IsLoaded();
|
bool IsLoaded();
|
||||||
|
|
||||||
bool Render();
|
bool Render();
|
||||||
bool Render(int x, int y);
|
bool Render(int x, int y);
|
||||||
bool Render(int x, int y, dword w, dword h);
|
bool Render(int x, int y, int32_t w, int32_t h);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Set functions
|
* Set functions
|
||||||
@ -48,10 +46,10 @@ public:
|
|||||||
/**
|
/**
|
||||||
* Get functions
|
* Get functions
|
||||||
*/
|
*/
|
||||||
dword GetWidth();
|
int32_t GetWidth();
|
||||||
dword GetHeight();
|
int32_t GetHeight();
|
||||||
|
|
||||||
byte GetOpacity();
|
int8_t GetOpacity();
|
||||||
|
|
||||||
IDirect3DTexture8 *GetTexture();
|
IDirect3DTexture8 *GetTexture();
|
||||||
|
|
||||||
|
@ -14,7 +14,6 @@
|
|||||||
* If not, see <http://www.gnu.org/licenses/>.
|
* If not, see <http://www.gnu.org/licenses/>.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include "RetroLaunch/Global.h"
|
|
||||||
#include "RetroLaunch/IoSupport.h"
|
#include "RetroLaunch/IoSupport.h"
|
||||||
#include "RetroLaunch/MenuManager.h"
|
#include "RetroLaunch/MenuManager.h"
|
||||||
#include "RetroLaunch/RomList.h"
|
#include "RetroLaunch/RomList.h"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user