natinusala / borealis

Hardware accelerated, controller and TV oriented UI library for PC and Nintendo Switch (libnx)
Apache License 2.0
257 stars 81 forks source link

Use fmt to format the XML errors #113

Open natinusala opened 3 years ago

natinusala commented 3 years ago

Right now, all XML errors are generated by concatenating strings with the + operator. We have fmt in the library, so might as well use it instead.

Actually, a global "sprintf"-like function to format to a std::string would be useful, provided by brls in the utils.