Author Topic: Experiment: Moving OS/2 Graphic/MM Resources  (Read 3954 times)

Martin Iturbide

  • OS2World NewsMaster
  • Global Moderator
  • Hero Member
  • *****
  • Posts: 5022
  • Karma: +44/-1
  • Your Friend Wil Declares...
    • View Profile
    • Martin's Personal Blog
Experiment: Moving OS/2 Graphic/MM Resources
« on: July 12, 2024, 04:58:47 pm »
Hello

I want to make a little experiment of moving the graphics resources like BMPs, Pointers, ScreenSavers to a different folder structure. This is just an experiment to for me try it out and document things on the wiki.

I'm looking forward to see what problems gives me ArcaOS-OS/2 and see if a workaround can be found. I will be asking for help here and you are welcome to try it yourself too, but remember I'm not pointing a gun for everybody to try it out.

I want to start with Pointers. I want to move C:\OS2\POINTERS to C:\RESOURCES\POINTERS as part of the experiment. My first issue is that the "Load Set" on the "Pointers" settings will break up. Is this locations stored somewhere on an INI file that can be updated to the new path?

Regards
Martin Iturbide
OS2World NewsMaster
... just share the dream.

Lars

  • Hero Member
  • *****
  • Posts: 1367
  • Karma: +70/-0
    • View Profile
Re: Experiment: Moving OS/2 Graphic/MM Resources
« Reply #1 on: July 12, 2024, 07:54:26 pm »
The Mouse Setup object is managed by WPS class "WPMouse". That class is implemented in DLL WPCONFIG.DLL.

If I unpack WPCONFIG.DLL, I find this text string in it:
STARTFOLDER=?:\OS2\POINTERS

It is therefore hard coded and cannot be changed.

Note: The STARTFOLDER is a setup string for the "wpclsFindOneObject" class method of WPObject for the top level folder to search from. So you will only be able to search under that folder.
« Last Edit: July 12, 2024, 08:05:14 pm by Lars »

Martin Iturbide

  • OS2World NewsMaster
  • Global Moderator
  • Hero Member
  • *****
  • Posts: 5022
  • Karma: +44/-1
  • Your Friend Wil Declares...
    • View Profile
    • Martin's Personal Blog
Re: Experiment: Moving OS/2 Graphic/MM Resources
« Reply #2 on: July 13, 2024, 05:09:09 pm »
Thanks for the feedback Lars.

I get that is hardcoded on WPConfig.DLL.

Just one question, when you say "If I unpack WPCONFIG.DLL", what procedure are you doing there?

Regards
Martin Iturbide
OS2World NewsMaster
... just share the dream.

Dave Yeo

  • Hero Member
  • *****
  • Posts: 5084
  • Karma: +117/-1
    • View Profile
Re: Experiment: Moving OS/2 Graphic/MM Resources
« Reply #3 on: July 14, 2024, 07:25:12 pm »
I think "lxlite /x file"

Martin Iturbide

  • OS2World NewsMaster
  • Global Moderator
  • Hero Member
  • *****
  • Posts: 5022
  • Karma: +44/-1
  • Your Friend Wil Declares...
    • View Profile
    • Martin's Personal Blog
Re: Experiment: Moving OS/2 Graphic/MM Resources
« Reply #4 on: July 15, 2024, 05:06:03 pm »
Just one question, when you say "If I unpack WPCONFIG.DLL", what procedure are you doing there?

Sorry, I should explain myself better.
The right question is - What procedure are you doing there to know the information of the DLL that shows you the text string "STARTFOLDER=?:\OS2\POINTERS" from WPConfig.DLL?

I want to see if I can learn more about what information can I get from DLLs.

Regards
Martin Iturbide
OS2World NewsMaster
... just share the dream.

Dave Yeo

  • Hero Member
  • *****
  • Posts: 5084
  • Karma: +117/-1
    • View Profile
Re: Experiment: Moving OS/2 Graphic/MM Resources
« Reply #5 on: July 15, 2024, 05:56:49 pm »
After unpacking, preferably a copy of the DLL, you can run strings on it, piping the results through less,
Code: [Select]
strings WPCONFIG.DLL | less
And see all text in the DLL. Strings is not perfect so you do get some garbage mixed in. There's a lot of strings in this DLL.
Or if you know what you are looking for, use grep,
Code: [Select]
H:\tmp>strings WPCONFIG.DLL  | grep "POINTERS"
NAMEFILTER=*;CLASSLIST=WPPointer;STARTFOLDER=?:\OS2\POINTERS;DEFAULTCRITERIA=YES

NAMEFILTER=*;CLASSLIST=WPFolder;STARTFOLDER=?:\OS2\POINTERS;DEFAULTCRITERIA=YES DIALOG=NO