Refactor + render animation tweaks + updated frame properties + bug fixes
This commit is contained in:
1 parent
b4b4fe3714
commit
119bbc4081
63 files changed
+1964
-1701
No files matched your search
@@ -0,0 +1,19 @@
|
||||
#include "working_directory.h"
|
||||
|
||||
namespace anm2ed::util
|
||||
{
|
||||
WorkingDirectory::WorkingDirectory(const std::filesystem::path& path, Type type)
|
||||
{
|
||||
previous = std::filesystem::current_path();
|
||||
if (type == FILE)
|
||||
{
|
||||
std::filesystem::path filePath = path;
|
||||
std::filesystem::path parentPath = filePath.parent_path();
|
||||
std::filesystem::current_path(parentPath);
|
||||
}
|
||||
else
|
||||
std::filesystem::current_path(path);
|
||||
}
|
||||
|
||||
WorkingDirectory::~WorkingDirectory() { std::filesystem::current_path(previous); }
|
||||
}
|
||||
Reference in new issue
Block a user