| 404 | } |
| 405 | |
| 406 | void Game_Ineluki::OnScriptFileReady(FileRequestResult* result) { |
| 407 | auto it = std::find_if(async_scripts.begin(), async_scripts.end(), [&](const auto& a) { |
| 408 | return a.script_name == result->file; |
| 409 | }); |
| 410 | assert(it != async_scripts.end()); |
| 411 | it->invoked = true; |
| 412 | |
| 413 | if (std::all_of(async_scripts.begin(), async_scripts.end(), [](const auto& a) { |
| 414 | return a.invoked; |
| 415 | })) { |
| 416 | std::for_each(async_scripts.begin(), async_scripts.end(), [this](const auto& a) { |
| 417 | Execute(FileFinder::Game().FindFile(a.script_name)); |
| 418 | }); |
| 419 | async_scripts.clear(); |
| 420 | } |
| 421 | } |
| 422 | |
| 423 | Game_Ineluki::CheatItem::CheatItem(const std::string& code, int value) : value(value) { |
| 424 | for (char c: code) { |