Skip to content

Commit 6a3d785

Browse files
committed
Minor changes before next release
- Make sure version is displayed as v1.0.0 - Set language to English by default. - Minor cia info changes
1 parent bbc8efa commit 6a3d785

File tree

3 files changed

+9
-9
lines changed

3 files changed

+9
-9
lines changed

resources/cia.rsf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -190,7 +190,7 @@ AccessControlInfo:
190190

191191
SystemControlInfo:
192192
SaveDataSize: 0KB # Change if the app uses savedata
193-
RemasterVersion: $(APP_VERSION_MAJOR)
193+
RemasterVersion: 1
194194
StackSize: 0x40000
195195

196196
# Modules that run services listed above should be included below

source/cia.c

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -214,20 +214,20 @@ Cia getCiaInfo(const char * path, FS_MediaType mediaType)
214214
char buffer[512];
215215
if(smdh.titles[language].shortDescription != NULL)
216216
{
217-
memset(buffer, 0, 0x40);
218-
utfn2ascii(buffer, smdh.titles[language].shortDescription, 0x40);
217+
memset(buffer, 0, 64 + 1);
218+
utfn2ascii(buffer, smdh.titles[language].shortDescription, 64 + 1);
219219
strcpy(cia.title, buffer);
220220
}
221221
if(smdh.titles[language].longDescription != NULL)
222222
{
223-
memset(buffer, 0, 0x80);
224-
utfn2ascii(buffer, smdh.titles[language].longDescription, 0x80);
223+
memset(buffer, 0, 128 + 1);
224+
utfn2ascii(buffer, smdh.titles[language].longDescription, 128 + 1);
225225
strcpy(cia.description, buffer);
226226
}
227227
if(smdh.titles[language].publisher != NULL)
228228
{
229-
memset(buffer, 0, 0x40);
230-
utfn2ascii(buffer, smdh.titles[language].publisher, 0x40);
229+
memset(buffer, 0, 64 + 1);
230+
utfn2ascii(buffer, smdh.titles[language].publisher, 64 + 1);
231231
strcpy(cia.author, buffer);
232232
}
233233
}
@@ -371,7 +371,7 @@ int displayCIA(const char * path)
371371
digitalTime(346, 1);
372372

373373
sf2d_draw_texture(largeIcon, 15, 28);
374-
sftd_draw_textf(font, 78, 28, RGBA8(0, 0, 0, 255), 11, "%s v%u (0x%016llX)", fileName, cia.version, cia.titleID);
374+
sftd_draw_textf(font, 78, 28, RGBA8(0, 0, 0, 255), 11, "%s v%u (%016llX)", fileName, cia.version, cia.titleID);
375375
sftd_draw_textf(font, 78, 44, RGBA8(0, 0, 0, 255), 11, "%s %s by %s", platformString(cia.platform), categoryString(cia.category), cia.author);
376376
sftd_draw_textf(font, 78, 60, RGBA8(0, 0, 0, 255), 11, "%s", size);
377377

source/main.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@ void initServices()
119119

120120
//APT_SetAppCpuTimeLimit(80);
121121

122-
language = getLanguage();
122+
language = 1; //getLanguage();
123123

124124
sprintf(welcomeMsg, "%s %s! %s", lang_welcome[language][0], getUsername(), lang_welcome[language][1]);
125125

0 commit comments

Comments
 (0)