mirror of
https://github.com/Team-Resurgent/dvd2xbox.git
synced 2026-04-30 10:09:12 -07:00
- fixed the renaminf function with directories containing default.xbe without titlenames
39 lines
1.2 KiB
C++
39 lines
1.2 KiB
C++
/*
|
|
XBOX Front LED control
|
|
OFF/Green/Red/Orange/Cycle
|
|
10.11.2004 GeminiServer
|
|
*/
|
|
|
|
#include "LED.h"
|
|
#include "xkutils/XKUtils.h"
|
|
//#include "../GUISettings.h"
|
|
|
|
|
|
void ILED::CLEDControl(int ixLED)
|
|
{
|
|
if (ixLED==LED_COLOUR_OFF)
|
|
{
|
|
XKUtils::SetXBOXLEDStatus(0);
|
|
}
|
|
else if (ixLED==LED_COLOUR_GREEN)
|
|
{
|
|
XKUtils::SetXBOXLEDStatus(XKUtils::LED_REGISTER_CYCLE0_GREEN|XKUtils::LED_REGISTER_CYCLE2_GREEN|XKUtils::LED_REGISTER_CYCLE1_GREEN|XKUtils::LED_REGISTER_CYCLE3_GREEN);
|
|
}
|
|
else if (ixLED==LED_COLOUR_RED)
|
|
{
|
|
XKUtils::SetXBOXLEDStatus(XKUtils::LED_REGISTER_CYCLE0_RED|XKUtils::LED_REGISTER_CYCLE2_RED|XKUtils::LED_REGISTER_CYCLE1_RED|XKUtils::LED_REGISTER_CYCLE3_RED);
|
|
}
|
|
else if (ixLED==LED_COLOUR_ORANGE)
|
|
{
|
|
XKUtils::SetXBOXLEDStatus(XKUtils::LED_REGISTER_CYCLE0_ORANGE|XKUtils::LED_REGISTER_CYCLE2_ORANGE|XKUtils::LED_REGISTER_CYCLE1_ORANGE|XKUtils::LED_REGISTER_CYCLE3_ORANGE);
|
|
}
|
|
else if (ixLED==LED_COLOUR_CYCLE)
|
|
{
|
|
XKUtils::SetXBOXLEDStatus(XKUtils::LED_REGISTER_CYCLE0_GREEN|XKUtils::LED_REGISTER_CYCLE2_GREEN|XKUtils::LED_REGISTER_CYCLE1_ORANGE|XKUtils::LED_REGISTER_CYCLE3_RED);
|
|
}
|
|
else if (ixLED==LED_COLOUR_NO_CHANGE) //Default Bios Settings
|
|
{
|
|
//No need to Change! Leave the LED with the Default Bios Settings
|
|
}
|
|
}
|