-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathIniLoader.cpp
27 lines (16 loc) · 945 Bytes
/
IniLoader.cpp
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#include "lib/SimpleIni.h"
#include "mainfunc.h"
#include "iniValues.h"
/* ------------------------------------------
COPYRIGHT © DAERICH 2020
ALL RIGHTS RESERVED EXCEPT OTHERWISE STATED IN COPYRIGHT.TXT
------------------------------------------ */
CSimpleIniA shiftingini;
SI_Error rc = shiftingini.LoadFile("NativeShifting/shiftingAnimations.ini");
const char* const _inianimDict(shiftingini.GetValue("Main", "AnimationDictionary", "anim@veh@driveby@plane@luxor2@rear_ds@1h"));
const char* const _inianimName(shiftingini.GetValue("Main", "AnimationName", "outro_0"));
bool inivalues::iniDashEnabled(shiftingini.GetBoolValue("DashHook", "isEnabled", false));
const std::string inivalues::inianimDict(_inianimDict);
const std::string inivalues::inianimName(_inianimName);
char* mainfunc::_animDict = new char[std::size(inivalues::inianimDict) + 1];
char* mainfunc::_animName = new char[std::size(inivalues::inianimName) + 1];