Gems/Atom builds
Signed-off-by: Esteban Papp <81431996+amznestebanpapp@users.noreply.github.com>
This commit is contained in:
@@ -10,6 +10,7 @@
|
||||
|
||||
#include <AzCore/IO/SystemFile.h>
|
||||
#include <AzCore/std/string/conversions.h>
|
||||
#include <AzCore/Utils/Utils.h>
|
||||
|
||||
#include <AzCore/PlatformIncl.h>
|
||||
#include <shlobj.h>
|
||||
@@ -99,7 +100,7 @@ namespace SaveData
|
||||
AZStd::string GetExecutableName()
|
||||
{
|
||||
char moduleFileName[AZ_MAX_PATH_LEN];
|
||||
GetModuleFileNameA(nullptr, moduleFileName, AZ_MAX_PATH_LEN);
|
||||
AZ::Utils::GetExecutablePath(moduleFileName, AZ_MAX_PATH_LEN);
|
||||
|
||||
const AZStd::string moduleFileNameString(moduleFileName);
|
||||
const size_t executableNameStart = moduleFileNameString.find_last_of('\\') + 1;
|
||||
|
||||
Reference in New Issue
Block a user