Skip to content
This repository has been archived by the owner on Feb 15, 2024. It is now read-only.

Commit

Permalink
Merge pull request #23 from DownloadableFox/master
Browse files Browse the repository at this point in the history
Fixed issue #17
  • Loading branch information
supsm authored Apr 12, 2022
2 parents fb5fb1c + 3f14124 commit 092568e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/vmt.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ namespace vmt
// I'd prefer to use std::filesystem::relative here, but given 2 equal paths it returns "." instead of ""
std::u8string tempfolderpath = std::filesystem::canonical(entry.path().parent_path()).generic_u8string();
tempfolderpath.erase(tempfolderpath.begin(),
tempfolderpath.begin() + std::filesystem::canonical(path / location).generic_u8string().size() + 1);
tempfolderpath.begin() + std::filesystem::canonical(path / location).generic_u8string().size());
folderpath = tempfolderpath;
}

Expand Down Expand Up @@ -131,7 +131,7 @@ namespace vmt
const std::filesystem::path location = (optifine ? (newlocation ? u8"assets/minecraft/optifine/random/entity" : u8"assets/minecraft/optifine/mob") : u8"assets/minecraft/mcpatcher/mob");
std::u8string tempfolderpath = std::filesystem::canonical(entry.path().parent_path()).generic_u8string();
tempfolderpath.erase(tempfolderpath.begin(),
tempfolderpath.begin() + std::filesystem::canonical(path / location).generic_u8string().size() + 1);
tempfolderpath.begin() + std::filesystem::canonical(path / location).generic_u8string().size());
folderpath = tempfolderpath;
}

Expand Down

0 comments on commit 092568e

Please sign in to comment.