mirror of
https://github.com/Laupetin/OpenAssetTools.git
synced 2025-06-12 07:48:16 -05:00
Write all menu function definitions on top of every menu list item
This commit is contained in:
@ -776,6 +776,16 @@ MenuDumper::MenuDumper(std::ostream& stream)
|
||||
{
|
||||
}
|
||||
|
||||
void MenuDumper::WriteFunctionDef(const std::string& functionName, const Statement_s* statement)
|
||||
{
|
||||
StartFunctionDefScope();
|
||||
|
||||
WriteStringProperty("name", functionName);
|
||||
WriteStatementProperty("value", statement, false);
|
||||
|
||||
EndScope();
|
||||
}
|
||||
|
||||
void MenuDumper::WriteMenu(const menuDef_t* menu)
|
||||
{
|
||||
StartMenuDefScope();
|
||||
|
Reference in New Issue
Block a user