Cheat Engine Forum Index Cheat Engine
The Official Site of Cheat Engine
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 


Cheat Engine Forum Index
PostGo back to topic
FreeER
Grandmaster Cheater Supreme
Reputation: 53
Joined: 09 Aug 2013
Posts: 1091

PostPosted: Fri Jul 22, 2022 11:54 pm    Post subject: Simple Autorun Subdirectory Loader

So I noticed mece's title extension and thought it looked nice, then I got annoyed by how many "random" lua files I had in autorun/ and decided to move them into more organized folders for what comes with CE vs what's from the forum and my own. CE doesn't auto load from subdirectories however and I wasn't going to just explicitly load every single file, hence I wrote a quick script that will load all lua files from any subdirectories in autorun, excluding ceshare since it had issues. If an init.lua file exists then only that file will be loaded to offer some customizability for larger projects. To exclude a folder you can either add it to the excludeDirs table like ceshare, though this would have to be redone if this extension ever updates, or simply create an empty init.lua file in the directory (since it'd be the only one called and then would do nothing).

https://github.com/FreeER/CE-Extensions/blob/master/loader.lua
_________________
https://github.com/FreeER/ has a few CE related repos
Back to top
View user's profile Send private message
Post reviews:   Approve 1
Author Review
AylinCE
Review: Approve
Post reference:
ReviewPosted: Sun Jul 24, 2022 3:54 am

Thanks
Back to top
View user's profile Send private message Visit poster's website MSN Messenger
Display:  
Cheat Engine Forum Index


Powered by phpBB © 2001, 2005 phpBB Group

CE Wiki   IRC (#CEF)   Twitter
Third party websites