ludic.update: update_notes answers only for the language update_notes_for kept (none for another), and the tests follow the contract 3ac1179 set - the notes are kept by update_notes_for and whether this copy is installed is worked out when the updater is configured; they read the old per-call answers and failed 2 of 12
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
parent
359de7bfe5
commit
313f95cd1f
3 changed files with 19 additions and 4 deletions
|
|
@ -37,8 +37,12 @@ export function update_latest(update_st: UpdateState) -> string { return update_
|
|||
export function update_shown(update_st: UpdateState) -> bool { return update_st.update__ask == UPDATE_NEWER or update_st.update__ask == UPDATE_CURRENT }
|
||||
export function update_fresh(update_st: UpdateState) -> bool { return update_st.update__ask == UPDATE_NEWER }
|
||||
|
||||
# the notes in the language the game asked for (update_notes_for), else English, else none
|
||||
export function update_notes(update_st: UpdateState, lang: string) -> []string { return update_st.update__notes_list }
|
||||
# the notes update_notes_for last kept, for that language (else English); none for a language it was
|
||||
# not asked for - a question makes nothing, so it cannot fill them itself
|
||||
export function update_notes(update_st: UpdateState, lang: string) -> []string {
|
||||
if lang != update_st.update__notes_lang { return update_st.update__notes_none }
|
||||
return update_st.update__notes_list
|
||||
}
|
||||
|
||||
# the notes kept for this language: filled when the version or the language changes, so the panel
|
||||
# reading them every frame makes nothing
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue