Fix compilation issues
This commit is contained in:
@@ -1135,7 +1135,8 @@ void UIScene_SkinSelectMenu::updatePackDisplay()
|
|||||||
{
|
{
|
||||||
DLCPack *thisPack = app.m_dlcManager.getPack(m_packIndex - SKIN_SELECT_MAX_DEFAULTS, DLCManager::e_DLCType_Skin);
|
DLCPack *thisPack = app.m_dlcManager.getPack(m_packIndex - SKIN_SELECT_MAX_DEFAULTS, DLCManager::e_DLCType_Skin);
|
||||||
// Fix the incorrect string type on title to display correctly
|
// Fix the incorrect string type on title to display correctly
|
||||||
const char* name = static_cast<const char*>(thisPack->getName().c_str());
|
|
||||||
|
const char* name = reinterpret_cast<const char*>(thisPack->getName().c_str());
|
||||||
int len = MultiByteToWideChar(CP_UTF8, 0, name, -1, NULL, 0);
|
int len = MultiByteToWideChar(CP_UTF8, 0, name, -1, NULL, 0);
|
||||||
std::wstring wName(len, 0);
|
std::wstring wName(len, 0);
|
||||||
MultiByteToWideChar(CP_UTF8, 0, name, -1, &wName[0], len);
|
MultiByteToWideChar(CP_UTF8, 0, name, -1, &wName[0], len);
|
||||||
@@ -1160,7 +1161,7 @@ void UIScene_SkinSelectMenu::updatePackDisplay()
|
|||||||
{
|
{
|
||||||
DLCPack *thisPack = app.m_dlcManager.getPack(nextPackIndex - SKIN_SELECT_MAX_DEFAULTS, DLCManager::e_DLCType_Skin);
|
DLCPack *thisPack = app.m_dlcManager.getPack(nextPackIndex - SKIN_SELECT_MAX_DEFAULTS, DLCManager::e_DLCType_Skin);
|
||||||
// Fix the incorrect string type on title to display correctly
|
// Fix the incorrect string type on title to display correctly
|
||||||
const char* name = static_cast<const char*>(thisPack->getName().c_str());
|
const char* name = reinterpret_cast<const char*>(thisPack->getName().c_str());
|
||||||
int len = MultiByteToWideChar(CP_UTF8, 0, name, -1, NULL, 0);
|
int len = MultiByteToWideChar(CP_UTF8, 0, name, -1, NULL, 0);
|
||||||
std::wstring wName(len, 0);
|
std::wstring wName(len, 0);
|
||||||
MultiByteToWideChar(CP_UTF8, 0, name, -1, &wName[0], len);
|
MultiByteToWideChar(CP_UTF8, 0, name, -1, &wName[0], len);
|
||||||
@@ -1185,7 +1186,7 @@ void UIScene_SkinSelectMenu::updatePackDisplay()
|
|||||||
{
|
{
|
||||||
DLCPack *thisPack = app.m_dlcManager.getPack(previousPackIndex - SKIN_SELECT_MAX_DEFAULTS, DLCManager::e_DLCType_Skin);
|
DLCPack *thisPack = app.m_dlcManager.getPack(previousPackIndex - SKIN_SELECT_MAX_DEFAULTS, DLCManager::e_DLCType_Skin);
|
||||||
// Fix the incorrect string type on title to display correctly
|
// Fix the incorrect string type on title to display correctly
|
||||||
const char* name = static_cast<const char*>(thisPack->getName().c_str());
|
const char* name = reinterpret_cast<const char*>(thisPack->getName().c_str());
|
||||||
int len = MultiByteToWideChar(CP_UTF8, 0, name, -1, NULL, 0);
|
int len = MultiByteToWideChar(CP_UTF8, 0, name, -1, NULL, 0);
|
||||||
std::wstring wName(len, 0);
|
std::wstring wName(len, 0);
|
||||||
MultiByteToWideChar(CP_UTF8, 0, name, -1, &wName[0], len);
|
MultiByteToWideChar(CP_UTF8, 0, name, -1, &wName[0], len);
|
||||||
|
|||||||
@@ -1409,7 +1409,7 @@ if not exist "$(TargetDir)\savedata" mkdir "$(TargetDir)\savedata"</Command>
|
|||||||
<ExceptionHandling>Sync</ExceptionHandling>
|
<ExceptionHandling>Sync</ExceptionHandling>
|
||||||
<BufferSecurityCheck>false</BufferSecurityCheck>
|
<BufferSecurityCheck>false</BufferSecurityCheck>
|
||||||
<PrecompiledHeaderOutputFile>$(OutDir)$(ProjectName).pch</PrecompiledHeaderOutputFile>
|
<PrecompiledHeaderOutputFile>$(OutDir)$(ProjectName).pch</PrecompiledHeaderOutputFile>
|
||||||
<RuntimeLibrary>MultiThreadedDebugDLL</RuntimeLibrary>
|
<RuntimeLibrary>MultiThreadedDebug</RuntimeLibrary>
|
||||||
<PreprocessorDefinitions>_LARGE_WORLDS;_DEBUG_MENUS_ENABLED;_DEBUG;_CRT_NON_CONFORMING_SWPRINTFS;_CRT_SECURE_NO_WARNINGS;_WINDOWS64;%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
<PreprocessorDefinitions>_LARGE_WORLDS;_DEBUG_MENUS_ENABLED;_DEBUG;_CRT_NON_CONFORMING_SWPRINTFS;_CRT_SECURE_NO_WARNINGS;_WINDOWS64;%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
||||||
<CallAttributedProfiling>Disabled</CallAttributedProfiling>
|
<CallAttributedProfiling>Disabled</CallAttributedProfiling>
|
||||||
<AdditionalIncludeDirectories>Windows64\Iggy\include;$(ProjectDir);%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
|
<AdditionalIncludeDirectories>Windows64\Iggy\include;$(ProjectDir);%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
|
||||||
|
|||||||
@@ -1124,7 +1124,7 @@
|
|||||||
<ExceptionHandling>Sync</ExceptionHandling>
|
<ExceptionHandling>Sync</ExceptionHandling>
|
||||||
<BufferSecurityCheck>false</BufferSecurityCheck>
|
<BufferSecurityCheck>false</BufferSecurityCheck>
|
||||||
<PrecompiledHeaderOutputFile>$(OutDir)$(ProjectName).pch</PrecompiledHeaderOutputFile>
|
<PrecompiledHeaderOutputFile>$(OutDir)$(ProjectName).pch</PrecompiledHeaderOutputFile>
|
||||||
<RuntimeLibrary>MultiThreadedDebugDLL</RuntimeLibrary>
|
<RuntimeLibrary>MultiThreadedDebug</RuntimeLibrary>
|
||||||
<PreprocessorDefinitions>_LARGE_WORLDS;_DEBUG_MENUS_ENABLED;_DEBUG;_LIB;_CRT_NON_CONFORMING_SWPRINTFS;_CRT_SECURE_NO_WARNINGS;_WINDOWS64;%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
<PreprocessorDefinitions>_LARGE_WORLDS;_DEBUG_MENUS_ENABLED;_DEBUG;_LIB;_CRT_NON_CONFORMING_SWPRINTFS;_CRT_SECURE_NO_WARNINGS;_WINDOWS64;%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
||||||
<CallAttributedProfiling>Disabled</CallAttributedProfiling>
|
<CallAttributedProfiling>Disabled</CallAttributedProfiling>
|
||||||
<RuntimeTypeInfo>true</RuntimeTypeInfo>
|
<RuntimeTypeInfo>true</RuntimeTypeInfo>
|
||||||
|
|||||||
Reference in New Issue
Block a user