mirror of
https://git.huckle.dev/Huckles-Minecraft-Archive/4jcraft.git
synced 2026-06-12 13:31:57 +00:00
cleanup: flatten dead branches in common app and ui code
This commit is contained in:
@@ -107,14 +107,8 @@ void DLCSkinFile::addParameter(DLCManager::EDLCParameterType type,
|
||||
SKIN_BOX* pSkinBox = new SKIN_BOX;
|
||||
ZeroMemory(pSkinBox, sizeof(SKIN_BOX));
|
||||
|
||||
#if 0
|
||||
// 4J Stu - The Xbox version used swscanf_s which isn't available in
|
||||
// GCC.
|
||||
swscanf(value.c_str(), L"%10ls%f%f%f%f%f%f%f%f", wchBodyPart,
|
||||
#else
|
||||
swscanf_s(
|
||||
value.c_str(), L"%9ls%f%f%f%f%f%f%f%f", wchBodyPart, 10,
|
||||
#endif
|
||||
&pSkinBox->fX, &pSkinBox->fY, &pSkinBox->fZ, &pSkinBox->fW,
|
||||
&pSkinBox->fH, &pSkinBox->fD, &pSkinBox->fU, &pSkinBox->fV);
|
||||
|
||||
@@ -136,14 +130,8 @@ void DLCSkinFile::addParameter(DLCManager::EDLCParameterType type,
|
||||
m_AdditionalBoxes.push_back(pSkinBox);
|
||||
} break;
|
||||
case DLCManager::e_DLCParamType_Anim: {
|
||||
#if 0
|
||||
// 4J Stu - The Xbox version used swscanf_s which isn't available in
|
||||
// GCC.
|
||||
swscanf(value.c_str(), L"%X", &m_uiAnimOverrideBitmask);
|
||||
#else
|
||||
swscanf_s(value.c_str(), L"%X", &m_uiAnimOverrideBitmask,
|
||||
sizeof(unsigned int));
|
||||
#endif
|
||||
DWORD skinId = app.getSkinIdFromPath(m_path);
|
||||
app.SetAnimOverrideBitmask(skinId, m_uiAnimOverrideBitmask);
|
||||
break;
|
||||
|
||||
Reference in New Issue
Block a user