diff options
| author | KiritoDv <kiritodev01@gmail.com> | 2024-04-06 12:28:51 -0600 |
|---|---|---|
| committer | Lywx <kiritodev01@gmail.com> | 2024-04-08 18:09:34 -0600 |
| commit | 6d5f37db337ac10be180527d98d1676c2be3344d (patch) | |
| tree | 48571e27aff74261a921c6e9eee8c99592b485b4 /src/Companion.cpp | |
| parent | 3918fde51a84f5035d6f74740195f0d91dd5c604 (diff) | |
Fixed DisplayList Binary extraction and some other factories
Diffstat (limited to 'src/Companion.cpp')
| -rw-r--r-- | src/Companion.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/Companion.cpp b/src/Companion.cpp index 314d86a..b244d56 100644 --- a/src/Companion.cpp +++ b/src/Companion.cpp @@ -1182,6 +1182,12 @@ std::string Companion::NormalizeAsset(const std::string& name) const { return path; } +std::string Companion::RelativePath(const std::string& path) const { + std::string doutput = (this->gCurrentDirectory / path).string(); + std::replace(doutput.begin(), doutput.end(), '\\', '/'); + return doutput; +} + std::string Companion::CalculateHash(const std::vector<uint8_t>& data) { return Chocobo1::SHA1().addData(data).finalize().toString(); } |
