brpaz-graveyard / cerebro-cheats

MIT License
2 stars 0 forks source link

Cheats Folder path on Windows #1

Open Sniperkillerut opened 6 years ago

Sniperkillerut commented 6 years ago

Hi, Awesome plugin you have here, really usefull, thanks for creating it!.

I'm using Windows 10 insider's preview and cerebro-cheats didn't work at first, so this is what I did:

1- install cerebro-cheats 2- type cheats 3- cerebro shows autocomplete 4- nothing else, "open cheats directory" didn't show. 5- come read readme.md to search for folder path 6- no information on windows 7- look at the code 8- find: const CHEATS_DIR = path.join(remote.app.getPath('userData'), 'plugins', 'cerebro-cheats', 'cheats'); 9- try: remote.app.getPath('userData') 10-find dir

The path that cerebro-cheats is looking for is: C:\Users\\AppData\Roaming\Cerebro\plugins\cerebro-cheats\cheats but it is installed in: C:\Users\\AppData\Roaming\Cerebro\plugins\node_modules\cerebro-cheats

I don't know if this is intended. When I created the first folder path the "open cheats directory" started to appear and everything is working fine.

Just reporting.

brpaz commented 6 years ago

Hello @Sniperkillerut. Glad you found this plugin useful and thanks for reporting the issue. I hadn´t the opportunity to test this in Windows, since I work mostly on Linux. Ite seems I got the cerebro plugins path wrong. Still, the plugin should have created the cheats directory even if its not within Cerebro plugins folder. Maybe some permissions issue on Windows I will fix the plugin to use the correct path when I have some free time.

Thank you.