mirror of
https://github.com/Laupetin/OpenAssetTools.git
synced 2026-10-16 16:43:27 +00:00
Add permissive mode for menu parsing that accepts unknown script tokens as long as they can be put into the script
This commit is contained in:
1 parent
e94c48338c
commit
b082e471e7
24 files changed
+200
-72
No files matched your search
@@ -3,6 +3,7 @@
|
||||
#include <cstring>
|
||||
#include <iostream>
|
||||
|
||||
#include "ObjLoading.h"
|
||||
#include "Game/IW4/IW4.h"
|
||||
#include "Parsing/Menu/MenuFileReader.h"
|
||||
#include "Pool/GlobalAssetPool.h"
|
||||
@@ -101,6 +102,7 @@ bool AssetLoaderMenuList::LoadFromRaw(const std::string& assetName, ISearchPath*
|
||||
});
|
||||
|
||||
reader.IncludeZoneState(zoneState);
|
||||
reader.SetPermissiveMode(ObjLoading::Configuration.PermissiveMenuParsing);
|
||||
|
||||
const auto menuFileResult = reader.ReadMenuFile();
|
||||
if (menuFileResult)
|
||||
|
||||
Reference in new issue
Block a user