mirror of
https://github.com/CTCaer/RetroArch.git
synced 2025-02-02 09:42:37 +00:00
(360) XUI additions
This commit is contained in:
parent
730983bf59
commit
08a9525508
@ -148,7 +148,7 @@ int main(int argc, char *argv[])
|
|||||||
xdk360_video_init();
|
xdk360_video_init();
|
||||||
|
|
||||||
menu_init();
|
menu_init();
|
||||||
menu_loop();
|
//menu_loop();
|
||||||
|
|
||||||
char arg1[] = "ssnes";
|
char arg1[] = "ssnes";
|
||||||
char arg2[] = "d:\\roms\\mario.sfc";
|
char arg2[] = "d:\\roms\\mario.sfc";
|
||||||
|
@ -17,6 +17,8 @@
|
|||||||
<Width>215.000000</Width>
|
<Width>215.000000</Width>
|
||||||
<Height>38.000000</Height>
|
<Height>38.000000</Height>
|
||||||
<Position>76.000000,91.000000,0.000000</Position>
|
<Position>76.000000,91.000000,0.000000</Position>
|
||||||
|
<NavUp>XuiBtnQuit</NavUp>
|
||||||
|
<NavDown>XuiBtnSettings</NavDown>
|
||||||
<Text>ROM Browser</Text>
|
<Text>ROM Browser</Text>
|
||||||
</Properties>
|
</Properties>
|
||||||
</XuiButton>
|
</XuiButton>
|
||||||
@ -33,5 +35,27 @@
|
|||||||
<TextStyle>21</TextStyle>
|
<TextStyle>21</TextStyle>
|
||||||
</Properties>
|
</Properties>
|
||||||
</XuiText>
|
</XuiText>
|
||||||
|
<XuiButton>
|
||||||
|
<Properties>
|
||||||
|
<Id>XuiBtnSettings</Id>
|
||||||
|
<Width>215.000000</Width>
|
||||||
|
<Height>38.000000</Height>
|
||||||
|
<Position>76.000000,142.399994,0.000000</Position>
|
||||||
|
<NavUp>XuiBtnRomBrowser</NavUp>
|
||||||
|
<NavDown>XuiBtnQuit</NavDown>
|
||||||
|
<Text>Settings</Text>
|
||||||
|
</Properties>
|
||||||
|
</XuiButton>
|
||||||
|
<XuiButton>
|
||||||
|
<Properties>
|
||||||
|
<Id>XuiBtnQuit</Id>
|
||||||
|
<Width>215.000000</Width>
|
||||||
|
<Height>38.000000</Height>
|
||||||
|
<Position>76.200012,191.399994,0.000000</Position>
|
||||||
|
<NavUp>XuiBtnSettings</NavUp>
|
||||||
|
<NavDown>XuiBtnRomBrowser</NavDown>
|
||||||
|
<Text>Quit</Text>
|
||||||
|
</Properties>
|
||||||
|
</XuiButton>
|
||||||
</XuiScene>
|
</XuiScene>
|
||||||
</XuiCanvas>
|
</XuiCanvas>
|
||||||
|
@ -16,12 +16,14 @@
|
|||||||
* If not, see <http://www.gnu.org/licenses/>.
|
* If not, see <http://www.gnu.org/licenses/>.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
#include <stdint.h>
|
||||||
#include <xtl.h>
|
#include <xtl.h>
|
||||||
#include "xdk360_video.h"
|
#include "xdk360_video.h"
|
||||||
#include "menu.h"
|
#include "menu.h"
|
||||||
|
|
||||||
CSSNES app;
|
CSSNES app;
|
||||||
HXUIOBJ hMainScene;
|
HXUIOBJ hMainScene;
|
||||||
|
uint32_t menu_is_running;
|
||||||
|
|
||||||
/* Register custom classes */
|
/* Register custom classes */
|
||||||
HRESULT CSSNES::RegisterXuiClasses (void)
|
HRESULT CSSNES::RegisterXuiClasses (void)
|
||||||
@ -76,6 +78,8 @@ int menu_init (void)
|
|||||||
|
|
||||||
void menu_loop(void)
|
void menu_loop(void)
|
||||||
{
|
{
|
||||||
|
menu_is_running = true;
|
||||||
|
|
||||||
HRESULT hr;
|
HRESULT hr;
|
||||||
xdk360_video_t *vid = (xdk360_video_t*)g_d3d;
|
xdk360_video_t *vid = (xdk360_video_t*)g_d3d;
|
||||||
|
|
||||||
@ -90,7 +94,6 @@ void menu_loop(void)
|
|||||||
hr = XuiTimersRun(); /* Update XUI timers */
|
hr = XuiTimersRun(); /* Update XUI timers */
|
||||||
|
|
||||||
/* Present the frame */
|
/* Present the frame */
|
||||||
vid->xdk360_render_device->Present(NULL, NULL, NULL, NULL);
|
vid->xdk360_render_device->Present(NULL, NULL, NULL, NULL);
|
||||||
|
}while(menu_is_running);
|
||||||
}while(1);
|
|
||||||
}
|
}
|
Loading…
x
Reference in New Issue
Block a user