summaryrefslogtreecommitdiffstats
path: root/src/input_common
diff options
context:
space:
mode:
authorLioncash <mathew1800@gmail.com>2021-12-13 16:57:51 +0100
committerLioncash <mathew1800@gmail.com>2021-12-13 16:57:53 +0100
commita515ede2af822a337b95ed0b3987a197664d5180 (patch)
treee5920b86f1cd6bce71a3d9c938c88ee464e351b5 /src/input_common
parenttas_input: Use u8string_view instead of u8string (diff)
downloadyuzu-a515ede2af822a337b95ed0b3987a197664d5180.tar
yuzu-a515ede2af822a337b95ed0b3987a197664d5180.tar.gz
yuzu-a515ede2af822a337b95ed0b3987a197664d5180.tar.bz2
yuzu-a515ede2af822a337b95ed0b3987a197664d5180.tar.lz
yuzu-a515ede2af822a337b95ed0b3987a197664d5180.tar.xz
yuzu-a515ede2af822a337b95ed0b3987a197664d5180.tar.zst
yuzu-a515ede2af822a337b95ed0b3987a197664d5180.zip
Diffstat (limited to 'src/input_common')
-rw-r--r--src/input_common/drivers/tas_input.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/input_common/drivers/tas_input.cpp b/src/input_common/drivers/tas_input.cpp
index 3fdd3649b..a7d3d0b47 100644
--- a/src/input_common/drivers/tas_input.cpp
+++ b/src/input_common/drivers/tas_input.cpp
@@ -85,7 +85,7 @@ void Tas::LoadTasFile(size_t player_index, size_t file_index) {
Common::FS::GetYuzuPath(Common::FS::YuzuPath::TASDir) /
fmt::format("script{}-{}.txt", file_index, player_index + 1),
Common::FS::FileType::BinaryFile);
- std::stringstream command_line(file);
+ std::istringstream command_line(file);
std::string line;
int frame_no = 0;
while (std::getline(command_line, line, '\n')) {
@@ -93,7 +93,7 @@ void Tas::LoadTasFile(size_t player_index, size_t file_index) {
continue;
}
- std::stringstream linestream(line);
+ std::istringstream linestream(line);
std::string segment;
std::vector<std::string> seglist;