forked from ThirteenAG/WidescreenFixesPack
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpremake5.lua
610 lines (592 loc) · 32.1 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
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
workspace "WidescreenFixesPack"
configurations { "Release", "Debug" }
platforms { "Win32" }
architecture "x32"
location "build"
objdir ("build/obj")
buildlog ("build/log/%{prj.name}.log")
cppdialect "C++latest"
include "makefile.lua"
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 { "data/%{prj.name}/**" }
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" }
includedirs { "includes/LED" }
libdirs { "includes/LED" }
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
buildcommands {"setlocal EnableDelayedExpansion"}
rebuildcommands {"setlocal EnableDelayedExpansion"}
local ppsspppath = os.getenv "PPSSPPMemstick"
if (ppsspppath == nil) then
buildcommands {"set _PPSSPPMemstick=" .. gamepath .. "memstick/PSP"}
rebuildcommands {"set _PPSSPPMemstick=" .. gamepath .. "memstick/PSP"}
else
buildcommands {"set _PPSSPPMemstick=!PPSSPPMemstick!"}
rebuildcommands {"set _PPSSPPMemstick=!PPSSPPMemstick!"}
end
buildcommands {
"powershell -ExecutionPolicy Bypass -File \"" .. pspsdkpath .. "\" -C \"" .. sourcepath .. "\"\r\n" ..
"if !errorlevel! neq 0 exit /b !errorlevel!\r\n" ..
"if not defined _PPSSPPMemstick goto :eof\r\n" ..
"if not exist !_PPSSPPMemstick! goto :eof\r\n" ..
"if not exist !_PPSSPPMemstick!/PLUGINS/ mkdir !_PPSSPPMemstick!/PLUGINS/\r\n" ..
"set target=!_PPSSPPMemstick!/PLUGINS/$(ProjectName)\r\n" ..
"copy /y $(NMakeOutput) \"!target!\"\r\n"
}
rebuildcommands {
"powershell -ExecutionPolicy Bypass -File \"" .. pspsdkpath .. "\" -C \"" .. sourcepath .. "\" clean\r\n" ..
"powershell -ExecutionPolicy Bypass -File \"" .. pspsdkpath .. "\" -C \"" .. sourcepath .. "\"\r\n" ..
"if !errorlevel! neq 0 exit /b !errorlevel!\r\n" ..
"if not defined _PPSSPPMemstick goto :eof\r\n" ..
"if not exist !_PPSSPPMemstick! goto :eof\r\n" ..
"set target=!_PPSSPPMemstick!/PLUGINS/$(ProjectName)\r\n" ..
"copy /y $(NMakeOutput) \"!target!\"\r\n"
}
cleancommands {
"setlocal EnableDelayedExpansion\r\n" ..
"powershell -ExecutionPolicy Bypass -File \"" .. pspsdkpath .. "\" -C \"" .. sourcepath .. "\" clean\r\n" ..
"if !errorlevel! neq 0 exit /b !errorlevel!\r\n"
}
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_ps2(gamepath, exepath, scriptspath, ps2sdkpath, sourcepath, prj_name)
-- local pbcmd = {}
-- for k,v in pairs(pbcommands) do
-- pbcmd[k] = v
-- end
if (gamepath) then
buildcommands {"setlocal EnableDelayedExpansion"}
rebuildcommands {"setlocal EnableDelayedExpansion"}
local pcsx2fpath = os.getenv "PCSX2FDir"
if (pcsx2fpath == nil) then
buildcommands {"set _PCSX2FDir=" .. gamepath}
rebuildcommands {"set _PCSX2FDir=" .. gamepath}
else
buildcommands {"set _PCSX2FDir=!PCSX2FDir!"}
rebuildcommands {"set _PCSX2FDir=!PCSX2FDir!"}
end
buildcommands {
"powershell -ExecutionPolicy Bypass -File \"" .. ps2sdkpath .. "\" -C \"" .. sourcepath .. "\"\r\n" ..
"if !errorlevel! neq 0 exit /b !errorlevel!\r\n" ..
"if not defined _PCSX2FDir goto :eof\r\n" ..
"if not exist !_PCSX2FDir! goto :eof\r\n" ..
"if not exist !_PCSX2FDir!/PLUGINS mkdir !_PCSX2FDir!/PLUGINS\r\n" ..
"set target=!_PCSX2FDir!/PLUGINS/\r\n" ..
"copy /y $(NMakeOutput) \"!target!\"\r\n"
}
rebuildcommands {
"powershell -ExecutionPolicy Bypass -File \"" .. ps2sdkpath .. "\" -C \"" .. sourcepath .. "\" clean\r\n" ..
"powershell -ExecutionPolicy Bypass -File \"" .. ps2sdkpath .. "\" -C \"" .. sourcepath .. "\"\r\n" ..
"if !errorlevel! neq 0 exit /b !errorlevel!\r\n" ..
"if not defined _PCSX2FDir goto :eof\r\n" ..
"if not exist !_PCSX2FDir! goto :eof\r\n" ..
"if not exist !_PCSX2FDir!/PLUGINS mkdir !_PCSX2FDir!/PLUGINS\r\n" ..
"set target=!_PCSX2FDir!/PLUGINS/\r\n" ..
"copy /y $(NMakeOutput) \"!target!\"\r\n"
}
cleancommands {
"setlocal EnableDelayedExpansion\r\n" ..
"powershell -ExecutionPolicy Bypass -File \"" .. ps2sdkpath .. "\" -C \"" .. sourcepath .. "\" clean\r\n" ..
"if !errorlevel! neq 0 exit /b !errorlevel!"
}
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
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/")
project "Burnout3.PCSX2F.WidescreenFix"
kind "Makefile"
includedirs { "external/ps2sdk/ps2sdk/ee" }
files { "source/%{prj.name}/*.h" }
files { "source/%{prj.name}/*.c", "source/%{prj.name}/makefile" }
targetextension ".elf"
setbuildpaths_ps2("Z:/GitHub/PCSX2-Fork-With-Plugins/bin/", "pcsx2x64.exe", "PLUGINS/", "%{wks.location}/../external/ps2sdk/ee/bin/vsmake.ps1", "%{wks.location}/../source/%{prj.name}/", "Burnout3.PCSX2F.WidescreenFix")
writemakefile_ps2("Burnout3.PCSX2F.WidescreenFix", "PLUGINS/", "0x02100000", "-l:libc.a -l:libm.a -l:libgcc.a", "../../includes/pcsx2/log.o",
"../../includes/pcsx2/memalloc.o", "../../includes/pcsx2/patterns.o", "../../includes/pcsx2/injector.o", "../../includes/pcsx2/rini.o",
"../../includes/pcsx2/inireader.o", "../../includes/pcsx2/mips.o")
writelinkfile_ps2("Burnout3.PCSX2F.WidescreenFix")
project "CallOfCthulhu.WidescreenFix"
setpaths("Z:/WFP/Games/Call of Cthulhu/", "Engine/CoCMainWin32.exe", "Engine/scripts/")
project "ColdFear.WidescreenFix"
setpaths("Z:/WFP/Games/ColdFear/", "ColdFear_retail.exe")
project "Condemned.WidescreenFix"
setpaths("Z:/WFP/Games/Condemned Criminal Origins/", "Condemned.exe")
project "DeerAvenger4.WidescreenFix"
setpaths("Z:/WFP/Games/Deer Avenger 4/", "DA4.exe")
project "Driv3r.WidescreenFix"
setpaths("Z:/WFP/Games/DRIV3R/", "driv3r.exe")
project "DriverParallelLines.WidescreenFix"
setpaths("Z:/WFP/Games/Driver Parallel Lines/", "DriverParallelLines.exe")
project "EnterTheMatrix.WidescreenFix"
setpaths("Z:/WFP/Games/Enter the Matrix/", "Matrix.exe")
project "FarCry.WidescreenFix"
setpaths("Z:/WFP/Games/Far Cry/", "Bin32/FarCry.exe", "Bin32/")
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")
project "Flatout2.WidescreenFix"
setpaths("Z:/WFP/Games/Flatout/FlatOut2/", "FlatOut2.exe")
project "FlatoutUltimateCarnage.WidescreenFix"
setpaths("Z:/WFP/Games/Flatout/FlatOut - Ultimate Carnage/", "Fouc.exe")
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/")
project "GTA2.WidescreenFix"
setpaths("Z:/WFP/Games/Grand Theft Auto/Grand Theft Auto 2/", "gta2.exe")
project "GTA3.WidescreenFix"
files { "includes/GTA/*.h", "includes/GTA/*.cpp" }
setpaths("Z:/WFP/Games/Grand Theft Auto/GTAIII/", "gta3.exe")
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/")
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")
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/")
project "GTASA.WidescreenFix"
files { "includes/GTA/*.h", "includes/GTA/*.cpp" }
setpaths("Z:/WFP/Games/Grand Theft Auto/GTA San Andreas/", "gta_sa.exe")
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/")
project "GTALCS.PCSX2F.WidescreenFix"
kind "Makefile"
includedirs { "external/ps2sdk/ps2sdk/ee" }
files { "source/%{prj.name}/*.h" }
files { "source/%{prj.name}/*.c", "source/%{prj.name}/makefile" }
targetextension ".elf"
setbuildpaths_ps2("Z:/GitHub/PCSX2-Fork-With-Plugins/bin/", "pcsx2x64.exe", "PLUGINS/", "%{wks.location}/../external/ps2sdk/ee/bin/vsmake.ps1", "%{wks.location}/../source/%{prj.name}/", "GTALCS.PCSX2F.WidescreenFix")
writemakefile_ps2("GTALCS.PCSX2F.WidescreenFix", "PLUGINS/", "0x02100000", "-l:libc.a -l:libm.a -l:libgcc.a", "lodl.o", "cpad.o", "../../includes/pcsx2/log.o",
"../../includes/pcsx2/memalloc.o", "../../includes/pcsx2/patterns.o", "../../includes/pcsx2/injector.o", "../../includes/pcsx2/rini.o",
"../../includes/pcsx2/inireader.o", "../../includes/pcsx2/mips.o")
writelinkfile_ps2("GTALCS.PCSX2F.WidescreenFix")
project "GTAVCS.PCSX2F.WidescreenFix"
kind "Makefile"
includedirs { "external/ps2sdk/ps2sdk/ee" }
files { "source/%{prj.name}/*.h" }
files { "source/%{prj.name}/*.c", "source/%{prj.name}/makefile" }
targetextension ".elf"
setbuildpaths_ps2("Z:/GitHub/PCSX2-Fork-With-Plugins/bin/", "pcsx2x64.exe", "PLUGINS/", "%{wks.location}/../external/ps2sdk/ee/bin/vsmake.ps1", "%{wks.location}/../source/%{prj.name}/", "GTAVCS.PCSX2F.WidescreenFix")
writemakefile_ps2("GTAVCS.PCSX2F.WidescreenFix", "PLUGINS/", "0x02100000", "-l:libc.a", "cpad.o", "ckey.o", "../../includes/pcsx2/memalloc.o",
"../../includes/pcsx2/patterns.o", "../../includes/pcsx2/injector.o", "../../includes/pcsx2/rini.o","../../includes/pcsx2/inireader.o",
"../../includes/pcsx2/mips.o")
writelinkfile_ps2("GTAVCS.PCSX2F.WidescreenFix")
project "GTAVCS.PCSX2F.Project2DFX"
kind "Makefile"
dependson { "GTAVCS.PCSX2F.WidescreenFix" }
includedirs { "external/ps2sdk/ps2sdk/ee" }
files { "source/%{prj.name}/*.h" }
files { "source/%{prj.name}/*.c", "source/%{prj.name}/makefile" }
targetextension ".elf"
setbuildpaths_ps2("Z:/GitHub/PCSX2-Fork-With-Plugins/bin/", "pcsx2x64.exe", "PLUGINS/", "%{wks.location}/../external/ps2sdk/ee/bin/vsmake.ps1", "%{wks.location}/../source/%{prj.name}/", "GTAVCS.PCSX2F.Project2DFX")
writemakefile_ps2("GTAVCS.PCSX2F.Project2DFX", "PLUGINS/", "0x03100000", "-l:libc.a", "lodl.o", "../../includes/pcsx2/memalloc.o",
"../../includes/pcsx2/patterns.o", "../../includes/pcsx2/injector.o", "../../includes/pcsx2/rini.o","../../includes/pcsx2/inireader.o",
"../../includes/pcsx2/mips.o")
writelinkfile_ps2("GTAVCS.PCSX2F.Project2DFX")
project "GTALCS.PPSSPP.WidescreenFix"
kind "Makefile"
dependson { "GTALCS.PPSSPP.Project2DFX", "GTALCS.PPSSPP.ImVehLM" }
includedirs { "external/pspsdk/usr/local/pspdev/psp/sdk/include" }
includedirs { "external/pspsdk/usr/local/pspdev/bin" }
includedirs { "external/pspsdk/usr/local/pspdev/psp/sdk/include" }
files { "source/%{prj.name}/*.c", "source/%{prj.name}/makefile" }
targetextension ".prx"
setbuildpaths_psp("Z:/WFP/Games/PPSSPP/", "PPSSPPWindows64.exe", "memstick/PSP/PLUGINS/GTALCS.PPSSPP.WidescreenFix/", "%{wks.location}/../external/pspsdk/vsmake.ps1", "%{wks.location}/../source/%{prj.name}/", "GTALCS.PPSSPP.WidescreenFix")
writemakefile_psp("GTALCS.PPSSPP.WidescreenFix")
project "GTALCS.PPSSPP.Project2DFX"
kind "Makefile"
includedirs { "external/pspsdk/usr/local/pspdev/psp/sdk/include" }
includedirs { "external/pspsdk/usr/local/pspdev/bin" }
includedirs { "external/pspsdk/usr/local/pspdev/psp/sdk/include" }
files { "source/%{prj.name}/*.c", "source/%{prj.name}/makefile", "source/%{prj.name}/*.cpp" }
targetextension ".prx"
setbuildpaths_psp("Z:/WFP/Games/PPSSPP/", "PPSSPPWindows64.exe", "memstick/PSP/PLUGINS/GTALCS.PPSSPP.Project2DFX/", "%{wks.location}/../external/pspsdk/vsmake.ps1", "%{wks.location}/../source/%{prj.name}/", "GTALCS.PPSSPP.Project2DFX")
writemakefile_psp("GTALCS.PPSSPP.Project2DFX", "lodl.c")
project "GTALCS.PPSSPP.ImVehLM"
kind "Makefile"
includedirs { "external/pspsdk/usr/local/pspdev/psp/sdk/include" }
includedirs { "external/pspsdk/usr/local/pspdev/bin" }
includedirs { "external/pspsdk/usr/local/pspdev/psp/sdk/include" }
files { "source/%{prj.name}/*.c", "source/%{prj.name}/makefile", "source/%{prj.name}/*.cpp" }
targetextension ".prx"
setbuildpaths_psp("Z:/WFP/Games/PPSSPP/", "PPSSPPWindows64.exe", "memstick/PSP/PLUGINS/GTALCS.PPSSPP.ImVehLM/", "%{wks.location}/../external/pspsdk/vsmake.ps1", "%{wks.location}/../source/%{prj.name}/", "GTALCS.PPSSPP.ImVehLM")
writemakefile_psp("GTALCS.PPSSPP.ImVehLM")
project "GTAVCS.PPSSPP.WidescreenFix"
kind "Makefile"
dependson { "GTAVCS.PPSSPP.Project2DFX", "GTAVCS.PPSSPP.ImVehLM" }
includedirs { "external/pspsdk/usr/local/pspdev/psp/sdk/include" }
includedirs { "external/pspsdk/usr/local/pspdev/bin" }
includedirs { "external/pspsdk/usr/local/pspdev/psp/sdk/include" }
files { "source/%{prj.name}/*.c", "source/%{prj.name}/makefile" }
targetextension ".prx"
setbuildpaths_psp("Z:/WFP/Games/PPSSPP/", "PPSSPPWindows64.exe", "memstick/PSP/PLUGINS/GTAVCS.PPSSPP.WidescreenFix/", "%{wks.location}/../external/pspsdk/vsmake.ps1", "%{wks.location}/../source/%{prj.name}/", "GTAVCS.PPSSPP.WidescreenFix")
writemakefile_psp("GTAVCS.PPSSPP.WidescreenFix")
project "GTAVCS.PPSSPP.Project2DFX"
kind "Makefile"
includedirs { "external/pspsdk/usr/local/pspdev/psp/sdk/include" }
includedirs { "external/pspsdk/usr/local/pspdev/bin" }
includedirs { "external/pspsdk/usr/local/pspdev/psp/sdk/include" }
files { "source/%{prj.name}/*.c", "source/%{prj.name}/makefile", "source/%{prj.name}/*.cpp" }
targetextension ".prx"
setbuildpaths_psp("Z:/WFP/Games/PPSSPP/", "PPSSPPWindows64.exe", "memstick/PSP/PLUGINS/GTAVCS.PPSSPP.Project2DFX/", "%{wks.location}/../external/pspsdk/vsmake.ps1", "%{wks.location}/../source/%{prj.name}/", "GTAVCS.PPSSPP.Project2DFX")
writemakefile_psp("GTAVCS.PPSSPP.Project2DFX", "lodl.c")
project "GTAVCS.PPSSPP.ImVehLM"
kind "Makefile"
includedirs { "external/pspsdk/usr/local/pspdev/psp/sdk/include" }
includedirs { "external/pspsdk/usr/local/pspdev/bin" }
includedirs { "external/pspsdk/usr/local/pspdev/psp/sdk/include" }
files { "source/%{prj.name}/*.c", "source/%{prj.name}/makefile", "source/%{prj.name}/*.cpp" }
targetextension ".prx"
setbuildpaths_psp("Z:/WFP/Games/PPSSPP/", "PPSSPPWindows64.exe", "memstick/PSP/PLUGINS/GTAVCS.PPSSPP.ImVehLM/", "%{wks.location}/../external/pspsdk/vsmake.ps1", "%{wks.location}/../source/%{prj.name}/", "GTAVCS.PPSSPP.ImVehLM")
writemakefile_psp("GTAVCS.PPSSPP.ImVehLM")
project "GTACTW.PPSSPP.FusionMod"
kind "Makefile"
includedirs { "external/pspsdk/usr/local/pspdev/psp/sdk/include" }
includedirs { "external/pspsdk/usr/local/pspdev/bin" }
includedirs { "external/pspsdk/usr/local/pspdev/psp/sdk/include" }
files { "source/%{prj.name}/*.c", "source/%{prj.name}/makefile" }
targetextension ".prx"
setbuildpaths_psp("Z:/WFP/Games/PPSSPP/", "PPSSPPWindows64.exe", "memstick/PSP/PLUGINS/GTACTW.PPSSPP.FusionMod/", "%{wks.location}/../external/pspsdk/vsmake.ps1", "%{wks.location}/../source/%{prj.name}/", "GTACTW.PPSSPP.FusionMod")
writemakefile_psp("GTACTW.PPSSPP.FusionMod")
project "GTASA.UWP.Test"
setpaths("Z:/WFP/Games/GTASAUWP/", "GTASA.exe")
project "Gun.WidescreenFix"
setpaths("Z:/WFP/Games/GUN/", "Gun.exe")
project "HiddenandDangerous2.WidescreenFix"
setpaths("Z:/WFP/Games/Hidden and Dangerous 2/", "hd2.exe")
project "JustCause.WidescreenFix"
setpaths("Z:/WFP/Games/Just Cause/", "JustCause.exe")
project "KingKong.WidescreenFix"
setpaths("Z:/WFP/Games/King Kong/", "CheckApplication.exe")
project "KnightRider.WidescreenFix"
configurations { "Release", "Debug" }
setpaths("Z:/WFP/Games/Knight Rider/", "Knight Rider.exe")
project "KnightRider.PCSX2F.WidescreenFix"
kind "Makefile"
includedirs { "external/ps2sdk/ps2sdk/ee" }
files { "source/%{prj.name}/*.h" }
files { "source/%{prj.name}/*.c", "source/%{prj.name}/makefile" }
targetextension ".elf"
setbuildpaths_ps2("Z:/GitHub/PCSX2-Fork-With-Plugins/bin/", "pcsx2x64.exe", "PLUGINS/", "%{wks.location}/../external/ps2sdk/ee/bin/vsmake.ps1", "%{wks.location}/../source/%{prj.name}/", "KnightRider.PCSX2F.WidescreenFix")
writemakefile_ps2("KnightRider.PCSX2F.WidescreenFix", "PLUGINS/", "0x02100000", "-l:libc.a -l:libm.a -l:libgcc.a", "../../includes/pcsx2/log.o",
"../../includes/pcsx2/memalloc.o", "../../includes/pcsx2/patterns.o", "../../includes/pcsx2/injector.o", "../../includes/pcsx2/rini.o",
"../../includes/pcsx2/inireader.o", "../../includes/pcsx2/mips.o")
writelinkfile_ps2("KnightRider.PCSX2F.WidescreenFix")
project "KnightRider2.WidescreenFix"
configurations { "Release", "Debug" }
setpaths("Z:/WFP/Games/Knight Rider 2/", "KR2.exe")
project "LARush.WidescreenFix"
setpaths("Z:/WFP/Games/LA Rush/", "LARush.exe", "plugins/")
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")
project "Mafia.CXBXR.WidescreenFix"
configurations { "ReleaseCXBXR", "DebugCXBXR" }
setpaths("Z:/WFP/Games/CXBXR/", "cxbx.exe")
files { "includes/cxbxr/cxbxr.h" }
project "Manhunt.WidescreenFix"
setpaths("Z:/WFP/Games/Manhunt/", "manhunt.exe")
project "MassEffectTrilogy.FOVFix"
setpaths("Z:/WFP/Games/Mass Effect/Mass Effect 2/Binaries/", "MassEffect2.exe", "/")
project "MaxPayne.WidescreenFix"
setpaths("Z:/WFP/Games/Max Payne/Max Payne/", "MaxPayne.exe")
project "MidnightClubLARemix.PPSSPP.FusionMod"
kind "Makefile"
includedirs { "external/pspsdk/usr/local/pspdev/psp/sdk/include" }
includedirs { "external/pspsdk/usr/local/pspdev/bin" }
includedirs { "external/pspsdk/usr/local/pspdev/psp/sdk/include" }
files { "source/%{prj.name}/*.c", "source/%{prj.name}/makefile" }
targetextension ".prx"
setbuildpaths_psp("Z:/WFP/Games/PPSSPP/", "PPSSPPWindows64.exe", "memstick/PSP/PLUGINS/MidnightClubLARemix.PPSSPP.FusionMod/", "%{wks.location}/../external/pspsdk/vsmake.ps1", "%{wks.location}/../source/%{prj.name}/", "MidnightClubLARemix.PPSSPP.FusionMod")
writemakefile_psp("MidnightClubLARemix.PPSSPP.FusionMod")
project "PPSSPP.XboxRainDroplets"
kind "Makefile"
includedirs { "external/pspsdk/usr/local/pspdev/psp/sdk/include" }
includedirs { "external/pspsdk/usr/local/pspdev/bin" }
includedirs { "external/pspsdk/usr/local/pspdev/psp/sdk/include" }
files { "source/%{prj.name}/*.c", "source/%{prj.name}/makefile" }
targetextension ".prx"
setbuildpaths_psp("Z:/WFP/Games/PPSSPP/", "PPSSPPWindows64.exe", "memstick/PSP/PLUGINS/PPSSPP.XboxRainDroplets/", "%{wks.location}/../external/pspsdk/vsmake.ps1", "%{wks.location}/../source/%{prj.name}/", "PPSSPP.XboxRainDroplets")
writemakefile_psp("PPSSPP.XboxRainDroplets")
project "PCSX2F.XboxRainDroplets"
kind "Makefile"
includedirs { "external/ps2sdk/ps2sdk/ee" }
files { "source/%{prj.name}/*.h" }
files { "source/%{prj.name}/*.c", "source/%{prj.name}/makefile" }
targetextension ".elf"
setbuildpaths_ps2("Z:/GitHub/PCSX2-Fork-With-Plugins/bin/", "pcsx2x64.exe", "PLUGINS/", "%{wks.location}/../external/ps2sdk/ee/bin/vsmake.ps1", "%{wks.location}/../source/%{prj.name}/", "PCSX2F.XboxRainDroplets")
writemakefile_ps2("PCSX2F.XboxRainDroplets", "PLUGINS/", "0x03F00000", "-l:libc.a", "../../includes/pcsx2/memalloc.o",
"../../includes/pcsx2/patterns.o", "../../includes/pcsx2/injector.o", "../../includes/pcsx2/rini.o","../../includes/pcsx2/inireader.o",
"../../includes/pcsx2/mips.o")
writelinkfile_ps2("PCSX2F.XboxRainDroplets")
project "MaxPayne2.WidescreenFix"
setpaths("Z:/WFP/Games/Max Payne/Max Payne 2 The Fall of Max Payne/", "MaxPayne2.exe")
project "NFSCarbon.WidescreenFix"
setpaths("Z:/WFP/Games/Need For Speed/Need for Speed Carbon/", "NFSC.exe")
project "NFSMostWanted.WidescreenFix"
setpaths("Z:/WFP/Games/Need For Speed/Need for Speed Most Wanted/", "speed.exe")
project "NFSProStreet.GenericFix"
setpaths("Z:/WFP/Games/Need For Speed/Need for Speed ProStreet/", "nfsps.exe")
project "NFSUndercover.GenericFix"
setpaths("Z:/WFP/Games/Need For Speed/Need for Speed Undercover/", "nfs.exe")
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" }
project "NFSUnderground2.WidescreenFix"
setpaths("Z:/WFP/Games/Need For Speed/Need For Speed Underground 2/", "speed2.exe")
project "Onimusha3.WidescreenFix"
setpaths("Z:/WFP/Games/Onimusha 3/", "ONI3.exe")
project "ParadiseCracked.WidescreenFix"
setpaths("Z:/WFP/Games/Paradise Cracked/", "game.exe")
project "PsiOpsTheMindgateConspiracy.WidescreenFix"
setpaths("Z:/WFP/Games/PSI-OPS/", "PsiOps.exe")
project "Psychonauts.WidescreenFix"
setpaths("Z:/WFP/Games/Psychonauts/", "Psychonauts.exe")
project "ResidentEvil2.Dolphin.FusionMod"
platforms { "Win64" }
architecture "x64"
add_asmjit()
setpaths("Z:/WFP/Games/Dolphin-x64/", "Dolphin.exe", "scripts/")
project "ResidentEvil3.Dolphin.FusionMod"
platforms { "Win64" }
architecture "x64"
add_asmjit()
setpaths("Z:/WFP/Games/Dolphin-x64/", "Dolphin.exe", "scripts/")
project "ResidentEvilRevelations.FusionFix"
setpaths("Z:/WFP/Games/ResidentEvilRevelations/", "rerev.exe", "scripts/")
project "ResidentEvilRevelations2.FusionFix"
setpaths("Z:/WFP/Games/ResidentEvilRevelations2/", "rerev2.exe", "scripts/")
project "ResidentEvil4.FusionMod"
platforms { "Win64" }
architecture "x64"
add_asmjit()
setpaths("Z:/WFP/Games/ResidentEvil4/", "re4.exe", "scripts/")
project "ResidentEvil5.FusionFix"
setpaths("Z:/WFP/Games/ResidentEvil5/", "re5dx9.exe", "scripts/")
project "ResidentEvil6.FusionFix"
setpaths("Z:/WFP/Games/ResidentEvil6/", "BH6.exe", "scripts/")
project "Scarface.FusionFix"
setpaths("Z:/WFP/Games/Scarface/", "scarface.exe", "scripts/")
project "SecondSight.WidescreenFix"
setpaths("Z:/WFP/Games/Second Sight/", "secondsight.exe")
project "SilentHill2.WidescreenFix"
setpaths("Z:/WFP/Games/Silent Hill/Silent Hill 2/", "sh2pc.exe")
project "SilentHill3.WidescreenFix"
setpaths("Z:/WFP/Games/Silent Hill/Silent Hill 3/", "sh3.exe")
project "SilentHill4.WidescreenFix"
setpaths("Z:/WFP/Games/Silent Hill/Silent Hill 4 The Room/", "Silent Hill 4.exe")
project "SniperElite.WidescreenFix"
setpaths("Z:/WFP/Games/Sniper Elite/", "SniperElite.exe")
project "SonicHeroes.WidescreenFix"
setpaths("Z:/WFP/Games/SONICHEROES/", "Tsonic_win.exe")
project "SplinterCell.WidescreenFix"
setpaths("Z:/WFP/Games/Splinter Cell/Splinter Cell/", "system/SplinterCell.exe", "system/scripts/")
project "SplinterCellChaosTheory.WidescreenFix"
setpaths("Z:/WFP/Games/Splinter Cell/Splintercell Chaos Theory/", "system/splintercell3.exe", "system/scripts/")
project "SplinterCellConviction.FusionMod"
setpaths("Z:/WFP/Games/Splinter Cell/Tom Clancy's Splinter Cell Conviction/", "src/system/conviction_game.exe", "src/system/scripts/")
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" }
project "SplinterCellDoubleAgent.PCSX2F.WidescreenFix"
kind "Makefile"
includedirs { "external/ps2sdk/ps2sdk/ee" }
files { "source/%{prj.name}/*.h" }
files { "source/%{prj.name}/*.c", "source/%{prj.name}/makefile" }
targetextension ".elf"
setbuildpaths_ps2("Z:/GitHub/PCSX2-Fork-With-Plugins/bin/", "pcsx2x64.exe", "PLUGINS/", "%{wks.location}/../external/ps2sdk/ee/bin/vsmake.ps1", "%{wks.location}/../source/%{prj.name}/", "SplinterCellDoubleAgent.PCSX2F.WidescreenFix")
writemakefile_ps2("SplinterCellDoubleAgent.PCSX2F.WidescreenFix", "PLUGINS/", "0x02100000", "-l:libc.a -l:libm.a -l:libgcc.a", "../../includes/pcsx2/log.o",
"../../includes/pcsx2/memalloc.o", "../../includes/pcsx2/patterns.o", "../../includes/pcsx2/injector.o", "../../includes/pcsx2/rini.o",
"../../includes/pcsx2/inireader.o", "../../includes/pcsx2/mips.o")
writelinkfile_ps2("SplinterCellDoubleAgent.PCSX2F.WidescreenFix")
project "SplinterCellDoubleAgent.CXBXR.WidescreenFix"
configurations { "ReleaseCXBXR", "DebugCXBXR" }
setpaths("Z:/WFP/Games/CXBXR/", "cxbx.exe")
files { "includes/cxbxr/cxbxr.h" }
project "SplinterCellPandoraTomorrow.WidescreenFix"
setpaths("Z:/WFP/Games/Splinter Cell/Splinter Cell Pandora Tomorrow/", "offline/system/SplinterCell2.exe", "offline/system/scripts/")
project "SplinterCellEssentials.PPSSPP.FusionMod"
kind "Makefile"
includedirs { "external/pspsdk/usr/local/pspdev/psp/sdk/include" }
includedirs { "external/pspsdk/usr/local/pspdev/bin" }
includedirs { "external/pspsdk/usr/local/pspdev/psp/sdk/include" }
files { "source/%{prj.name}/*.c", "source/%{prj.name}/makefile" }
targetextension ".prx"
setbuildpaths_psp("Z:/WFP/Games/PPSSPP/", "PPSSPPWindows64.exe", "memstick/PSP/PLUGINS/SplinterCellEssentials.PPSSPP.FusionMod/", "%{wks.location}/../external/pspsdk/vsmake.ps1", "%{wks.location}/../source/%{prj.name}/", "SplinterCellEssentials.PPSSPP.FusionMod")
writemakefile_psp("SplinterCellEssentials.PPSSPP.FusionMod")
project "StreetRacingSyndicate.WidescreenFix"
setpaths("Z:/WFP/Games/Street Racing Syndicate/", "Bin/srs.exe", "Bin/scripts/")
project "StubbstheZombie.WidescreenFix"
setpaths("Z:/WFP/Games/Stubbs the Zombie/", "Stubbs.exe")
project "TheGodfather.WidescreenFix"
setpaths("Z:/WFP/Games/The Godfather/", "godfather.exe")
project "TheMatrixPathOfNeo.WidescreenFix"
setpaths("Z:/WFP/Games/The Matrix - Path Of Neo/", "Matrix3.exe")
project "ThePunisher.WidescreenFix"
setpaths("Z:/WFP/Games/The Punisher/", "pun.exe")
project "TheSuffering.WidescreenFix"
setpaths("Z:/WFP/Games/The Suffering/The Suffering/", "suffering.exe")
project "TheWarriors.PPSSPP.FusionMod"
kind "Makefile"
includedirs { "external/pspsdk/usr/local/pspdev/psp/sdk/include" }
includedirs { "external/pspsdk/usr/local/pspdev/bin" }
includedirs { "external/pspsdk/usr/local/pspdev/psp/sdk/include" }
files { "source/%{prj.name}/*.c", "source/%{prj.name}/makefile" }
targetextension ".prx"
setbuildpaths_psp("Z:/WFP/Games/PPSSPP/", "PPSSPPWindows64.exe", "memstick/PSP/PLUGINS/TheWarriors.PPSSPP.FusionMod/", "%{wks.location}/../external/pspsdk/vsmake.ps1", "%{wks.location}/../source/%{prj.name}/", "TheWarriors.PPSSPP.FusionMod")
writemakefile_psp("TheWarriors.PPSSPP.FusionMod")
project "TonyHawksAmericanWasteland.WidescreenFix"
setpaths("Z:/WFP/Games/Tony Hawks/Tony Hawk's American Wasteland/", "Game/THAW.exe", "Game/scripts/")
project "TonyHawksProSkater2.WidescreenFix"
setpaths("Z:/WFP/Games/Tony Hawks/THPS2/", "THawk2.exe")
project "TonyHawksProSkater3.WidescreenFix"
setpaths("Z:/WFP/Games/Tony Hawks/Pro Skater 3/", "Skate3.exe")
project "TonyHawksProSkater4.WidescreenFix"
setpaths("Z:/WFP/Games/Tony Hawks/Tony Hawks Pro Skater 4/", "Game/Skate4.exe", "Game/scripts/")
project "TonyHawksUnderground.WidescreenFix"
setpaths("Z:/WFP/Games/Tony Hawks/Tony Hawk's Underground/", "Game/THUG.exe", "Game/scripts/")
project "TonyHawksUnderground2.WidescreenFix"
setpaths("Z:/WFP/Games/Tony Hawks/Tony Hawk's Underground 2/", "Game/THUG2.exe", "Game/scripts/")
project "TotalOverdose.WidescreenFix"
setpaths("Z:/WFP/Games/Total Overdose/", "TOD.exe")
project "TrueCrimeNewYorkCity.WidescreenFix"
setpaths("Z:/WFP/Games/True Crime New York City/", "True Crime New York City.exe")
project "TrueCrimeStreetsofLA.WidescreenFix"
setpaths("Z:/WFP/Games/True Crime Streets of LA/", "TrueCrimeMB.exe")
project "UltimateSpiderMan.WidescreenFix"
setpaths("Z:/WFP/Games/Ultimate Spider-Man/", "USM.exe")