mirror of
https://github.com/switchbrew/libnx.git
synced 2025-07-06 19:32:15 +02:00
Remove unnecessary array
This commit is contained in:
parent
f41f0bea7a
commit
f816ac52d5
@ -24,15 +24,12 @@ void errorShow(ErrorConfig* c) {
|
|||||||
AppletStorage errStor;
|
AppletStorage errStor;
|
||||||
LibAppletArgs errArgs;
|
LibAppletArgs errArgs;
|
||||||
|
|
||||||
u8 args[0x1018] = {0};
|
|
||||||
memcpy(&args, c, 0x1018);
|
|
||||||
|
|
||||||
appletCreateLibraryApplet(&err, AppletId_error, LibAppletMode_AllForeground);
|
appletCreateLibraryApplet(&err, AppletId_error, LibAppletMode_AllForeground);
|
||||||
libappletArgsCreate(&errArgs, 1);
|
libappletArgsCreate(&errArgs, 1);
|
||||||
libappletArgsPush(&errArgs, &err);
|
libappletArgsPush(&errArgs, &err);
|
||||||
|
|
||||||
appletCreateStorage(&errStor, 4120);
|
appletCreateStorage(&errStor, 4120);
|
||||||
appletStorageWrite(&errStor, 0, args, 0x1018);
|
appletStorageWrite(&errStor, 0, c, 0x1018);
|
||||||
|
|
||||||
appletHolderPushInData(&err, &errStor);
|
appletHolderPushInData(&err, &errStor);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user