-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathSettings.h
110 lines (101 loc) · 3.1 KB
/
Settings.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
#pragma once
struct Settings
{
int bPatchScriptEditorFont;
int bHighResLandscapeLOD;
int bListEditFix;
int bVersionControlMode;
int bFastExit;
int bIgnoreNAMFiles;
int bEnableSpellChecker;
int bAutoScroll;
int bRenderWindowUncap;
int bPreviewWindowUncap;
int bRemoveStatusBarLoadingText;
int bPlaySoundEndOfLoading;
int bNoDXSoundCaptureErrorPopup;
int bNoPreviewWindowAutoFocus;
int bNoLODMeshMessage;
int bSwapRenderCYKeys;
int bAutoLoadFiles;
int bShowLoadFilesAtStartup;
int bScriptCompileWarningPopup;
int bNoVersionControlWarning;
int bShowTimeOfDaySlider;
int bSkipVanillaLipGen;
int bShowAdditionalToolbarButtons;
int bAllowMultipleSearchAndReplace;
int bCacheSearchAndReplaceWindow;
int bNoFactionReactionMessage;
int bUISpeedHooks;
int bLibdeflate;
int bExpandFormIDColumn;
int bAllowEditLandEdges;
int bNavmeshAllowPlaceAboveOthers;
int bAllowRecompileAll;
int bNavmeshFindCoverConfirmPrompt;
int bShowScriptChangeTypeWarning;
int bAppendAnimLengthToName;
int bObjectPaletteAllowRandom;
bool bObjectPaletteRandomByDefault;
int bSnapToGridRotationUseDoublePrecision;
int bFaceGenOnlyEdited;
int bObjectWindowOnlyShowEditedByDefault;
int bDisableTextureMirroring;
int bPreventFaceAndBodyModExports;
int bIgnoreD3D9;
int bAutoLightWarnings;
int bRemoveDialogSoundFilter;
int bCacheComboboxes;
int bNoRecordCompression;
int bNoFacegenCompression;
int bPreserveTimestamps;
int bNoDirtyCellWhenNonPersistentRefsDeleted;
bool bHideRenderWindow;
bool bHideObjectWindow;
bool bHideCellViewWindow;
bool bDarkMode;
bool bNumericEditorIdWarning;
bool bSkipSplashScreen;
bool bDataMenuSpaceTogglesSelectedFile;
bool bNewPluginsDefaultToESM;
bool bAllowHardDeletionInESMs;
bool bAddFilterCtrlBackspace;
bool bRenderWindowPreventRefMovementByDefault;
int bUseAltShiftMultipliers;
float fMovementAltMultiplier;
float fMovementShiftMultiplier;
int bSmoothFlycamRotation;
int bFlycamUpDownRelativeToWorld;
float fFlycamRotationSpeed;
float fFlycamNormalMovementSpeed;
float fFlycamShiftMovementSpeed;
float fFlycamAltMovementSpeed;
int iRenderFOV;
UInt8 iPreviewWindowRed, iPreviewWindowGreen, iPreviewWindowBlue;
char* sLaunchExeName;
char* sForceFinalizeNavMeshModName;
union
{
unsigned int uPrimitiveColors[8];
struct
{
unsigned int uPrimitiveColor_CubicActivator;
unsigned int uPrimitiveColor_CubicMultibound;
unsigned int uPrimitiveColor_OcclusionPlane;
unsigned int uPrimitiveColor_Roombound;
unsigned int uPrimitiveColor_Portal;
unsigned int uPrimitiveColor_SoundEmitter;
unsigned int uPrimitiveColor_AcousticSpace;
unsigned int uPrimitiveColor_Collision;
};
};
UInt32 uiHeapMaxSizeMB;
UInt32 uiHeapInitialSizeMB;
};
extern Settings config;
extern char IniPath[MAX_PATH];
int GetOrCreateINIValue(const char* sectionName, const char* keyName, int defaultValue, const char* filename);
char* GetOrCreateINIValue(const char* sectionName, const char* keyName, const char* defaultValue, const char* filename);
unsigned int GetOrCreateINIValueHex(const char* sectionName, const char* keyName, unsigned int defaultValue, const char* filename);
void ReadAllSettings();