Lets say I have a folder called "Games". And I have all my games saved in that particular folders.
I want to extract all the binaries from all those folders which launch my games. Here I cannot use any launchers: Eg. Steam / origin etc.
So far I have managed to get all the binaries existing within that folder. But those all are random binaries mixed up with the actual game binaries.
Any way to extract game only binaries?
'''
Finding binaries for games
Eliminating other types of binaries, eg: uninstall.exe etc
'''
def getStandalone(filePath = 'D:\\Games\\'):
pattern = "*.exe"
pattern2 = "unin*"
for root, dir, files in os.walk(filePath):
for file in files:
if(
fnmatch.fnmatch(file, pattern) and
fnmatch.fnmatch(file, pattern) !=
fnmatch.fnmatch(file, pattern2)
):
print(file)
# print(getStandalone())
I was able to remove "uninstall" binaries since most of them start with unin--
But that's a very dirty way of doing this, and I would rather like to extract game binaries than remove all the other stuff.
One thing popped up in my mind. Windows registry. But I have no idea how to go about "Finding Games" in the registry. I have a bunch of old games copied directly from CDs. And they are not even really installed. They just exist on my drive. So how do I go about finding those?