(Xenon) Some more build fixes
This commit is contained in:
parent
9567db0ffe
commit
fc9dec8099
|
@ -20,11 +20,11 @@
|
||||||
|
|
||||||
#include <debug.h>
|
#include <debug.h>
|
||||||
#include <xenos/xenos.h>
|
#include <xenos/xenos.h>
|
||||||
#include <diskio/dvd.h>
|
//#include <diskio/dvd.h>
|
||||||
#include <diskio/ata.h>
|
#include <diskio/ata.h>
|
||||||
#include <input/input.h>
|
#include <input/input.h>
|
||||||
#include <console/console.h>
|
#include <console/console.h>
|
||||||
#include <diskio/diskio.h>
|
//#include <diskio/diskio.h>
|
||||||
#include <usb/usbmain.h>
|
#include <usb/usbmain.h>
|
||||||
#include <time/time.h>
|
#include <time/time.h>
|
||||||
#include <ppc/timebase.h>
|
#include <ppc/timebase.h>
|
||||||
|
@ -52,8 +52,8 @@ static void start_rarch(const char *path)
|
||||||
#define STICK_THRESHOLD 25000
|
#define STICK_THRESHOLD 25000
|
||||||
#define MAX_DISPLAYED_ENTRIES 20
|
#define MAX_DISPLAYED_ENTRIES 20
|
||||||
|
|
||||||
#define MAX(a, b) (((a) > (b)) ? (a) : (b))
|
//#define MAX(a, b) (((a) > (b)) ? (a) : (b))
|
||||||
#define MIN(a, b) (((a) < (b)) ? (a) : (b))
|
//#define MIN(a, b) (((a) < (b)) ? (a) : (b))
|
||||||
|
|
||||||
static struct dirent entries[MAX_FILES];
|
static struct dirent entries[MAX_FILES];
|
||||||
static int entrycount;
|
static int entrycount;
|
||||||
|
@ -121,7 +121,7 @@ int main(void)
|
||||||
usb_init();
|
usb_init();
|
||||||
usb_do_poll();
|
usb_do_poll();
|
||||||
xenon_ata_init();
|
xenon_ata_init();
|
||||||
dvd_init();
|
//dvd_init();
|
||||||
|
|
||||||
handle = -1;
|
handle = -1;
|
||||||
handle = bdev_enum(handle, &s);
|
handle = bdev_enum(handle, &s);
|
||||||
|
@ -173,7 +173,7 @@ int main(void)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (pad.select)
|
if (pad.back)
|
||||||
{
|
{
|
||||||
append_dir_to_path(path, "..");
|
append_dir_to_path(path, "..");
|
||||||
load_dir(path);
|
load_dir(path);
|
||||||
|
@ -236,7 +236,7 @@ int main(void)
|
||||||
{
|
{
|
||||||
usb_do_poll();
|
usb_do_poll();
|
||||||
get_controller_data(&pad, 0);
|
get_controller_data(&pad, 0);
|
||||||
} while (pad.a || pad.b || pad.select || pad.s1_y > STICK_THRESHOLD || pad.s1_y < -STICK_THRESHOLD);
|
} while (pad.a || pad.b || pad.back || pad.s1_y > STICK_THRESHOLD || pad.s1_y < -STICK_THRESHOLD);
|
||||||
}
|
}
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
|
|
|
@ -123,4 +123,3 @@ const input_driver_t input_xenon360 = {
|
||||||
.max_pads = MAX_PADS,
|
.max_pads = MAX_PADS,
|
||||||
.ident = "xenon360",
|
.ident = "xenon360",
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
@ -257,6 +257,12 @@ static bool xenon360_gfx_focus(void *data)
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
static void xenon360_gfx_set_rotation(void *data, unsigned rotation)
|
||||||
|
{
|
||||||
|
(void)data;
|
||||||
|
(void)rotation;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
const video_driver_t video_xenon360 = {
|
const video_driver_t video_xenon360 = {
|
||||||
.init = xenon360_gfx_init,
|
.init = xenon360_gfx_init,
|
||||||
|
|
Loading…
Reference in New Issue