summaryrefslogtreecommitdiffstats
path: root/pkgs/by-name/et/etterna/0002-replays-dir-fix.patch
blob: a82fde9476bb3cf243c74d467cbad0c1cd8ba597 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
diff --git a/src/Etterna/Models/HighScore/Replay.cpp b/src/Etterna/Models/HighScore/Replay.cpp
index 77e85b7ca0..1375e59142 100644
--- a/src/Etterna/Models/HighScore/Replay.cpp
+++ b/src/Etterna/Models/HighScore/Replay.cpp
@@ -344,7 +344,7 @@ Replay::WriteReplayData() -> bool
 		return false;
 	}
 
-	const auto path = FULL_REPLAY_DIR + scoreKey;
+	const auto path = FILEMAN->ResolvePath(FULL_REPLAY_DIR + scoreKey);
 
 	std::ofstream fileStream(path, std::ios::binary);
 	if (!fileStream) {
@@ -412,7 +412,7 @@ Replay::WriteInputData() -> bool
 		SetHighScoreMods();
 	}
 
-	const auto path = INPUT_DATA_DIR + scoreKey;
+	const auto path = FILEMAN->ResolvePath(INPUT_DATA_DIR + scoreKey);
 	const auto path_z = path + "z";
 
 	std::ofstream fileStream(path, std::ios::binary);
@@ -566,7 +566,7 @@ Replay::LoadInputData(const std::string& replayDir) -> bool
 		return loadResultInputData;
 	}
 
-	const auto path = replayDir + scoreKey;
+	const auto path = FILEMAN->ResolvePath(replayDir + scoreKey);
 	const auto path_z = path + "z";
 	std::vector<InputDataEvent> readInputs;
 	std::vector<HoldReplayResult> vHoldReplayDataVector;
@@ -827,7 +827,7 @@ Replay::LoadReplayDataBasic(const std::string& replayDir) -> bool
 	std::string profiledir;
 	std::vector<int> vNoteRowVector;
 	std::vector<float> vOffsetVector;
-	const auto path = replayDir + scoreKey;
+	const auto path = FILEMAN->ResolvePath(replayDir + scoreKey);
 
 	std::ifstream fileStream(path, std::ios::binary);
 	std::string line;
@@ -917,7 +917,7 @@ Replay::LoadReplayDataFull(const std::string& replayDir) -> bool
 	std::vector<int> vTrackVector;
 	std::vector<TapNoteType> vTapNoteTypeVector;
 	std::vector<HoldReplayResult> vHoldReplayDataVector;
-	const auto path = replayDir + scoreKey;
+	const auto path = FILEMAN->ResolvePath(replayDir + scoreKey);
 
 	std::ifstream fileStream(path, std::ios::binary);
 	std::string line;
@@ -1050,7 +1050,7 @@ Replay::LoadOnlineDataFromDisk(const std::string& replayDir) -> bool
 	std::vector<int> tracks;
 	std::vector<int> rows;
 	std::vector<TapNoteType> types;
-	const auto path = replayDir + scoreKey;
+	const auto path = FILEMAN->ResolvePath(replayDir + scoreKey);
 
 	std::ifstream fileStream(path, std::ios::binary);