Skip to content

Commit

Permalink
fix more issues with path/string
Browse files Browse the repository at this point in the history
  • Loading branch information
Astral-C committed Apr 3, 2024
1 parent 0273666 commit 295c3ee
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/DOM/RoomDOMNode.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ void LRoomDOMNode::RenderHierarchyUI(std::shared_ptr<LDOMNodeBase> self, LEditor
delete[] modelData;

ActiveRoomArchive->GetRoot()->AddFile(newFile);
ActiveRoomArchive->SaveToFile(resPath);
ActiveRoomArchive->SaveToFile(resPath.string());
}
}
ImGui::OpenPopup("##roomResources");
Expand Down Expand Up @@ -695,7 +695,7 @@ void LRoomDOMNode::PreProcess(){
}

{
bStream::CFileStream binWriteStream(resPath, bStream::Endianess::Big, bStream::OpenMode::Out);
bStream::CFileStream binWriteStream(resPath.string(), bStream::Endianess::Big, bStream::OpenMode::Out);
binWriteStream.writeBytes(binFile, binFileSize);
binWriteStream.seek(offset);
binWriteStream.writeFloat(mRoomModelDelta.x + x);
Expand Down

0 comments on commit 295c3ee

Please sign in to comment.