mirror of
https://github.com/izzy2lost/Torch.git
synced 2026-07-06 00:18:35 -07:00
fix pack segfault
This commit is contained in:
@@ -20,7 +20,7 @@ SWrapper::SWrapper(const std::string& path) {
|
||||
}
|
||||
|
||||
bool SWrapper::CreateFile(const std::string& path, std::vector<char> data) {
|
||||
if(Companion::Instance->IsDebug()){
|
||||
if(Companion::Instance != nullptr && Companion::Instance->IsDebug()){
|
||||
SPDLOG_INFO("Creating debug file: debug/{}", path);
|
||||
std::string dpath = "debug/" + path;
|
||||
if(!fs::exists(fs::path(dpath).parent_path())){
|
||||
|
||||
Reference in New Issue
Block a user