Author Topic: Order of loading code replacement files  (Read 146 times)

Offline Claude Diderich

  • Member
  • **
  • Posts: 79
  • Claude Diderich
    • View Profile
    • Claude Diderich Sports Pictures
Order of loading code replacement files
« on: March 29, 2026, 03:09:05 AM »
Are the following assumptions correct?
  • When manually loading code replacement files (Edit -> Settings -> Reload Code Replacements), the code replacement files are loaded in the order specified
  • When enabling Edit -> Settings -> Set Code Replacement: Automatically Reload Code replacement files when they change, only the changed file is reloaded (and subsequent files in the list are not reloaded)
I am asking this because I have multiple code replacement files that re-define certain codes, e.g. core.txt contains =&cap=, the text for a generic captions, tennis.txt (following core.txt in the order) re-defines =&cap=, the text for a specific tennis caption, and tennis.rc-finals-men.txt again re-defines the text for a caption from the finals. For non-finals matches I simply do not load tennis.rc-finals-men.txt and still get a correct caption for tennis using =&cap=. And if I want to caption a non-tennis event I simply disable the tennis specific CR files and still can use =&cap= to get the generic text of my caption.
Claude Diderich, sports photographer, member of AIPS and sportpress.ch

Offline Kirk Baker

  • Senior Software Engineer
  • Camera Bits Staff
  • Superhero Member
  • *****
  • Posts: 25627
    • View Profile
    • Camera Bits, Inc.
Re: Order of loading code replacement files
« Reply #1 on: March 30, 2026, 09:27:27 AM »
Claude,

Are the following assumptions correct?
  • When manually loading code replacement files (Edit -> Settings -> Reload Code Replacements), the code replacement files are loaded in the order specified
  • When enabling Edit -> Settings -> Set Code Replacement: Automatically Reload Code replacement files when they change, only the changed file is reloaded (and subsequent files in the list are not reloaded)

#1 Yes.
#2 No, all files are reloaded in the order that they're listed when any one of them changes and automatic reloading is active.

HTH,

-Kirk

Offline Claude Diderich

  • Member
  • **
  • Posts: 79
  • Claude Diderich
    • View Profile
    • Claude Diderich Sports Pictures
Re: Order of loading code replacement files
« Reply #2 on: March 31, 2026, 02:50:56 AM »
Thanks Kirk for the info.
3. Am I correct then, that if I select/deselect one or more code replacement files, all selected files are reloaded in the order listed?
Claude Diderich, sports photographer, member of AIPS and sportpress.ch

Offline Kirk Baker

  • Senior Software Engineer
  • Camera Bits Staff
  • Superhero Member
  • *****
  • Posts: 25627
    • View Profile
    • Camera Bits, Inc.
Re: Order of loading code replacement files
« Reply #3 on: March 31, 2026, 09:30:09 AM »
Claude,

Thanks Kirk for the info.
3. Am I correct then, that if I select/deselect one or more code replacement files, all selected files are reloaded in the order listed?

Yes, it always reloads all active files in the order listed whenever it reloads.

-Kirk