Code snipits

From DS-Xtra

Jump to: navigation, search

The below work for firmware version v1.1.2

Contents


[edit] Turn off the shoulder button during music playback

By default the shoulder button are set to 'next song' and 'previous song', which means if you are carrying your DS in your pocket while listing to music and knock it it can skip songs.

Browse to \skin\default\scenes and open AudioMain.xml with a text editor like notepad.
Do a search for 'function OnButtonPressed(event)' (without the single quotes). it's on line 338

Change this bit of code:

function OnButtonPressed(event)
{
	if(event.getButton() == event.B)
	{
		GoBack();
	}
	else if(event.getButton() == event.L)
	{
		PrevSong();
	}
	else if(event.getButton() == event.R)
	{
		NextSong();
	}
}

To look like this:

function OnButtonPressed(event)
{
	if(event.getButton() == event.B)
	{
		GoBack();
	}
	else if(event.getButton() == event.L)
	{
		// PrevSong();
	}
	else if(event.getButton() == event.R)
	{
		// NextSong();
	}
}

DS-Xtreme forum link

[edit] Boot straight to apps

By default DS-X boots to a main menu, you can change this to boot to the apps list directly instead.

In your DS-X got to skin\default\ and open the file skin.xml with Notepad

Change line 19 & 20 from

<scene id="main" filepath="scenes/MainMenu.xml" start="true"/>
<scene id="AppsList" filepath="scenes/AppsList.xml"/>

to

<scene id="main" filepath="scenes/MainMenu.xml"/>
<scene id="AppsList" filepath="scenes/AppsList.xml" start="true"/>

Source

[edit] Remove the confirm dialogue when you start an App

By default you will be asked to confirm the starting of an app from the app list but you can remove that confirmation dialogue.

To do so open your DS-X and got to skin\default\scenes\ and open the file AppsList.xml in Notepad

Go to line 199

local appItem = appList.getSelectedItem();

and add the line

appItem.getItem().launch();

So it looks like

local appItem = appList.getSelectedItem();
appItem.getItem().launch();

Source

Personal tools