mirror of
				https://github.com/OpenMW/openmw.git
				synced 2025-11-04 12:26:39 +00:00 
			
		
		
		
	Using docs/source/reference/modding/settings/*.rst and files/settings-default.cfg files content.
		
			
				
	
	
		
			31 lines
		
	
	
	
		
			1.1 KiB
		
	
	
	
		
			C++
		
	
	
	
	
	
			
		
		
	
	
			31 lines
		
	
	
	
		
			1.1 KiB
		
	
	
	
		
			C++
		
	
	
	
	
	
#ifndef OPENMW_COMPONENTS_SETTINGS_CATEGORIES_LUA_H
 | 
						|
#define OPENMW_COMPONENTS_SETTINGS_CATEGORIES_LUA_H
 | 
						|
 | 
						|
#include "components/settings/sanitizerimpl.hpp"
 | 
						|
#include "components/settings/settingvalue.hpp"
 | 
						|
 | 
						|
#include <osg/Math>
 | 
						|
#include <osg/Vec2f>
 | 
						|
#include <osg/Vec3f>
 | 
						|
 | 
						|
#include <cstdint>
 | 
						|
#include <string>
 | 
						|
#include <string_view>
 | 
						|
 | 
						|
namespace Settings
 | 
						|
{
 | 
						|
    struct LuaCategory
 | 
						|
    {
 | 
						|
        SettingValue<bool> mLuaDebug{ "Lua", "lua debug" };
 | 
						|
        SettingValue<int> mLuaNumThreads{ "Lua", "lua num threads", makeEnumSanitizerInt({ 0, 1 }) };
 | 
						|
        SettingValue<bool> mLuaProfiler{ "Lua", "lua profiler" };
 | 
						|
        SettingValue<std::uint64_t> mSmallAllocMaxSize{ "Lua", "small alloc max size" };
 | 
						|
        SettingValue<std::uint64_t> mMemoryLimit{ "Lua", "memory limit" };
 | 
						|
        SettingValue<bool> mLogMemoryUsage{ "Lua", "log memory usage" };
 | 
						|
        SettingValue<std::uint64_t> mInstructionLimitPerCall{ "Lua", "instruction limit per call",
 | 
						|
            makeMaxSanitizerUInt64(1001) };
 | 
						|
        SettingValue<int> mGcStepsPerFrame{ "Lua", "gc steps per frame", makeMaxSanitizerInt(0) };
 | 
						|
    };
 | 
						|
}
 | 
						|
 | 
						|
#endif
 |