forked from Relicta-Team/ReSDK_A3.vr
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Init.sqf
64 lines (47 loc) · 1.59 KB
/
Init.sqf
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
// ======================================================
// Copyright (c) 2017-2024 the ReSDK_A3 project
// sdk.relicta.ru
// ======================================================
#include "..\host\engine.hpp"
#include <..\host\client_compiled.hpp>
if isnil {buffer_cba_funcs} then {
if (!_canCallClientCode) exitWith {}; //скипаем сегмент
//TODO cleanup logics adding on client
cba_common_perFrameHandlerArray = [];
cba_common_PFHhandles = [];
//buffer_cba_funcs = [];
/*
deleteLocation cba_events_eventNamespace;
deleteLocation cba_events_eventHashes;
cba_events_eventNamespace = call CBA_fnc_createNamespace;
cba_events_eventHashes = call CBA_fnc_createNamespace;
//cba refresh pfh handlers
cba_common_perFrameHandlerArray = [];
cba_common_PFHhandles = [];
*/
};
//verify addons with getLoadedModsInfo
_getRelictaModHashes = {
//getLoadedModsInfo
};
_ctx = compile 'errorformat("Version mismatch - %1 (required %2)",client_version arg relicta_version); endMission "LOSER";';
//saving and create models assoc
if !isNullVar(__USE_OOP_CREATE__) then {
log("Starting models saver");
log("Saving models not implemented");
};
#ifdef DEBUG
#define cmplog(fcat) allClientContents pushBack (compile format['log("Init %1")',fcat]);
#else
#define cmplog(fcat)
#endif
#ifdef USE_COMPILED_CLIENT
if (true) exitWith {
//not implemented
error("Flag USE_COMPILED_CLIENT not implemented");
appExit(APPEXIT_REASON_CRITICAL);
//call compile preprocessFile "src\private.h";
//(LoadFile "third-party\CLIENT_MISSION\CLIENT") call rc_deflow_compile;
};
#endif
#include "loader.hpp"