Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is there a way to set Windows Phone 7 Emulator some settings before started? As Theme, region, language

I need when the emulator starts to start with different locale and also in light theme which is not the default. Is there any way to do this in some settings file or something like that?

Searched over the net but nothing found

like image 631
The DreAmeR Avatar asked Jun 10 '11 09:06

The DreAmeR


1 Answers

General settings for the Windows Phone emulator are stored in XDE-based board configuration files (*.decfg) that can be specified as parameters when you launch an XDE instance. Those files are located here:

C:\Program Files (x86)\Microsoft XDE\1.0 (for 64-bit systems)

C:\Program Files\Microsoft XDE\1.0 (for 32-bit systems)

You will see that there is config_board0.decfg and config_board1.decfg - both are nothing more than XML files with a different extension. There, you can configure:

Whether to show the debug console or not (in case you don't want to dig through the registry)

  • Zoom factor
  • RAM Size
  • Displacement
  • GPU Configuration (e.g. FPS throttling)
  • Orientation

The language is specified by the /language parameter that is passed to the emulator. The LangID is, in fact, the LocaleID (LCID) - you can get a full list here. Decimal values from that table should be used.

If the LCID you passed is not registered on the device, it will default to English - United States (en-US - 1033).

A simple launch string could look like this (with parameters):

"C:\Program Files (x86)\Microsoft XDE\1.0\XDE.exe" /decfg D:\Tempor ary\config_board1.decfg /vmid {6db75612-361e-4c8f-8aaa-307a312c39c6} /binfile "C :\Program Files (x86)\Microsoft SDKs\Windows Phone\v7.1\Emulation\Images\WM70C1. en-US.bin" /language 1031

Where 1031 (for the language) represents German.

IMPORTANT NOTE: The language passed to XDE is emulator-specific and has nothing to do with the OS. The only supported language right now is English - US (1033).

like image 127
Den Delimarsky Avatar answered Oct 12 '22 13:10

Den Delimarsky