You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: sys-botbase/source/main.c
+13-24
Original file line number
Diff line number
Diff line change
@@ -80,15 +80,6 @@ void __appInit(void)
80
80
setsysExit();
81
81
}
82
82
}
83
-
rc=fsInitialize();
84
-
if (R_FAILED(rc))
85
-
fatalThrow(rc);
86
-
rc=fsdevMountSdmc();
87
-
if (R_FAILED(rc))
88
-
fatalThrow(rc);
89
-
rc=timeInitialize();
90
-
if (R_FAILED(rc))
91
-
fatalThrow(rc);
92
83
rc=pmdmntInitialize();
93
84
if (R_FAILED(rc))
94
85
fatalThrow(rc);
@@ -107,24 +98,14 @@ void __appInit(void)
107
98
rc=viInitialize(ViServiceType_Default);
108
99
if (R_FAILED(rc))
109
100
fatalThrow(rc);
110
-
if (hosversionBefore(14,0,0)) // lbl max sessions when 14.0.0
111
-
{
112
-
rc=lblInitialize();
113
-
if (R_FAILED(rc))
114
-
fatalThrow(rc);
115
-
}
116
101
}
117
102
118
103
void__appExit(void)
119
104
{
120
-
fsdevUnmountAll();
121
-
fsExit();
122
105
smExit();
123
106
audoutExit();
124
-
timeExit();
125
107
socketExit();
126
108
viExit();
127
-
lblExit();
128
109
}
129
110
130
111
u64mainLoopSleepTime=50;
@@ -486,7 +467,7 @@ int argmain(int argc, char **argv)
486
467
}
487
468
488
469
if(!strcmp(argv[0], "getVersion")){
489
-
printf("2.11\n");
470
+
printf("2.2\n");
490
471
}
491
472
492
473
// follow pointers and print absolute offset (little endian, flip it yourself if required)
@@ -800,8 +781,12 @@ int argmain(int argc, char **argv)
800
781
rc=viSetDisplayPowerState(&temp_display, ViPowerState_NotScanning); // not scanning keeps the screen on but does not push new pixels to the display. Battery save is non-negligible and should be used where possible
801
782
svcSleepThread(1e+6l);
802
783
viCloseDisplay(&temp_display);
803
-
if (hosversionBefore(14,0,0))
804
-
lblSwitchBacklightOff(1ul);
784
+
785
+
rc=lblInitialize();
786
+
if (R_FAILED(rc))
787
+
fatalThrow(rc);
788
+
lblSwitchBacklightOff(1ul);
789
+
lblExit();
805
790
}
806
791
}
807
792
@@ -817,8 +802,12 @@ int argmain(int argc, char **argv)
0 commit comments