mirror of
https://github.com/open-goal/jak-project
synced 2026-05-24 07:11:15 -04:00
1b67d1dc77
* fix utf-8 handling around env-vars * fix file opening errors related to unicode * add uncaught exception handler in `gk` to ensure something is logged * gracefully fail if window icon cant be loaded and work with unicode * linux fix and add changes to vendor file
14 lines
423 B
C++
14 lines
423 B
C++
#pragma once
|
|
|
|
#include <string>
|
|
#include <vector>
|
|
|
|
#ifdef _WIN32
|
|
std::wstring utf8_string_to_wide_string(const std::string_view& str);
|
|
bool utf8_string_to_wide_string(std::wstring& dest, const std::string_view& str);
|
|
std::string wide_string_to_utf8_string(const std::wstring_view& str);
|
|
bool wide_string_to_utf8_string(std::string& dest, const std::wstring_view& str);
|
|
#endif
|
|
|
|
std::string get_env(const std::string& name);
|