hakchi2 icon indicating copy to clipboard operation
hakchi2 copied to clipboard

C8 to C2 issue; possible fix

Open elierodrigue opened this issue 9 years ago • 8 comments

I tried a fix for the c8 to c2 issue. Give it a try , its in latest helping hand version : https://github.com/elierodrigue/Hakchi_HelpingHand/commit/866d8714880ae1ff66bb20d49b68d692ae480cf3 You'll need to build it, connect your nes classic, run helping hand beside hakchi installation (2.14 and up) and click option 5. Then you can start browsing around.

Technical details : Looking at available space using "df -h", i noticed that approximatly 100k was being created while navigating to a folder i've never opened. On a system that is almost full, it can cause the c8 to c2 issue. Looking at what is changing, I noticed that a saved game folder is created for each game / folder loader, even though no data is being saved. That folder by itself is taking some space. In the change folder procedure (chmenu) i'm adding "find /var/lib/clover/profiles/0/ -type d -exec rmdir {} ; " before the new folder is mounted, deleting all empty folder (rmdir will fail if folder is not empty and -empty doesnt appear to work). It does slow down folder change a tad when there's a lot of cleaning to do, especially if you never cleaned it. (First time took me ~30 secs, but saved 12mb). Now when browsing around, available memory is always the same to me. Didnt throughfully tested, but everything works good so far.

elierodrigue avatar May 03 '17 01:05 elierodrigue

I'd like to try this but I think I'm doing something wrong with the build procedure. I've only built hakchi2 source before and I'm trying the same steps but helping hand fails to build with some dependencies errors. :D

MiLToS666 avatar May 03 '17 06:05 MiLToS666

which dependency is missing? most lilkely hakchi2.exe, you can juste remove it and add a reference to your latest usable hakchi2.exe

elierodrigue avatar May 03 '17 11:05 elierodrigue

you could also just put the change i stated in cmenu in your mod folder and reflash custom kernel.

elierodrigue avatar May 03 '17 11:05 elierodrigue

i didnt do a pull request for cmenu file as i want to validate its properly working first...

elierodrigue avatar May 03 '17 11:05 elierodrigue

Yeah, let me try that method instead! :) I added the command before the "overmount_games" line, correct?

MiLToS666 avatar May 03 '17 11:05 MiLToS666

It does take a couple more seconds when navigating folders but it's not annoying at all if it really works helps to remove all those empty folders that are created as you mentioned. 👍

MiLToS666 avatar May 03 '17 14:05 MiLToS666

elierodrigue included this in the latest release Hakchi Helper v1.2. The first time you navigate into a folder, there is about a 15-20 second delay. From that point on folder transitions are only a couple seconds at a time. I've experienced no issues with the added function yet.

ghost avatar May 07 '17 22:05 ghost

Closing this as this does not need to stay open.

Drakonas avatar Feb 07 '18 15:02 Drakonas