SaveGeneralProperties

Definition

SaveGeneralProperties()

Description

This function saves all the initial dialog information of the game at runtime in the “Assets/config/conf_win32.dat” file. Whenever you run the game, the dialog information at the beginning of the game is loaded based on the information in the “conf_win32.dat” file. It should be noted that whenever you press the Play button of the initial dialog of the game, Vanda Engine automatically saves the dialog information in the “conf_win32.dat” file. The SaveGeneralProperties() function is only useful if you want to save this information while the game is running.
The following properties are saved by SaveGeneralProperties() function:


CBool m_useCurrentResolution; (current screen resolution)
CInt m_width; (current screen width)
CInt m_height; (current screen height)
CInt m_numSamples; (current multisampling number)
CInt m_anisotropy; (current texture anisotropic filtering number)
CBool m_showStartupDialog; (show dialog at statup?)
CBool m_disableVSync; (Is VSync disabled?)
CBool m_enableWaterReflection; (Is general water reflection enabled?)
CBool m_fullScreen; (Is full screen enabled?)

Example

function Init()
    SaveGeneralProperties()
end

function Update()

end
adminSaveGeneralProperties