OpenAWE icon indicating copy to clipboard operation
OpenAWE copied to clipboard

Path normalization

Open Nostritius opened this issue 4 years ago • 0 comments

The normalization of a file path is necessary for a lot of asset loading in OpenAWE. It is essentially about giving all paths a common form, to allow better common handling with them. It is already done by its own in several file loaders, but it would be great to have one central method for this. The normalization consists of the following points:

  • Replacing \ through /
  • Make the whole path lower case
  • Convert runtimedata\pc to d:/data paths
  • Remove d:/data from path

Nostritius avatar Jul 15 '21 12:07 Nostritius