forked from SnoeGit/scpcb-snoedition
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathGame.bb
41 lines (32 loc) · 2.54 KB
/
Game.bb
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
; ~ The main file of the game
;----------------------------------------------------------------------------------------------------------------------------------------------------
; ~ Gameplay Overhaul v1.200 : Based off SCP - Containment Breach Ultimate Edition v1.0.4
;----------------------------------------------------------------------------------------------------------------------------------------------------
; ~ This is a modification of the game "SCP - Containment Breach"
; ~ The mod is built on top of Ultimate Edition which is developed by the "Ultimate Edition Team" (https://www.moddb.com/company/ultimate-edition-team) Thank you for everything, Jabka!
; ~ It is released under the CC-BY-SA 3.0 license as it is a derivative work based on SCP - Containment Breach and the SCP Foundation
;----------------------------------------------------------------------------------------------------------------------------------------------------
; ~ Ultimate Edition's Discord: https://discord.gg/n7KdW4u
;----------------------------------------------------------------------------------------------------------------------------------------------------
Function CheckForDlls%()
Local InitErrorStr$ = ""
If FileSize("FMod.dll") = 0 Then InitErrorStr = InitErrorStr + "FMod.dll" + Chr(13) + Chr(10)
If FileSize("dplayx.dll") = 0 Then InitErrorStr = InitErrorStr + "dplayx.dll" + Chr(13) + Chr(10)
If FileSize("d3dim700.dll") = 0 Then InitErrorStr = InitErrorStr + "d3dim700.dll" + Chr(13) + Chr(10)
If FileSize("BlitzMovie.dll") = 0 Then InitErrorStr = InitErrorStr + "BlitzMovie.dll" + Chr(13) + Chr(10)
If FileSize("FreeImage.dll") = 0 Then InitErrorStr = InitErrorStr + "FreeImage.dll" + Chr(13) + Chr(10)
If Len(InitErrorStr) > 0 Then RuntimeError("The following DLLs were not found in the game directory:" + Chr(13) + Chr(10) + Chr(13) + Chr(10) + InitErrorStr)
End Function
CheckForDlls()
; ~ First, create a folder inside "AppData" folder
If FileType(GetEnv("AppData") + "\scpcb-ue\") <> 2 Then CreateDir(GetEnv("AppData") + "\scpcb-ue")
; ~ Second, create a folder inside "scpcb-ue" folder
If FileType(GetEnv("AppData") + "\scpcb-ue\Data\") <> 2 Then CreateDir(GetEnv("AppData") + "\scpcb-ue\Data")
; ~ After, put the "options.ini" file to the latest created folder
If FileType(GetEnv("AppData") + "\scpcb-ue\Data\options.ini") <> 1 Then WriteFile(GetEnv("AppData") + "\scpcb-ue\Data\options.ini")
Include "Source Code\KeyBinds_Core.bb"
Include "Source Code\INI_Core.bb"
LoadOptionsINI()
Include "Source Code\Main_Core.bb"
;~IDEal Editor Parameters:
;~C#Blitz3D