Help Changing Source to read LibV2 from LibV1

Xx69xX

Golden Oldie
Golden Oldie
Dec 2, 2005
2,150
154
170
So i am having issues changing my source from reading Lib1s- Lib2. (before you mock me i know V3 would be ideal, however on a different mission at the moment)

Is this a massive job?

I am aware there is just a simple Line....

public const int LibVersion = 2;

However, i have no luck when changing this.

How much more work is involved?

Cheers
 

Far

tsniffer
Staff member
Developer
May 19, 2003
20,179
30
2,783
540
if you just copy the MLibrary and MImage classes i think that should pretty much do it. Probably only the Initialize() method from MLibrary and its properties as i expect you're not using SlimDx.

If you copy the latest source its backwards compatible with v3 and v2 libs.
 
  • Like
Reactions: Xx69xX
Upvote 0

Xx69xX

Golden Oldie
Golden Oldie
Dec 2, 2005
2,150
154
170
if you just copy the MLibrary and MImage classes i think that should pretty much do it. Probably only the Initialize() method from MLibrary and its properties as i expect you're not using SlimDx.

If you copy the latest source its backwards compatible with v3 and v2 libs.
Thanks @Far.

I am using SlimDx, will this make the changes significant?
 
Upvote 0

Far

tsniffer
Staff member
Developer
May 19, 2003
20,179
30
2,783
540
Just lift the whole mlibrary class if you are then as should just work
 
  • Like
Reactions: Xx69xX
Upvote 0

Xx69xX

Golden Oldie
Golden Oldie
Dec 2, 2005
2,150
154
170
Just lift the whole mlibrary class if you are then as should just work
Worked almost perfectly, had to delete some "frame" lines as it wouldnt have it, but for now its what i needed just testing images, so appreciate your time as always @Far
 
  • Like
Reactions: Far
Upvote 0