[add] Release_Checked
This commit is contained in:
@@ -53,6 +53,7 @@ unsigned int APIENTRY LoadingMain(void* pArg)
|
||||
|
||||
if (FAILED(pLoader->Loading())) {
|
||||
assert(false);
|
||||
int a = 0;
|
||||
return 1;
|
||||
}
|
||||
|
||||
@@ -271,7 +272,7 @@ HRESULT CLoader::Loading_For_GamePlay()
|
||||
}
|
||||
|
||||
if (FAILED(m_pGameInstance->Add_Asset_Prototype(ENUM_CLASS(LEVEL::STATIC), TEXT("Prototype_Component_Box"),
|
||||
CModel::Create(m_pDevice, m_pContext, MODEL::NONANIM, "../Bin/Resources/Models/Box/Box.fbx", XMMatrixScaling(0.01f, 0.01f, 0.01f) * XMMatrixIdentity())))) {
|
||||
CModel::Create(m_pDevice, m_pContext, MODEL::NONANIM, "../Bin/Resources/Models/Box/Box.bin", XMMatrixScaling(0.01f, 0.01f, 0.01f) * XMMatrixIdentity())))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
@@ -321,7 +322,7 @@ HRESULT CLoader::Loading_For_GamePlay()
|
||||
|
||||
|
||||
if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, TEXT("Prototype_Component_SkyboxModel"),
|
||||
CModel::Create(m_pDevice, m_pContext, MODEL::NONANIM, "../Bin/Resources/Models/SkyBox/SkyBox.fbx", XMMatrixIdentity()))))
|
||||
CModel::Create(m_pDevice, m_pContext, MODEL::NONANIM, "../Bin/Resources/Models/SkyBox/SkyBox.bin", XMMatrixIdentity()))))
|
||||
return E_FAIL;
|
||||
|
||||
Asset_FileLoad("../Bin/Resources/Models/Effect/ParticleMesh", L"Prototype_Instance_Model_", [&](_wstring wstrFileName, const _char* pFilePath) {
|
||||
@@ -483,8 +484,9 @@ HRESULT CLoader::Asset_FileLoad(const _char* pDirectoryPath, const _tchar* pPreN
|
||||
|
||||
string ext = file.path().extension().string();
|
||||
|
||||
if (!strcmp(ext.c_str(), ".txt"))
|
||||
if (!strcmp(ext.c_str(), ".txt") || !strcmp(ext.c_str(), ".fbx")){
|
||||
continue;
|
||||
}
|
||||
|
||||
_char szFilePath[MAX_PATH] = {};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user