mirror of
https://github.com/edubart/otclient.git
synced 2025-12-20 15:37:11 +01:00
Some fixes in hotkeys and other improvements
* Save last logged character and world instead of character name * Make focused label always visible in character list and hotkeys * Other fixes in hotkeys
This commit is contained in:
@@ -68,11 +68,13 @@ std::string Platform::getTempPath()
|
||||
return stdext::utf16_to_utf8(path);
|
||||
}
|
||||
|
||||
void Platform::copyFile(std::string from, std::string to)
|
||||
bool Platform::copyFile(std::string from, std::string to)
|
||||
{
|
||||
boost::replace_all(from, "/", "\\");
|
||||
boost::replace_all(to, "/", "\\");
|
||||
CopyFileW(stdext::utf8_to_utf16(from).c_str(), stdext::utf8_to_utf16(to).c_str(), false);
|
||||
if(CopyFileW(stdext::utf8_to_utf16(from).c_str(), stdext::utf8_to_utf16(to).c_str(), FALSE) == 0)
|
||||
return false;
|
||||
return true;
|
||||
}
|
||||
|
||||
void Platform::openUrl(std::string url)
|
||||
|
||||
Reference in New Issue
Block a user