mirror of
https://github.com/ARMSX2/ARMSX2.git
synced 2026-08-24 16:50:16 -07:00
FileSystem: Handle paths longer than MAX_PATH on Windows
This commit is contained in:
committed by
Connor McLaughlin
parent
c16ac2034c
commit
f3d6249cc1
@@ -3,6 +3,7 @@
|
||||
|
||||
#if defined(_WIN32)
|
||||
|
||||
#include "common/FileSystem.h"
|
||||
#include "common/HostSys.h"
|
||||
#include "common/RedtapeWindows.h"
|
||||
#include "common/StringUtil.h"
|
||||
@@ -91,7 +92,7 @@ bool WindowInfo::InhibitScreensaver(const WindowInfo& wi, bool inhibit)
|
||||
|
||||
bool Common::PlaySoundAsync(const char* path)
|
||||
{
|
||||
const std::wstring wpath(StringUtil::UTF8StringToWideString(path));
|
||||
const std::wstring wpath = FileSystem::GetWin32Path(path);
|
||||
return PlaySoundW(wpath.c_str(), NULL, SND_ASYNC | SND_NODEFAULT);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user