(Xbox 1) Included RetroLaunch into the solution - not yet working

though
This commit is contained in:
twinaphex 2012-07-23 15:11:15 +02:00
parent cecc7613db
commit baa25cdaa2
4 changed files with 103 additions and 78 deletions

View File

@ -327,33 +327,73 @@
Name="Debug|Xbox">
<Tool
Name="VCCLCompilerTool"
CompileAs="2"/>
CompileAs="1"/>
</FileConfiguration>
<FileConfiguration
Name="Profile|Xbox">
<Tool
Name="VCCLCompilerTool"
CompileAs="2"/>
CompileAs="1"/>
</FileConfiguration>
<FileConfiguration
Name="Profile_FastCap|Xbox">
<Tool
Name="VCCLCompilerTool"
CompileAs="2"/>
CompileAs="1"/>
</FileConfiguration>
<FileConfiguration
Name="Release|Xbox">
<Tool
Name="VCCLCompilerTool"
CompileAs="2"/>
CompileAs="1"/>
</FileConfiguration>
<FileConfiguration
Name="Release_LTCG|Xbox">
<Tool
Name="VCCLCompilerTool"
CompileAs="2"/>
CompileAs="1"/>
</FileConfiguration>
</File>
<Filter
Name="RetroLaunch"
Filter="">
<File
RelativePath="..\..\xbox1\RetroLaunch\Debug.cpp">
</File>
<File
RelativePath="..\..\xbox1\RetroLaunch\Font.cpp">
</File>
<File
RelativePath="..\..\xbox1\RetroLaunch\IniFile.cpp">
</File>
<File
RelativePath="..\..\xbox1\RetroLaunch\Input.cpp">
</File>
<File
RelativePath="..\..\xbox1\RetroLaunch\IoSupport.cpp">
</File>
<File
RelativePath="..\..\xbox1\RetroLaunch\Launcher.cpp">
</File>
<File
RelativePath="..\..\xbox1\RetroLaunch\MenuMain.cpp">
</File>
<File
RelativePath="..\..\xbox1\RetroLaunch\MenuManager.cpp">
</File>
<File
RelativePath="..\..\xbox1\RetroLaunch\Rom.cpp">
</File>
<File
RelativePath="..\..\xbox1\RetroLaunch\RomList.cpp">
</File>
<File
RelativePath="..\..\xbox1\RetroLaunch\Surface.cpp">
</File>
<File
RelativePath="..\..\xbox1\RetroLaunch\Video.cpp">
</File>
</Filter>
</Filter>
<Filter
Name="Header Files"

View File

@ -1,72 +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)
*/
#include "Global.h"
#include "Video.h"
#include "IniFile.h"
#include "IoSupport.h"
#include "Input.h"
#include "Debug.h"
#include "Font.h"
#include "MenuManager.h"
#include "RomList.h"
bool g_bExit = false;
void __cdecl main()
{
g_debug.Print("Starting RetroLaunch\n");
// Set file cache size
XSetFileCacheSize(8 * 1024 * 1024);
// Mount drives
g_IOSupport.Mount("A:", "cdrom0");
g_IOSupport.Mount("E:", "Harddisk0\\Partition1");
g_IOSupport.Mount("Z:", "Harddisk0\\Partition2");
g_IOSupport.Mount("F:", "Harddisk0\\Partition6");
g_IOSupport.Mount("G:", "Harddisk0\\Partition7");
// Initialize Direct3D
if (!g_video.Create(NULL, false))
return;
// Parse ini file for settings
g_iniFile.CheckForIniEntry();
// Load the rom list if it isn't already loaded
if (!g_romList.IsLoaded()) {
g_romList.Load();
}
// Init input here
g_input.Create();
// Load the font here
g_font.Create();
// Build menu here (Menu state -> Main Menu)
g_menuManager.Create();
// Loop the app
while (!g_bExit)
{
g_video.BeginRender();
g_input.GetInput();
g_menuManager.Update();
g_video.EndRender();
}
}

View File

@ -17,6 +17,7 @@
#include "Global.h"
#undef D3DFVF_CUSTOMVERTEX
#define D3DFVF_CUSTOMVERTEX (D3DFVF_XYZ | D3DFVF_DIFFUSE | D3DFVF_TEX1)
typedef struct CustomVertex

View File

@ -166,11 +166,67 @@ static void configure_libretro(const char *path_prefix, const char * extension)
}
#ifdef _XBOX1
static void menu_init(void) {}
#include "../../xbox1/RetroLaunch/Global.h"
#include "../../xbox1/RetroLaunch/Video.h"
#include "../../xbox1/RetroLaunch/IniFile.h"
#include "../../xbox1/RetroLaunch/IoSupport.h"
#include "../../xbox1/RetroLaunch/Input.h"
#include "../../xbox1/RetroLaunch/Debug.h"
#include "../../xbox1/RetroLaunch/Font.h"
#include "../../xbox1/RetroLaunch/MenuManager.h"
#include "../../xbox1/RetroLaunch/RomList.h"
bool g_bExit = false;
static void menu_init(void)
{
//g_debug.Print("Starting RetroLaunch\n");
//// Set file cache size
//XSetFileCacheSize(8 * 1024 * 1024);
//// Mount drives
//g_IOSupport.Mount("A:", "cdrom0");
//g_IOSupport.Mount("E:", "Harddisk0\\Partition1");
//g_IOSupport.Mount("Z:", "Harddisk0\\Partition2");
//g_IOSupport.Mount("F:", "Harddisk0\\Partition6");
//g_IOSupport.Mount("G:", "Harddisk0\\Partition7");
//// Initialize Direct3D
//if (!g_video.Create(NULL, false))
// return;
//// Parse ini file for settings
//g_iniFile.CheckForIniEntry();
//// Load the rom list if it isn't already loaded
//if (!g_romList.IsLoaded()) {
// g_romList.Load();
//}
//// Init input here
//g_input.Create();
//// Load the font here
//g_font.Create();
//// Build menu here (Menu state -> Main Menu)
//g_menuManager.Create();
}
static void menu_free(void) {}
static void menu_loop(void)
{
rarch_console_load_game("D:\\ssf2x.gba");
// Loop the app
//while (!g_bExit)
//{
// g_video.BeginRender();
// g_input.GetInput();
// g_menuManager.Update();
// g_video.EndRender();
//}
}
#endif