Holy cow this blew up. Thank you all for you responses, I go from top to bottom.
So let me define some goals of this project/attempt and other goals.
So There is alot of contextual parts to this, and I mainly function from a Stream of consciousness style of though.
Cheat engine is a pascal, and Developed SOLELY in lazarus, so I was hoping since lazarus supported cross compile and was cross platform, that there may be a chance to get ti running. why?
I recently getting back into PlayStation 2 games, and been using what pcsx2 software calls .pnach files (which is just hex edited memory) to allow things, such as 60fps, true non-anthropomorphic 16:9(21:9, and 32:9) and others as well), and now with some talent, one of the first external mods for
https://www.reddit.com/r/DarkCloud/comments/vp5gcc/dc1_dark_cloud_enhanced_mod_release/ was made for dark cloud, launch title for ps2.
its a simple real time, memory changing via simple code in visual studio for windows rn, but it just using pcsx2 api iirc to change values on the fly, in real time, so the game doesnt crashes. i.e when XXXXX000 hit change to XXXXX001 then back when XXXX002 then back, so a set of loops and conditional statements.
so why all this if it works on windows and most of the other people use windows, shouldn't I just windows, if you have to ask or cant get past thing and understand that its more then pure pragmatic-ism, then please reframe, im not here to fight, im here to solve my issues and move forward, and learn to fish.
The mod is windows only atm however, but ive been talking to the dev, and I think they are willing to let me attempt a linux port of the code. or at least access to the source to attempt to get it to run. so learning anything to achieve that goal of playing this in native Linux
$ sudo apt install gameconqueror
It be faster to install that instead try to convert a zillion of lines of code into something that is linux compatible.
so why not use game conquer? I am, and do have it installed Btw its Sudo Dnf Install not apt get

I just used cheat engine, everyone making patches for pcsx2 uses cheat engine, the values and interface isnt the same, and most guides are again written for cheat engine.
either way i got work I have to do. I have to blindy hunt for hex values with cheat engine, and then hunt other random values, reload the save state of the ram of the pcsx2 emulator, and then write a .pnach file.
iirc cheat engine also has lua scripting and modules. so in thoery I chould just make a cheat engine patch for a game, and not have to worry about copyright infringement.
I think your question amounts to
I'm trying to compile something which is Windows specific for Linux, and have been advised to "Just replace all the Windows specific function calls with equivalent versions for Linux".
Where do I start?
MarkMLl
Yes, I have done simple coding for embedded things 10 years ago on a cyclone iii and VHD(leds and switches) and simple bash script via nano. I do know how to route pcbs and hand re flow a board, even SMD with hot air/by hand. so Ive always been more hardware orientated then software. I can even compile gentoo and follow the manual, and even do some of my our configs. I would say in between a novice and intermediate.
And -WB is windows specific:
-WB<x> Set image base to <x> (Windows, Symbian)
so its a change I still need to make within the source correct?
I wouldn't say /wrong/, just a bit too abruptly to be constructive or friendly :-)
I've not looked at OP's project in detail, but the one you mentioned is quite blunt about needing access to some other program's memory. That suggests that it either wants a debugging interface, or access as described in (the accepted answer to) https://unix.stackexchange.com/questions/6301/how-do-i-read-from-proc-pid-mem-under-linux ; this is almost certain to need either root privilege or extra POSIX capabilities.
Noting that some subprojects are supplied as .sln files, I'd be very cautious about running VSCode on any Linux system that can't be terminated "with extreme prejudice". I'm still trying to work out what I've seen, but I /think/ that there's some interaction between a daemon supplied as part of VSCode, and any cloned(?) GitHub project; the result that I think I've seen was sufficient network traffic to severely impact the reliability of any local apps using datagrams (i.e. UDP or ICMP) even after a system reboot.
MarkMLl
Cheat engine is pascal, written purely in lazarus ide, the only thing windows specific is the calls and the dark cloud enhance mod.exe , yes cheat engine is playing with privilege memory, so it will need root as it runs in keneral space on windows iirc.