mirror of
https://github.com/yuzu-emu/yuzu.git
synced 2024-07-04 23:31:19 +01:00
tas_input: Use istringstream over stringstream
This is only using the input facilities, so we don't need to use the fully-fleged stringstream.
This commit is contained in:
parent
6be730bdcd
commit
a515ede2af
1 changed files with 2 additions and 2 deletions
|
@ -85,7 +85,7 @@ void Tas::LoadTasFile(size_t player_index, size_t file_index) {
|
||||||
Common::FS::GetYuzuPath(Common::FS::YuzuPath::TASDir) /
|
Common::FS::GetYuzuPath(Common::FS::YuzuPath::TASDir) /
|
||||||
fmt::format("script{}-{}.txt", file_index, player_index + 1),
|
fmt::format("script{}-{}.txt", file_index, player_index + 1),
|
||||||
Common::FS::FileType::BinaryFile);
|
Common::FS::FileType::BinaryFile);
|
||||||
std::stringstream command_line(file);
|
std::istringstream command_line(file);
|
||||||
std::string line;
|
std::string line;
|
||||||
int frame_no = 0;
|
int frame_no = 0;
|
||||||
while (std::getline(command_line, line, '\n')) {
|
while (std::getline(command_line, line, '\n')) {
|
||||||
|
@ -93,7 +93,7 @@ void Tas::LoadTasFile(size_t player_index, size_t file_index) {
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
std::stringstream linestream(line);
|
std::istringstream linestream(line);
|
||||||
std::string segment;
|
std::string segment;
|
||||||
std::vector<std::string> seglist;
|
std::vector<std::string> seglist;
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue