Homebrew RELEASE JKSV (save manager) for Switch

  • Thread starter JK_
  • Start date
  • Views 152,193
  • Replies 368
  • Likes 24

JK_

Well-Known Member
OP
Member
Joined
Sep 4, 2015
Messages
740
Trophies
1
XP
2,540
Country
United States
Good news and bad news:

Good news is that I've located my original stuff for building the JKSV NSP. Bad news is: it looks like it's somewhat incomplete. Since a few of the files only needed to be built once, I don't have the original source files that made them. I'll get it done though. Looks like the last time I built it as an NSP was October 2021.
 

alcab

Well-Known Member
Member
Joined
Nov 22, 2005
Messages
248
Trophies
1
Website
Visit site
XP
1,270
Country
There was back in the day. I'll see if I can find the batch script I had and if it still works. I remember making custom boot gifs and everything for it.

That's bizarre. There's only one JKSV folder on your drive though, right? When JKSV boots, it basically downloads and caches your entire drive contents in RAM to make navigating it a smoother experience. Working with Drive and Webdav isn't like a SD card or anything. I have to match strings and IDs for everything. I'm willing to touch it up sometime if you wanna help debug it. Someone else added webdav to it and made some changes to both parts. I don't wanna be an asshole, but I did fix a couple of memory leaks they missed when I was going through it again. I missed them the first time too.
Yes, only one folder. In fact, this issue began with last version of JKSV and sometimes this duplication issue happens with game folders, and sometimes with the whole JKSV folder. It is very strange.

What I will try to do as soon as I get more time is to go back to a previous version of JKSV, to see what happens.

Thanks a lot.
 

JK_

Well-Known Member
OP
Member
Joined
Sep 4, 2015
Messages
740
Trophies
1
XP
2,540
Country
United States
Yes, only one folder. In fact, this issue began with last version of JKSV and sometimes this duplication issue happens with game folders, and sometimes with the whole JKSV folder. It is very strange.

What I will try to do as soon as I get more time is to go back to a previous version of JKSV, to see what happens.

Thanks a lot.
Before this release, it was all my own code running drive and it seemed to work fairly well, even if it wasn't perfect. I guess I can just reuse it in the rewrite anyway... I didn't have time to test both super thoroughly when I pulled it and I'm regretting it now.

There's nothing like reading snarky comments in your code while the other person left memory leaks in a few places and clearly screwed something up that was working fine before...
Post automatically merged:

I'm prototyping the new remote storage code now on my PC. I don't know how easily it'll integrate into master branch JKSV, but it'll get there. I just wanted to say guys: I'm being pulled in like ten different directions at the moment. I promised someone I'd help them with Minecraft saves on the 3DS, I'm still working on FsLib and taking feedback on it, I'm working on biggestDump (it's close), I promised someone I'd help them with getting Chinese characters to load and render in something cause apparently most people don't bother? Yeah, I've got a lot on my plate on top of everything else. I'm trying not to burn myself out on top of it, so patience is all I ask.

Thanks.
 
Last edited by JK_,

impeeza

¡Kabito!
Member
Joined
Apr 5, 2011
Messages
8,092
Trophies
4
Age
46
Location
At my chair.
XP
27,413
Country
Colombia
  • Like
Reactions: Blythe93

ber71

Well-Known Member
Member
Joined
Apr 24, 2019
Messages
617
Trophies
0
Age
59
XP
2,738
Country
Spain
Thoughts about zip compression.
I can't see settings for compression level. Maybe wrong, but after a look at the code it seems that defaults are used.
Perhaps a more convenient approach would be setting the compression level to 'minimal'. This would suffice to remove all the most obvious redundancies while still being fast.

(Edit) a possible issue with zip files, empty folders aren't stored in the archive, as opposed to file based backups.
 
Last edited by ber71,

JK_

Well-Known Member
OP
Member
Joined
Sep 4, 2015
Messages
740
Trophies
1
XP
2,540
Country
United States
@ber71
For the first: When I first added ZIP there actually was a setting that controlled the compression level used. The difference it made wasn't huge, and in the end I removed it and stuck with default. Rewrite maybe because of how much cleaner it is.

The second: I never thought of that. Good point. I'm using minizip though, so I might have to add empty files named ".keep" or something to preserve them.
 
  • Like
Reactions: ber71

impeeza

¡Kabito!
Member
Joined
Apr 5, 2011
Messages
8,092
Trophies
4
Age
46
Location
At my chair.
XP
27,413
Country
Colombia
Seems minizip had struggle with empty folders management, also seems was corrected back on june on develop branch:

https://github.com/zlib-ng/minizip-ng/issues/756

Screenshot_2024-11-17-08-44-24-558_org.mozilla.firefox-edit.jpg
 
Last edited by impeeza,

Site & Scene News

Popular threads in this forum

General chit-chat
Help Users
  • No one is chatting at the moment.
    Xdqwerty @ Xdqwerty: @SylverReZ, i'm glad +1