Skip to content

Commit 5cf735e

Browse files
authored
Merge pull request #88 from RoiKlevansky/feat/finalize-piepline
Add pipeline for "finalize"
2 parents c61b2bf + 6a79b6c commit 5cf735e

File tree

2 files changed

+37
-5
lines changed

2 files changed

+37
-5
lines changed
Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
name: Build finalize (3DS)
2+
3+
on:
4+
push:
5+
paths:
6+
- 'finalize/**'
7+
pull_request:
8+
paths:
9+
- 'finalize/**'
10+
11+
jobs:
12+
build:
13+
runs-on: ubuntu-latest
14+
container:
15+
image: devkitpro/devkitarm:20260219
16+
17+
steps:
18+
- name: Checkout repository
19+
uses: actions/checkout@v4
20+
21+
- name: Build finalize module
22+
working-directory: finalize
23+
run: make
24+
25+
- name: Upload build artifacts
26+
uses: actions/upload-artifact@v4
27+
with:
28+
name: finalize-3dsx
29+
path: |
30+
finalize/custom-install-finalize.3dsx
31+
finalize/custom-install-finalize.elf
32+
finalize/custom-install-finalize.smdh

finalize/source/main.c

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -294,27 +294,27 @@ void finalize_install(void)
294294

295295
ticket_buf.title_id_be = __builtin_bswap64(entries[i].title_id);
296296

297-
res = AM_InstallTicketBegin(&ticketHandle);
297+
res = AMNET_InstallTicketBegin(&ticketHandle);
298298
if (R_FAILED(res))
299299
{
300300
printf("Failed to begin ticket install: %08lx\n", res);
301-
AM_InstallTicketAbort(ticketHandle);
301+
AMNET_InstallTicketAbort(ticketHandle);
302302
goto exit;
303303
}
304304

305305
res = FSFILE_Write(ticketHandle, NULL, 0, &ticket_buf, sizeof(struct ticket_dumb), 0);
306306
if (R_FAILED(res))
307307
{
308308
printf("Failed to write ticket: %08lx\n", res);
309-
AM_InstallTicketAbort(ticketHandle);
309+
AMNET_InstallTicketAbort(ticketHandle);
310310
goto exit;
311311
}
312312

313-
res = AM_InstallTicketFinish(ticketHandle);
313+
res = AMNET_InstallTicketFinish(ticketHandle);
314314
if (R_FAILED(res))
315315
{
316316
printf("Failed to finish ticket install: %08lx\n", res);
317-
AM_InstallTicketAbort(ticketHandle);
317+
AMNET_InstallTicketAbort(ticketHandle);
318318
goto exit;
319319
}
320320

0 commit comments

Comments
 (0)