forked from ThirteenAG/WidescreenFixesPack
-
Notifications
You must be signed in to change notification settings - Fork 0
/
premake5.lua
518 lines (498 loc) · 24.5 KB
/
premake5.lua
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
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
workspace "WidescreenFixesPack"
configurations { "Release", "Debug" }
platforms { "Win32" }
architecture "x32"
location "build"
objdir ("build/obj")
buildlog ("build/log/%{prj.name}.log")
buildoptions {"-std:c++latest"}
flags { "MultiProcessorCompile" }
kind "SharedLib"
language "C++"
targetdir "data/%{prj.name}/scripts"
targetextension ".asi"
characterset ("UNICODE")
staticruntime "On"
defines { "rsc_CompanyName=\"ThirteenAG\"" }
defines { "rsc_LegalCopyright=\"MIT License\""}
defines { "rsc_FileVersion=\"1.0.0.0\"", "rsc_ProductVersion=\"1.0.0.0\"" }
defines { "rsc_InternalName=\"%{prj.name}\"", "rsc_ProductName=\"%{prj.name}\"", "rsc_OriginalFilename=\"%{prj.name}.asi\"" }
defines { "rsc_FileDescription=\"https://thirteenag.github.io/wfp\"" }
defines { "rsc_UpdateUrl=\"https://github.com/ThirteenAG/WidescreenFixesPack\"" }
files { "source/%{prj.name}/*.cpp" }
files { "Resources/*.rc" }
files { "external/hooking/Hooking.Patterns.h", "external/hooking/Hooking.Patterns.cpp" }
files { "includes/stdafx.h", "includes/stdafx.cpp" }
includedirs { "includes" }
includedirs { "external/hooking" }
includedirs { "external/injector/include" }
includedirs { "external/inireader" }
includedirs { "external/spdlog/include" }
includedirs { "external/filewatch" }
includedirs { "external/modutils" }
local dxsdk = os.getenv "DXSDK_DIR"
if dxsdk then
includedirs { dxsdk .. "/include" }
libdirs { dxsdk .. "/lib/x86" }
elseif os.isdir("external/minidx9") then
includedirs { "external/minidx9/Include" }
libdirs { "external/minidx9/Lib/x86" }
else
includedirs { "C:/Program Files (x86)/Microsoft DirectX SDK (June 2010)/include" }
libdirs { "C:/Program Files (x86)/Microsoft DirectX SDK (June 2010)/lib/x86" }
end
pbcommands = {
"setlocal EnableDelayedExpansion",
--"set \"path=" .. (gamepath) .. "\"",
"set file=$(TargetPath)",
"FOR %%i IN (\"%file%\") DO (",
"set filename=%%~ni",
"set fileextension=%%~xi",
"set target=!path!!filename!!fileextension!",
"if exist \"!target!\" copy /y \"%%~fi\" \"!target!\"",
")" }
function setpaths(gamepath, exepath, scriptspath)
scriptspath = scriptspath or "scripts/"
if (gamepath) then
cmdcopy = { "set \"path=" .. gamepath .. scriptspath .. "\"" }
table.insert(cmdcopy, pbcommands)
postbuildcommands (cmdcopy)
debugdir (gamepath)
if (exepath) then
debugcommand (gamepath .. exepath)
dir, file = exepath:match'(.*/)(.*)'
debugdir (gamepath .. (dir or ""))
end
end
targetdir ("data/%{prj.name}/" .. scriptspath)
end
function setbuildpaths_psp(gamepath, exepath, scriptspath, pspsdkpath, sourcepath, prj_name)
local pbcmd = {}
for k,v in pairs(pbcommands) do
pbcmd[k] = v
end
if (gamepath) then
cmdcopy = { "set \"path=" .. gamepath .. scriptspath .. "\"" }
pbcmd[2] = "set \"file=../data/" .. prj_name .. "/" .. scriptspath .. prj_name ..".prx\""
table.insert(cmdcopy, pbcmd)
buildcommands { "call " .. pspsdkpath .. " -C " .. sourcepath, cmdcopy }
rebuildcommands { "call " .. pspsdkpath .. " -C " .. sourcepath .. " clean && " .. pspsdkpath .. " -C " .. sourcepath, cmdcopy }
cleancommands { "call " .. pspsdkpath .. " -C " .. sourcepath .. " clean" }
debugdir (gamepath)
if (exepath) then
debugcommand (gamepath .. exepath)
dir, file = exepath:match'(.*/)(.*)'
debugdir (gamepath .. (dir or ""))
end
end
targetdir ("data/%{prj.name}/" .. scriptspath)
end
function add_asmjit()
files { "external/asmjit/src/**.cpp" }
includedirs { "external/asmjit/src" }
end
function writeghaction(tag, prj_name)
file = io.open(".github/workflows/" .. tag .. ".yml", "w")
if (file) then
str = [[
name: %s
on:
workflow_dispatch:
jobs:
call-workflow-passing-data:
uses: ThirteenAG/WidescreenFixesPack/.github/workflows/all.yml@master
with:
tag_list: %s
project: /t:%s
]]
file:write(string.format(str, tag, tag, prj_name:gsub("%.", "_")))
file:close()
end
end
function writemakefile(prj_name, ...)
local args = {...}
local files = "main.o";
for i, v in ipairs( args ) do
files = files .. " " .. v:gsub(v:match("^.+(%..+)$"), ".o")
end
files = string.gsub(files, "^%s*(.-)%s*$", "%1")
file = io.open("source/" .. prj_name .. "/makefile", "w")
if (file) then
str = [[
TARGET = ..\..\data\%s\memstick\PSP\PLUGINS\%s\%s
OBJS = %s exports.o ../../includes/psp/injector.o ../../includes/psp/log.o ../../includes/psp/patterns.o ../../includes/psp/rini.o ../../includes/psp/inireader.o ../../includes/psp/gvm.o ../../includes/psp/mips.o
CFLAGS = -O2 -Os -G0 -Wall -fshort-wchar -fno-pic -mno-check-zero-division
CXXFLAGS = $(CFLAGS) -fno-exceptions -fno-rtti
ASFLAGS = $(CFLAGS)
BUILD_PRX = 1
PRX_EXPORTS = exports.exp
USE_PSPSDK_LIBC = 1
LIBS = -lpspsystemctrl_kernel -lm
PSPSDK = $(shell psp-config --pspsdk-path)
include $(PSPSDK)/lib/build_prx.mak
]]
file:write(string.format(str, prj_name, prj_name, prj_name, files))
file:close()
end
end
filter "configurations:Debug*"
defines "DEBUG"
symbols "On"
filter "configurations:Release*"
defines "NDEBUG"
optimize "On"
project "Assembly64.TestApp"
kind "ConsoleApp"
targetextension ".exe"
platforms { "Win64" }
architecture "x64"
setpaths("./data/%{prj.name}", "%{prj.name}.exe", "")
project "Assembly64.TestAsi"
platforms { "Win64" }
architecture "x64"
add_asmjit()
setpaths("./data/Assembly64.TestApp/", "Assembly64.TestApp.exe", "")
project "Bully.WidescreenFix"
setpaths("Z:/WFP/Games/Bully Scholarship Edition/", "Bully.exe", "plugins/")
writeghaction("bully", "Bully.WidescreenFix")
project "Burnout3.PCSX2.WidescreenFix"
configurations { "ReleasePCSX2", "DebugPCSX2" }
setpaths("Z:/WFP/Games/PCSX2/", "pcsx2.exe")
files { "includes/pcsx2/pcsx2.h" }
writeghaction("burnout3", "Burnout3.PCSX2.WidescreenFix")
project "CallOfCthulhu.WidescreenFix"
setpaths("Z:/WFP/Games/Call of Cthulhu/", "Engine/CoCMainWin32.exe", "Engine/scripts/")
writeghaction("callofcthulhu", "CallOfCthulhu.WidescreenFix")
project "ColdFear.WidescreenFix"
setpaths("Z:/WFP/Games/ColdFear/", "ColdFear_retail.exe")
writeghaction("coldfear", "ColdFear.WidescreenFix")
project "Condemned.WidescreenFix"
setpaths("Z:/WFP/Games/Condemned Criminal Origins/", "Condemned.exe")
writeghaction("condemned", "Condemned.WidescreenFix")
project "DeerAvenger4.WidescreenFix"
setpaths("Z:/WFP/Games/Deer Avenger 4/", "DA4.exe")
writeghaction("da4", "DeerAvenger4.WidescreenFix")
project "Driv3r.WidescreenFix"
setpaths("Z:/WFP/Games/DRIV3R/", "driv3r.exe")
writeghaction("driv3r", "Driv3r.WidescreenFix")
project "DriverParallelLines.WidescreenFix"
setpaths("Z:/WFP/Games/Driver Parallel Lines/", "DriverParallelLines.exe")
writeghaction("driverpl", "DriverParallelLines.WidescreenFix")
project "EnterTheMatrix.WidescreenFix"
setpaths("Z:/WFP/Games/Enter the Matrix/", "Matrix.exe")
writeghaction("enterthematrix", "EnterTheMatrix.WidescreenFix")
project "FarCry.WidescreenFix"
setpaths("Z:/WFP/Games/Far Cry/", "Bin32/FarCry.exe", "Bin32/")
writeghaction("farcry", "FarCry.WidescreenFix")
project "FarCry64.WidescreenFix"
platforms { "Win64" }
architecture "x64"
files { "source/FarCry.WidescreenFix/*.cpp" }
setpaths("Z:/WFP/Games/Far Cry/", "Bin64/FarCry.exe", "Bin64/")
targetdir "data/FarCry.WidescreenFix/Bin64/"
project "Flatout.WidescreenFix"
setpaths("Z:/WFP/Games/Flatout/FlatOut/", "flatout.exe")
writeghaction("flatout", "Flatout.WidescreenFix")
project "Flatout2.WidescreenFix"
setpaths("Z:/WFP/Games/Flatout/FlatOut2/", "FlatOut2.exe")
writeghaction("flatout2", "Flatout2.WidescreenFix")
project "FlatoutUltimateCarnage.WidescreenFix"
setpaths("Z:/WFP/Games/Flatout/FlatOut - Ultimate Carnage/", "Fouc.exe")
writeghaction("flatoutuc", "FlatoutUltimateCarnage.WidescreenFix")
project "GettingUp.WidescreenFix"
setpaths("Z:/WFP/Games/Marc Ecko's Getting Up 2/", "_Bin/GettingUp.exe", "_Bin/")
targetdir "data/GettingUp.WidescreenFix/_Bin/"
debugargs { "map=M01_HOO_Tranes_Hood_3" }
buildoptions { "/Zc:threadSafeInit-" }
project "GTA1.WidescreenFix"
setpaths("Z:/WFP/Games/Grand Theft Auto/Grand Theft Auto 1 London 1969 1961/", "WINO/Grand Theft Auto.exe", "WINO/scripts/")
writeghaction("gta1", "GTA1.WidescreenFix")
project "GTA2.WidescreenFix"
setpaths("Z:/WFP/Games/Grand Theft Auto/Grand Theft Auto 2/", "gta2.exe")
writeghaction("gta2", "GTA2.WidescreenFix")
project "GTA3.WidescreenFix"
files { "includes/GTA/*.h", "includes/GTA/*.cpp" }
setpaths("Z:/WFP/Games/Grand Theft Auto/GTAIII/", "gta3.exe")
writeghaction("gta3", "GTA3.WidescreenFix")
project "GTA3DE.FusionMod"
platforms { "Win64" }
architecture "x64"
add_asmjit()
setpaths("Z:/WFP/Games/Grand Theft Auto The Definitive Edition/GTA III - Definitive Edition/", "Gameface/Binaries/Win64/LibertyCity.exe", "Gameface/Binaries/Win64/scripts/")
writeghaction("gta3de", "GTA3DE.FusionMod")
project "GTAVC.WidescreenFix"
files { "includes/GTA/*.h", "includes/GTA/*.cpp" }
setpaths("Z:/WFP/Games/Grand Theft Auto/Grand Theft Auto Vice City/", "gta-vc.exe")
writeghaction("gtavc", "GTAVC.WidescreenFix")
project "GTAVCDE.FusionMod"
platforms { "Win64" }
architecture "x64"
add_asmjit()
setpaths("Z:/WFP/Games/Grand Theft Auto The Definitive Edition/GTA Vice City - Definitive Edition/", "Gameface/Binaries/Win64/ViceCity.exe", "Gameface/Binaries/Win64/scripts/")
writeghaction("gtavcde", "GTAVCDE.FusionMod")
project "GTASA.WidescreenFix"
files { "includes/GTA/*.h", "includes/GTA/*.cpp" }
setpaths("Z:/WFP/Games/Grand Theft Auto/GTA San Andreas/", "gta_sa.exe")
writeghaction("gtasa", "GTASA.WidescreenFix")
project "GTASADE.FusionMod"
platforms { "Win64" }
architecture "x64"
add_asmjit()
setpaths("Z:/WFP/Games/Grand Theft Auto The Definitive Edition/GTA San Andreas - Definitive Edition/", "Gameface/Binaries/Win64/SanAndreas.exe", "Gameface/Binaries/Win64/scripts/")
writeghaction("gtasade", "GTASADE.FusionMod")
project "GTALCS.PCSX2.WidescreenFix"
configurations { "ReleasePCSX2", "DebugPCSX2" }
setpaths("Z:/WFP/Games/PCSX2/", "pcsx2.exe")
files { "includes/pcsx2/pcsx2.h" }
writeghaction("gtalcs", "GTALCS.PCSX2.WidescreenFix")
project "GTAVCS.PCSX2.WidescreenFix"
configurations { "ReleasePCSX2", "DebugPCSX2" }
setpaths("Z:/WFP/Games/PCSX2/", "pcsx2.exe")
files { "includes/pcsx2/pcsx2.h" }
writeghaction("gtavcs", "GTAVCS.PCSX2.WidescreenFix")
project "GTALCS.PPSSPP.WidescreenFix"
kind "Makefile"
includedirs { "external/pspsdk/psp/sdk/include" }
includedirs { "external/pspsdk/bin" }
includedirs { "external/pspsdk/psp/sdk/include" }
files { "source/%{prj.name}/*.c" }
targetextension ".prx"
setbuildpaths_psp("Z:/WFP/Games/PPSSPP/", "PPSSPPWindows64.exe", "memstick/PSP/PLUGINS/GTALCS.PPSSPP.WidescreenFix/", "%{wks.location}/../external/pspsdk/bin/vsmake", "%{wks.location}/../source/%{prj.name}/", "GTALCS.PPSSPP.WidescreenFix")
writemakefile("GTALCS.PPSSPP.WidescreenFix", "lodl.c")
writeghaction("gtalcspsp", "GTALCS.PPSSPP.WidescreenFix")
project "GTAVCS.PPSSPP.WidescreenFix"
kind "Makefile"
includedirs { "external/pspsdk/psp/sdk/include" }
includedirs { "external/pspsdk/bin" }
includedirs { "external/pspsdk/psp/sdk/include" }
files { "source/%{prj.name}/*.c" }
targetextension ".prx"
setbuildpaths_psp("Z:/WFP/Games/PPSSPP/", "PPSSPPWindows64.exe", "memstick/PSP/PLUGINS/GTAVCS.PPSSPP.WidescreenFix/", "%{wks.location}/../external/pspsdk/bin/vsmake", "%{wks.location}/../source/%{prj.name}/", "GTAVCS.PPSSPP.WidescreenFix")
writemakefile("GTAVCS.PPSSPP.WidescreenFix", "lodl.c")
writeghaction("gtavcspsp", "GTAVCS.PPSSPP.WidescreenFix")
project "GTACTW.PPSSPP.FusionMod"
kind "Makefile"
includedirs { "external/pspsdk/psp/sdk/include" }
includedirs { "external/pspsdk/bin" }
includedirs { "external/pspsdk/psp/sdk/include" }
files { "source/%{prj.name}/*.c" }
targetextension ".prx"
setbuildpaths_psp("Z:/WFP/Games/PPSSPP/", "PPSSPPWindows64.exe", "memstick/PSP/PLUGINS/GTACTW.PPSSPP.FusionMod/", "%{wks.location}/../external/pspsdk/bin/vsmake", "%{wks.location}/../source/%{prj.name}/", "GTACTW.PPSSPP.FusionMod")
writemakefile("GTACTW.PPSSPP.FusionMod")
--writeghaction("gtactwpsp", "GTACTW.PPSSPP.FusionMod")
project "GTASA.UWP.Test"
setpaths("Z:/WFP/Games/GTASAUWP/", "GTASA.exe")
project "Gun.WidescreenFix"
setpaths("Z:/WFP/Games/GUN/", "Gun.exe")
writeghaction("gun", "Gun.WidescreenFix")
project "HiddenandDangerous2.WidescreenFix"
setpaths("Z:/WFP/Games/Hidden and Dangerous 2/", "hd2.exe")
writeghaction("hd2", "HiddenandDangerous2.WidescreenFix")
project "JustCause.WidescreenFix"
setpaths("Z:/WFP/Games/Just Cause/", "JustCause.exe")
writeghaction("justcause", "JustCause.WidescreenFix")
project "KingKong.WidescreenFix"
setpaths("Z:/WFP/Games/King Kong/", "CheckApplication.exe")
writeghaction("kingkong", "KingKong.WidescreenFix")
project "KnightRider.WidescreenFix"
configurations { "Release", "Debug", "ReleasePCSX2", "DebugPCSX2" }
setpaths("Z:/WFP/Games/Knight Rider/", "Knight Rider.exe")
files { "includes/pcsx2/pcsx2.h" }
writeghaction("kr", "KnightRider.WidescreenFix")
filter "configurations:*PCSX2"
setpaths("Z:/WFP/Games/PCSX2/", "pcsx2.exe")
project "KnightRider2.WidescreenFix"
configurations { "Release", "Debug", "ReleasePCSX2", "DebugPCSX2" }
setpaths("Z:/WFP/Games/Knight Rider 2/", "KR2.exe")
files { "includes/pcsx2/pcsx2.h" }
writeghaction("kr2", "KnightRider2.WidescreenFix")
filter "configurations:*PCSX2"
setpaths("Z:/WFP/Games/PCSX2/", "pcsx2.exe")
project "LARush.WidescreenFix"
setpaths("Z:/WFP/Games/LA Rush/", "LARush.exe", "plugins/")
writeghaction("larush", "LARush.WidescreenFix")
project "Mafia.GenericFix"
setpaths("Z:/WFP/Games/Mafia/", "Setup.exe")
targetdir "data/Mafia.WidescreenFix/scripts"
project "Mafia.WidescreenFix"
setpaths("Z:/WFP/Games/Mafia/", "GameV12.exe")
writeghaction("mafia", "Mafia.WidescreenFix")
project "Mafia.CXBXR.WidescreenFix"
configurations { "ReleaseCXBXR", "DebugCXBXR" }
setpaths("Z:/WFP/Games/CXBXR/", "cxbx.exe")
files { "includes/cxbxr/cxbxr.h" }
writeghaction("mafiaxbox", "Mafia.CXBXR.WidescreenFix")
project "Manhunt.WidescreenFix"
setpaths("Z:/WFP/Games/Manhunt/", "manhunt.exe")
writeghaction("manhunt", "Manhunt.WidescreenFix")
project "MassEffectTrilogy.FOVFix"
setpaths("Z:/WFP/Games/Mass Effect/Mass Effect 2/Binaries/", "MassEffect2.exe", "/")
writeghaction("masseffect", "MassEffectTrilogy.FOVFix")
project "MaxPayne.WidescreenFix"
setpaths("Z:/WFP/Games/Max Payne/Max Payne/", "MaxPayne.exe")
writeghaction("mp1", "MaxPayne.WidescreenFix")
project "MidnightClubLARemix.PPSSPP.FusionMod"
kind "Makefile"
includedirs { "external/pspsdk/psp/sdk/include" }
includedirs { "external/pspsdk/bin" }
includedirs { "external/pspsdk/psp/sdk/include" }
files { "source/%{prj.name}/*.c" }
targetextension ".prx"
setbuildpaths_psp("Z:/WFP/Games/PPSSPP/", "PPSSPPWindows64.exe", "memstick/PSP/PLUGINS/MidnightClubLARemix.PPSSPP.FusionMod/", "%{wks.location}/../external/pspsdk/bin/vsmake", "%{wks.location}/../source/%{prj.name}/", "MidnightClubLARemix.PPSSPP.FusionMod")
writemakefile("MidnightClubLARemix.PPSSPP.FusionMod")
project "MaxPayne2.WidescreenFix"
setpaths("Z:/WFP/Games/Max Payne/Max Payne 2 The Fall of Max Payne/", "MaxPayne2.exe")
writeghaction("mp2", "MaxPayne2.WidescreenFix")
project "NFSCarbon.WidescreenFix"
setpaths("Z:/WFP/Games/Need For Speed/Need for Speed Carbon/", "NFSC.exe")
writeghaction("nfsc", "NFSCarbon.WidescreenFix")
project "NFSMostWanted.WidescreenFix"
setpaths("Z:/WFP/Games/Need For Speed/Need for Speed Most Wanted/", "speed.exe")
writeghaction("nfsmw", "NFSMostWanted.WidescreenFix")
project "NFSProStreet.GenericFix"
setpaths("Z:/WFP/Games/Need For Speed/Need for Speed ProStreet/", "nfsps.exe")
writeghaction("nfsps", "NFSProStreet.GenericFix")
project "NFSUndercover.GenericFix"
setpaths("Z:/WFP/Games/Need For Speed/Need for Speed Undercover/", "nfs.exe")
writeghaction("nfsuc", "NFSUndercover.GenericFix")
project "NFSUnderground.WidescreenFix"
setpaths("Z:/WFP/Games/Need For Speed/Need For Speed Underground/", "speed.exe")
files { "textures/NFS/NFSU/icon.rc" }
defines { "IDR_NFSUICON=200" }
writeghaction("nfsu", "NFSUnderground.WidescreenFix")
project "NFSUnderground2.WidescreenFix"
setpaths("Z:/WFP/Games/Need For Speed/Need For Speed Underground 2/", "speed2.exe")
writeghaction("nfsu2", "NFSUnderground2.WidescreenFix")
project "Onimusha3.WidescreenFix"
setpaths("Z:/WFP/Games/Onimusha 3/", "ONI3.exe")
writeghaction("onimusha3", "Onimusha3.WidescreenFix")
project "ParadiseCracked.WidescreenFix"
setpaths("Z:/WFP/Games/Paradise Cracked/", "game.exe")
writeghaction("paradisecracked", "ParadiseCracked.WidescreenFix")
project "PsiOpsTheMindgateConspiracy.WidescreenFix"
setpaths("Z:/WFP/Games/PSI-OPS/", "PsiOps.exe")
writeghaction("psiops", "PsiOpsTheMindgateConspiracy.WidescreenFix")
project "Psychonauts.WidescreenFix"
setpaths("Z:/WFP/Games/Psychonauts/", "Psychonauts.exe")
writeghaction("psychonauts", "Psychonauts.WidescreenFix")
project "ResidentEvil2.Dolphin.FusionMod"
platforms { "Win64" }
architecture "x64"
add_asmjit()
setpaths("Z:/WFP/Games/Dolphin-x64/", "Dolphin.exe", "scripts/")
writeghaction("re2gc", "ResidentEvil2.Dolphin.FusionMod")
project "ResidentEvil3.Dolphin.FusionMod"
platforms { "Win64" }
architecture "x64"
add_asmjit()
setpaths("Z:/WFP/Games/Dolphin-x64/", "Dolphin.exe", "scripts/")
writeghaction("re3gc", "ResidentEvil3.Dolphin.FusionMod")
project "SecondSight.WidescreenFix"
setpaths("Z:/WFP/Games/Second Sight/", "secondsight.exe")
writeghaction("secondsight", "SecondSight.WidescreenFix")
project "SilentHill2.WidescreenFix"
setpaths("Z:/WFP/Games/Silent Hill/Silent Hill 2/", "sh2pc.exe")
writeghaction("sh2", "SilentHill2.WidescreenFix")
project "SilentHill3.WidescreenFix"
setpaths("Z:/WFP/Games/Silent Hill/Silent Hill 3/", "sh3.exe")
writeghaction("sh3", "SilentHill3.WidescreenFix")
project "SilentHill4.WidescreenFix"
setpaths("Z:/WFP/Games/Silent Hill/Silent Hill 4 The Room/", "Silent Hill 4.exe")
writeghaction("sh4", "SilentHill4.WidescreenFix")
project "SniperElite.WidescreenFix"
setpaths("Z:/WFP/Games/Sniper Elite/", "SniperElite.exe")
writeghaction("sniperelite", "SniperElite.WidescreenFix")
project "SonicHeroes.WidescreenFix"
setpaths("Z:/WFP/Games/SONICHEROES/", "Tsonic_win.exe")
writeghaction("sonicheroes", "SonicHeroes.WidescreenFix")
project "SplinterCell.WidescreenFix"
setpaths("Z:/WFP/Games/Splinter Cell/Splinter Cell/", "system/SplinterCell.exe", "system/scripts/")
writeghaction("sc", "SplinterCell.WidescreenFix")
project "SplinterCellChaosTheory.WidescreenFix"
setpaths("Z:/WFP/Games/Splinter Cell/Splintercell Chaos Theory/", "system/splintercell3.exe", "system/scripts/")
writeghaction("scct", "SplinterCellChaosTheory.WidescreenFix")
project "SplinterCellDoubleAgent.WidescreenFix"
setpaths("Z:/WFP/Games/Splinter Cell/Splinter Cell - Double Agent/", "SCDA-Offline/System/SplinterCell4.exe", "SCDA-Offline/System/scripts/")
files { "textures/SCDA/icon.rc" }
defines { "IDR_SCDAICON=200" }
writeghaction("scda", "SplinterCellDoubleAgent.WidescreenFix")
project "SplinterCellDoubleAgent.PCSX2.WidescreenFix"
configurations { "ReleasePCSX2", "DebugPCSX2" }
setpaths("Z:/WFP/Games/PCSX2/", "pcsx2.exe")
files { "includes/pcsx2/pcsx2.h" }
writeghaction("scdaps2", "SplinterCellDoubleAgent.PCSX2.WidescreenFix")
project "SplinterCellDoubleAgent.CXBXR.WidescreenFix"
configurations { "ReleaseCXBXR", "DebugCXBXR" }
setpaths("Z:/WFP/Games/CXBXR/", "cxbx.exe")
files { "includes/cxbxr/cxbxr.h" }
writeghaction("scdaxbox", "SplinterCellDoubleAgent.CXBXR.WidescreenFix")
project "SplinterCellPandoraTomorrow.WidescreenFix"
setpaths("Z:/WFP/Games/Splinter Cell/Splinter Cell Pandora Tomorrow/", "offline/system/SplinterCell2.exe", "offline/system/scripts/")
writeghaction("scpt", "SplinterCellPandoraTomorrow.WidescreenFix")
project "SplinterCellEssentials.PPSSPP.FusionMod"
kind "Makefile"
includedirs { "external/pspsdk/psp/sdk/include" }
includedirs { "external/pspsdk/bin" }
includedirs { "external/pspsdk/psp/sdk/include" }
files { "source/%{prj.name}/*.c" }
targetextension ".prx"
setbuildpaths_psp("Z:/WFP/Games/PPSSPP/", "PPSSPPWindows64.exe", "memstick/PSP/PLUGINS/SplinterCellEssentials.PPSSPP.FusionMod/", "%{wks.location}/../external/pspsdk/bin/vsmake", "%{wks.location}/../source/%{prj.name}/", "SplinterCellEssentials.PPSSPP.FusionMod")
writemakefile("SplinterCellEssentials.PPSSPP.FusionMod")
writeghaction("sce", "SplinterCellEssentials.PPSSPP.FusionMod")
project "StreetRacingSyndicate.WidescreenFix"
setpaths("Z:/WFP/Games/Street Racing Syndicate/", "Bin/srs.exe", "Bin/scripts/")
writeghaction("srs", "StreetRacingSyndicate.WidescreenFix")
project "StubbstheZombie.WidescreenFix"
setpaths("Z:/WFP/Games/Stubbs the Zombie/", "Stubbs.exe")
writeghaction("stubbsthezombie", "StubbstheZombie.WidescreenFix")
project "TheGodfather.WidescreenFix"
setpaths("Z:/WFP/Games/The Godfather/", "godfather.exe")
writeghaction("thegodfather", "TheGodfather.WidescreenFix")
project "TheMatrixPathOfNeo.WidescreenFix"
setpaths("Z:/WFP/Games/The Matrix - Path Of Neo/", "Matrix3.exe")
writeghaction("thematrixpathofneo", "TheMatrixPathOfNeo.WidescreenFix")
project "ThePunisher.WidescreenFix"
setpaths("Z:/WFP/Games/The Punisher/", "pun.exe")
writeghaction("punisher", "ThePunisher.WidescreenFix")
project "TheSuffering.WidescreenFix"
setpaths("Z:/WFP/Games/The Suffering/The Suffering/", "suffering.exe")
writeghaction("thesuffering", "TheSuffering.WidescreenFix")
project "TheWarriors.PPSSPP.FusionMod"
kind "Makefile"
includedirs { "external/pspsdk/psp/sdk/include" }
includedirs { "external/pspsdk/bin" }
includedirs { "external/pspsdk/psp/sdk/include" }
files { "source/%{prj.name}/*.c" }
targetextension ".prx"
setbuildpaths_psp("Z:/WFP/Games/PPSSPP/", "PPSSPPWindows64.exe", "memstick/PSP/PLUGINS/TheWarriors.PPSSPP.FusionMod/", "%{wks.location}/../external/pspsdk/bin/vsmake", "%{wks.location}/../source/%{prj.name}/", "TheWarriors.PPSSPP.FusionMod")
writemakefile("TheWarriors.PPSSPP.FusionMod")
project "TonyHawksAmericanWasteland.WidescreenFix"
setpaths("Z:/WFP/Games/Tony Hawks/Tony Hawk's American Wasteland/", "Game/THAW.exe", "Game/scripts/")
writeghaction("thaw", "TonyHawksAmericanWasteland.WidescreenFix")
project "TonyHawksProSkater2.WidescreenFix"
setpaths("Z:/WFP/Games/Tony Hawks/THPS2/", "THawk2.exe")
writeghaction("thps2", "TonyHawksProSkater2.WidescreenFix")
project "TonyHawksProSkater3.WidescreenFix"
setpaths("Z:/WFP/Games/Tony Hawks/Pro Skater 3/", "Skate3.exe")
writeghaction("thps3", "TonyHawksProSkater3.WidescreenFix")
project "TonyHawksProSkater4.WidescreenFix"
setpaths("Z:/WFP/Games/Tony Hawks/Tony Hawks Pro Skater 4/", "Game/Skate4.exe", "Game/scripts/")
writeghaction("thps4", "TonyHawksProSkater4.WidescreenFix")
project "TonyHawksUnderground.WidescreenFix"
setpaths("Z:/WFP/Games/Tony Hawks/Tony Hawk's Underground/", "Game/THUG.exe", "Game/scripts/")
writeghaction("thug", "TonyHawksUnderground.WidescreenFix")
project "TonyHawksUnderground2.WidescreenFix"
setpaths("Z:/WFP/Games/Tony Hawks/Tony Hawk's Underground 2/", "Game/THUG2.exe", "Game/scripts/")
writeghaction("thug2", "TonyHawksUnderground2.WidescreenFix")
project "TotalOverdose.WidescreenFix"
setpaths("Z:/WFP/Games/Total Overdose/", "TOD.exe")
writeghaction("tod", "TotalOverdose.WidescreenFix")
project "TrueCrimeNewYorkCity.WidescreenFix"
setpaths("Z:/WFP/Games/True Crime New York City/", "True Crime New York City.exe")
writeghaction("truecrimenyc", "TrueCrimeNewYorkCity.WidescreenFix")
project "TrueCrimeStreetsofLA.WidescreenFix"
setpaths("Z:/WFP/Games/True Crime Streets of LA/", "TrueCrimeMB.exe")
writeghaction("truecrimesola", "TrueCrimeStreetsofLA.WidescreenFix")
project "UltimateSpiderMan.WidescreenFix"
setpaths("Z:/WFP/Games/Ultimate Spider-Man/", "USM.exe")
writeghaction("usm", "UltimateSpiderMan.WidescreenFix")