Restore kodi addons



Hi

I was having issue with kodi 21 hanging on startup when logo was showing

As I was troubleshooting, I was testing out if it was due to addons that cause this
so I renamed the addons directory to something else e.g. addon_bak..

After finding out that actual cause of the problem (not due to addons)
I got kodi to load but the addons are empty now (cos Kodi created new addons directory)

I deleted that addons directory and renamed my original folder “addons_bak” to “addons” 
but addons is still showing as empty in kodi.

I think kodi has created a new addons info file and wiped out the info file that stored all the addons that I got installed previously.

How can I restore all my previous addons again without needing to reinstall and setup each addon again?
Is there any file that has all the addons information that was installed?

OR

Do I need to reinstall and setup all the addons again (which is alot more time consuming and not preferred)?