46 |
{ |
{ |
47 |
reader.ReadToFollowing("PLATFORMNAMESHORT"); |
reader.ReadToFollowing("PLATFORMNAMESHORT"); |
48 |
config.PlatformNameShort = reader.ReadElementContentAsString(); |
config.PlatformNameShort = reader.ReadElementContentAsString(); |
49 |
logger.WriteLine("\tPLATFORMNAMESHORT={0}", config.PlatformNameShort); |
logger.WriteLine("\t\tPLATFORMNAMESHORT={0}", config.PlatformNameShort); |
50 |
|
|
51 |
reader.ReadToFollowing("PLATFORMNAMELONG"); |
reader.ReadToFollowing("PLATFORMNAMELONG"); |
52 |
config.PlatformNameLong = reader.ReadElementContentAsString(); |
config.PlatformNameLong = reader.ReadElementContentAsString(); |
53 |
logger.WriteLine("\tPLATFORMNAMELONG={0}", config.PlatformNameLong); |
logger.WriteLine("\t\tPLATFORMNAMELONG={0}", config.PlatformNameLong); |
54 |
|
|
55 |
reader.ReadToFollowing("PLATFORMIMAGE"); |
reader.ReadToFollowing("PLATFORMIMAGE"); |
56 |
string platform_image = reader.ReadElementContentAsString(); |
string platform_image = reader.ReadElementContentAsString(); |
|
|
|
57 |
config.PlatformImage = (platform_image == "") ? Properties.Resources.DefaultPlatformImage : Image.FromFile(string.Format(@"{0}\{1}",rom_path,platform_image)); |
config.PlatformImage = (platform_image == "") ? Properties.Resources.DefaultPlatformImage : Image.FromFile(string.Format(@"{0}\{1}",rom_path,platform_image)); |
58 |
string str_platform_image = (platform_image == "") ? "DefaultPlatformImage" : platform_image; |
string str_platform_image = (platform_image == "") ? "DefaultPlatformImage" : platform_image; |
59 |
logger.WriteLine("\tPLATFORMIMAGE={0}", str_platform_image); |
logger.WriteLine("\t\tPLATFORMIMAGE={0}", str_platform_image); |
60 |
|
|
61 |
reader.ReadToFollowing("EXTENSIONS"); |
reader.ReadToFollowing("EXTENSIONS"); |
62 |
config.Extenstions = reader.ReadElementContentAsString(); |
config.Extenstions = reader.ReadElementContentAsString(); |
63 |
logger.WriteLine("\tEXTENSIONS={0}", config.Extenstions); |
logger.WriteLine("\t\tEXTENSIONS={0}", config.Extenstions); |
64 |
|
|
65 |
reader.ReadToFollowing("EMULATORPATH"); |
reader.ReadToFollowing("EMULATORPATH"); |
66 |
config.EmuPath = reader.ReadElementContentAsString(); |
config.EmuPath = reader.ReadElementContentAsString(); |
67 |
logger.WriteLine("\tEMULATORPATH={0}", config.EmuPath); |
logger.WriteLine("\t\tEMULATORPATH={0}", config.EmuPath); |
68 |
|
|
69 |
reader.ReadToFollowing("EMULATOROPTIONS"); |
reader.ReadToFollowing("EMULATOROPTIONS"); |
70 |
config.EmuOptions = reader.ReadElementContentAsString(); |
config.EmuOptions = reader.ReadElementContentAsString(); |
71 |
logger.WriteLine("\tEMULATOROPTIONS={0}", config.EmuOptions); |
logger.WriteLine("\t\tEMULATOROPTIONS={0}", config.EmuOptions); |
72 |
} |
} |
73 |
} |
} |
74 |
logger.WriteLine("\tLoaded Config: {0}", config_path); |
logger.WriteLine("\tLoaded Config: {0}", config_path); |