Baby-proof creation
This commit is contained in:
parent
5d4ae478dc
commit
2e750228e1
4 changed files with 16 additions and 22 deletions
|
|
@ -27,6 +27,10 @@ public partial class AdventureEditor : MarginContainer
|
|||
|
||||
public void Save()
|
||||
{
|
||||
if (editedPath.EndsWith(".tres") == false)
|
||||
{
|
||||
editedPath += ".tres";
|
||||
}
|
||||
ResourceSaver.Save(editedResource, editedPath);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue