This days I write a small toll ,that simulate some standart copy-protection methods common used in games.Here is the result:
Inside wine with CD in drive: Proceed with drive e: Drive Type: CD-ROM Drive size = 729,694,208 bytes Drive is Read-Only Volume Label: KNOPPIX Volume Serial Number: 216658985 File System Type: CDFS File System Properties... ...supports long file names
I/O error 19 Write errors present!
Inside windows with CD in drive: Proceed with drive d:
Drive Type: CD-ROM
Drive size = 729 694 208 bytes
Drive is Read-Only
Volume Label: KNOPPIX
Volume Serial Number: 216658985
File System Type: CDFS
File System Properties...
...supports case sensitive file names
...preserves and enforces ACLs
...supports file-based compression
...resides on a compressed volume
...supports long file names
File access denied
Write errors present!
In this test only type of error is different ,when create file.I/O error 19 is correct when writing to protected floppy.
Wine -with dir masked as CD. Proceed with drive e: Drive Type: CD-ROM Drive size = 10,733,613,056 bytes Drive free space = 4,203,012,096 bytes No Volume Label Volume Serial Number: 0 File System Type: CDFS File System Properties... ...supports long file names
File access denied Write errors present!
Here the label and the serial number is incorect.Also the program can write to directory.To prevent this I made it read-only.DiskFree/DiskSize show the partition parameters.I think improving this will be very good idea.
Also when no disk inserted in windows he returned I/O error 21 .In the same case wine return partition properties and no label.
I will attach this tool if needed.
Tuesday, July 11, 2006, 7:51:32 AM, Plamen Hristov wrote:
This days I write a small toll ,that simulate some standart copy-protection methods common used in games.Here is the result:
Inside wine with CD in drive: Proceed with drive e:
Wine -with dir masked as CD. Proceed with drive e:
[results identical - skipped]
Here the label and the serial number is incorect.Also the program can write to directory.To prevent this I made it read-only.DiskFree/DiskSize show the partition parameters.I think improving this will be very good idea.
Also when no disk inserted in windows he returned I/O error 21 .In the same case wine return partition properties and no label.
Ok so what is the problem here? Wine properly behaves when used with real CD-ROM. And you get different results when you using HDD as the emulated drive.
Vitaliy
Vitaliy Margolen <wine-devel <at> kievinfo.com> writes:
Ok so what is the problem here? Wine properly behaves when used with real CD-ROM. And you get different results when you using HDD as the emulated drive.
Vitaliy
Not precisely.At least error type is incorect (I/O 19) with real CD-ROM. Here is the toy http://rapidshare.de/files/25616451/Q2Project.zip.html .
It is not just CD emulation ,although it will be nice to implement. But currently ,there is no comment that it work only with CD drives. Another example - I can not change drive settings in winecfg ,when CD is removed (wine 0.9.16). There is no warning that settings isn't saved. Fixing this things will make wine more user friendly and eventually save some investigation times.
Vitaliy Margolen <wine-devel <at> kievinfo.com> writes:
Ok so what is the problem here? Wine properly behaves when used with real CD-ROM. And you get different results when you using HDD as the emulated drive.
Vitaliy
Not precisely.At least error is incorect (I/O 19) with real CD-ROM.This is not the only one problem.Winecfg won't save changes to drive settings when CD is removed.There is no message that they does not apply (wine 0.9.16).Neither that CD_ROM type work only with real CD drive.This may be confusing for newbies.I just say to make it more user friendly.Some comments in box should be enough at this point.That's why I make noise here.
Abaut emulated drive - there is more popular utils for windows.Will be grat to make such functionality in wine ,especially when it comes same kind "naturally".
Here is the toy: http://rapidshare.de/files/25616451/Q2Project.zip.html
regards