Page 1 of 1

UserResidents

Posted: Sat Jan 31, 2026 3:10 pm
by akee
Please allow constants (.res] files to be included from:

Code: Select all

../PureBasic/Residents/UserResidents
Thank you.

Re: UserResidents

Posted: Sun Feb 01, 2026 10:44 am
by Bisonte
A little question : Why you need another path ?

Re: UserResidents

Posted: Mon Feb 02, 2026 12:19 pm
by Axolotl
I guess it's to separate the user residents from the originals.
Advantage: you don't have to check for overwriting!?

BTW: I use this code to be on the safe side.....

Code: Select all

#OriginalResFiles$ = "Expat.res Interface.res InterfaceDX.res OpenGL.res PureBasic.res Scintilla.res WebView2.res Windows.res" 

Procedure IsOutputFilenameAnOriginal(SourceFilename$)  ; BOOL 
  Protected outFile$ 

  outFile$ = GetFilePart(SourceFilename$, #PB_FileSystem_NoExtension) + ".res"  ; output filename !! 
  If FindString(#OriginalResFiles$, outFile$) ; <== Safety Check => don't overwrite the PB original residents files 
    ProcedureReturn #True 
  EndIf 
  ProcedureReturn #False 
EndProcedure