============================================================================= MissionScriptLoader::LoadScript ============================================================================= Description: Comment Parameters: ( char* filename ) Return: void =============================================================================
| 630 | // |
| 631 | //============================================================================= |
| 632 | void MissionScriptLoader::LoadScript( char* filename ) |
| 633 | { |
| 634 | mFirstObjective = true; |
| 635 | |
| 636 | HeapMgr()->PushHeap (GMA_LEVEL_MISSION); |
| 637 | |
| 638 | // |
| 639 | // NOTE: This has to stay sync because the scripts queue requests to the |
| 640 | // loading manager and these do not get processed if the loadmanager is |
| 641 | // already busy loading something |
| 642 | // |
| 643 | GetConsole()->ExecuteScriptSync( filename ); |
| 644 | |
| 645 | HeapMgr()->PopHeap (GMA_LEVEL_MISSION); |
| 646 | } |
| 647 | |
| 648 | void MissionScriptLoader::LoadScriptAsync( char* filename, LoadingManager::ProcessRequestsCallback* callback ) |
| 649 | { |
no test coverage detected