diff options
author | DizzyEggg <jajkodizzy@wp.pl> | 2018-09-09 20:30:41 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-09-09 20:30:41 +0200 |
commit | e21b91cc2f48c4b6bf2cb2d8e97ea1d55c0163bb (patch) | |
tree | 78530380aed8ddfdf706824bf2d557152ec8a94c /tools/scaninc/c_file.cpp | |
parent | 6454740587f9a97105c45d54bf4284015a20d6d1 (diff) | |
parent | 135e98a82493b2538c030af9b327cb104e27a3dd (diff) |
Merge pull request #12 from Slawter666/factory-data
Move battle factory data to C
Diffstat (limited to 'tools/scaninc/c_file.cpp')
-rw-r--r-- | tools/scaninc/c_file.cpp | 17 |
1 files changed, 13 insertions, 4 deletions
diff --git a/tools/scaninc/c_file.cpp b/tools/scaninc/c_file.cpp index f7acc833f..d470f959d 100644 --- a/tools/scaninc/c_file.cpp +++ b/tools/scaninc/c_file.cpp @@ -244,18 +244,27 @@ void CFile::CheckIncbin() m_pos++; - SkipWhitespace(); + while (true) + { + SkipWhitespace(); - std::string path = ReadPath(); + std::string path = ReadPath(); - SkipWhitespace(); + SkipWhitespace(); + + m_incbins.emplace(path); + + if (m_buffer[m_pos] != ',') + break; + + m_pos++; + } if (m_buffer[m_pos] != ')') FATAL_INPUT_ERROR("expected ')'"); m_pos++; - m_incbins.emplace(path); } std::string CFile::ReadPath() |