ppsspp/UWP/UWPUtil.h
Henrik Rydgård ff8148dd92 Move native/util, native/data and native/i18 to Common/Data.
Also move colorutil.cpp/h

linking build fix experiment

Delete a bunch of unused CMakeLists.txt files

CMakeLists.txt linking fix

Don't include NativeApp.h from any headers.

Android.mk buildfix

Half of the UWP fix

Buildfix

Minor project file cleanup

Buildfixes

Guess what? More buildfixes!
2020-10-04 07:28:29 +02:00

12 lines
320 B
C++

#pragma once
#include "Common/Data/Encoding/Utf8.h"
inline Platform::String ^ToPlatformString(std::string str) {
return ref new Platform::String(ConvertUTF8ToWString(str).c_str());
}
inline std::string FromPlatformString(Platform::String ^str) {
std::wstring wstr(str->Data());
return ConvertWStringToUTF8(wstr);
}