7D2DSDX / SDX

SDX 0.7.x
0 stars 0 forks source link

SDX 0.7.1 - Malformed Localization throws unhandled exception #1

Open SphereII opened 7 years ago

SphereII commented 7 years ago

When dealing with a malformed Localization file, SDX Launcher throws an unhandled exception.

SphereII commented 7 years ago

The unhandled exception was traced to doing:

this.lookup.Add(array[0], array

The dictionary would throw a duplicate key exception.

Work around: if (!this.lookup.ContainsKey(array[0])) { this.lookup.Add(array[0], array); }

HAL-NINE-THOUSAND commented 7 years ago

What was the stack trace? Or got an example file that throws an error?

SphereII commented 7 years ago

Localization.txt

Adding a Localization file that is causing issues. There's multiple issues with this file, including too many commas, and not enough commas.