Skip to content

Commit 041ada7

Browse files
committed
Use correct commit.
1 parent 57823a2 commit 041ada7

File tree

7 files changed

+52
-30
lines changed

7 files changed

+52
-30
lines changed

JKSM_OG_SRC/.gitignore

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,5 +12,3 @@ release/
1212
*.log
1313
*.7z
1414
*.project
15-
*.cia
16-
*.3dsx

JKSM_OG_SRC/JKSM.xml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
<targets selectable="true"></targets>

JKSM_OG_SRC/README.md

Lines changed: 16 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,17 @@
1-
# JKSM Rosalina
2-
This is a fork from:
1+
# JKSM
32
JKSM - JK's Save Manager
4-
---
5-
This version's 3DSX is only compatible with the Rosalina entrypoint of the Homebrew Launcher.
6-
For the old *hax 3dsx please visit the original fork by JK.
7-
---
8-
WARNING: This fork moves the JKSV folder from the root of the sdcard to the "3ds/data/JKSM" folder. You must move your saves there before you are able to restore it.
3+
4+
Requires:
5+
[smealum's ctrulib](https://github.com/smealum/ctrulib)
6+
[xerpi's portlibs](https://github.com/xerpi/3ds_portlibs)
7+
[xerpi's sf2d](https://github.com/xerpi/sf2dlib/tree/effe77ea81d21c26bad457d4f5ed8bb16ce7b753)
8+
[xerpi's sftd](https://github.com/xerpi/sftdlib)
9+
10+
Place makerom inside your devkitARM's bin directory. Type 'make cia' inside the project's directory to build.
11+
12+
A custom font can be used by placing it in the sd:/JKSV folder and naming it "font.ttf". I also recommend replacing the font with a smaller one if you're building a 3dsx.
13+
14+
Due to the fact that I cannot keep up with homebrew releases anymore, I've decided to make the filter list external. If you need to add a program to it, copy its lower ID to the end of filter.txt
15+
in your JKSV folder as 0xXXXXXXXX.
16+
17+
A big thanks to everyone who has worked on ctrulib.

JKSM_OG_SRC/source/backup.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ bool backupData(const titleData dat, FS_Archive arch, int mode, bool autoName)
9999
if(slot.empty())
100100
return false;
101101

102-
//get path returns path to /3ds/data/JKSM/[DIR]
102+
//get path returns path to /JKSV/[DIR]
103103
pathOut = getPath(mode) + dat.nameSafe + (char16_t)'/' + slot;
104104
std::u16string recreate = pathOut;//need this later after directory is deleted.
105105
pathOut += (char16_t)'/';

JKSM_OG_SRC/source/main.cpp

Lines changed: 21 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
#include <string>
66
#include <cstdlib>
77
#include <fstream>
8+
89
#include "sys.h"
910
#include "global.h"
1011
#include "util.h"
@@ -16,15 +17,28 @@ int main(int argc, const char * argv[])
1617
hidInit();
1718
hidScanInput();
1819
u32 held = hidKeysHeld();
20+
if((held & KEY_R) && (held & KEY_L))
21+
devMode = true;
22+
//This is for making sure I didn't butcher the font
23+
else if(held & KEY_R)
24+
sysLanguage = CFG_LANGUAGE_JP;
25+
26+
sysInit();
1927

20-
if((held & KEY_R) && (held & KEY_L)) { devMode = true; }
21-
22-
sysInit();
23-
sdTitlesInit();
24-
nandTitlesInit();
25-
while(aptMainLoop() && !kill)
28+
if(runningUnder() && !devMode)
2629
{
27-
handleState();
30+
hbl = true;
31+
start3dsxMode();
32+
}
33+
else
34+
{
35+
sdTitlesInit();
36+
nandTitlesInit();
37+
38+
while(aptMainLoop() && !kill)
39+
{
40+
handleState();
41+
}
2842
}
2943

3044
sysExit();

JKSM_OG_SRC/source/sys.cpp

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -59,8 +59,8 @@ void createDir(const char *path)
5959
void sysInit()
6060
{
6161
romfsInit();
62-
mkdir("/3ds/data/JKSM", 0777);
63-
chdir("/3ds/data/JKSM");
62+
mkdir("/JKSV", 0777);
63+
chdir("/JKSV");
6464

6565
if(fexists("colBin"))
6666
loadCol();
@@ -99,11 +99,11 @@ void sysInit()
9999
if(useLang)
100100
CFGU_GetSystemLanguage(&sysLanguage);
101101

102-
createDir("/3ds/data/JKSM/Saves");
103-
createDir("/3ds/data/JKSM/ExtData");
104-
createDir("/3ds/data/JKSM/SysSave");
105-
createDir("/3ds/data/JKSM/Boss");
106-
createDir("/3ds/data/JKSM/Shared");
102+
createDir("/JKSV/Saves");
103+
createDir("/JKSV/ExtData");
104+
createDir("/JKSV/SysSave");
105+
createDir("/JKSV/Boss");
106+
createDir("/JKSV/Shared");
107107

108108
prepareMenus();
109109
}

JKSM_OG_SRC/source/util.cpp

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -163,22 +163,22 @@ std::u16string getPath(int mode)
163163
switch(mode)
164164
{
165165
case MODE_SAVE:
166-
return tou16("/3ds/data/JKSM/Saves/");
166+
return tou16("/JKSV/Saves/");
167167
break;
168168
case MODE_EXTDATA:
169-
return tou16("/3ds/data/JKSM/ExtData/");
169+
return tou16("/JKSV/ExtData/");
170170
break;
171171
case MODE_BOSS:
172-
return tou16("/3ds/data/JKSM/Boss/");
172+
return tou16("/JKSV/Boss/");
173173
break;
174174
case MODE_SYSSAVE:
175-
return tou16("/3ds/data/JKSM/SysSave/");
175+
return tou16("/JKSV/SysSave/");
176176
break;
177177
case MODE_SHARED:
178-
return tou16("/3ds/data/JKSM/Shared/");
178+
return tou16("/JKSV/Shared/");
179179
break;
180180
default:
181-
return tou16("/3ds/data/JKSM/");
181+
return tou16("/JKSV/");
182182
break;
183183
}
184184
}

0 commit comments

Comments
 (0)