Re: [Ohrrpgce] SVN: teeemcee/4101 diriswriteable wasn't really working properly on Windows when a director

2011-01-12 Thread Ralph Versteegen
On 13 January 2011 07:22, James Paige  wrote:
> On Wed, Jan 12, 2011 at 08:55:46AM -0800, subvers...@hamsterrepublic.com 
> wrote:
>> teeemcee
>> 2011-01-12 08:55:46 -0800 (Wed, 12 Jan 2011)
>> 371
>> diriswriteable wasn't really working properly on Windows when a directory on 
>> writeable media is made read-only, so I added a kludge for that.
>>
>> Doesn't Windows have a proper concept of unwriteable directories?
>>
>> (Also, I'm aware that Game will immediately crash if trying to play a game 
>> from read-only media, due to trying to write g_debug.txt. I have a branch 
>> for that...)
>
> I still kinda think that putting g_debug.txt in the game directory
> instead of some other fixed location was probably more trouble than it
> was worth.

I agree. And it was actually an accident. I made that change to the
current directory to change the saving location for exported files.
I've been meaning to give the log files a separate save location ever
since.

It would probably be a good idea to not use the current directory for
anything, except maybe for the default browse location.

> ---
> James
> ___
> Ohrrpgce mailing list
> ohrrpgce@lists.motherhamster.org
> http://lists.motherhamster.org/listinfo.cgi/ohrrpgce-motherhamster.org
>
___
Ohrrpgce mailing list
ohrrpgce@lists.motherhamster.org
http://lists.motherhamster.org/listinfo.cgi/ohrrpgce-motherhamster.org


Re: [Ohrrpgce] SVN: teeemcee/4101 diriswriteable wasn't really working properly on Windows when a director

2011-01-12 Thread James Paige
On Wed, Jan 12, 2011 at 08:55:46AM -0800, subvers...@hamsterrepublic.com wrote:
> teeemcee
> 2011-01-12 08:55:46 -0800 (Wed, 12 Jan 2011)
> 371
> diriswriteable wasn't really working properly on Windows when a directory on 
> writeable media is made read-only, so I added a kludge for that.
> 
> Doesn't Windows have a proper concept of unwriteable directories?
> 
> (Also, I'm aware that Game will immediately crash if trying to play a game 
> from read-only media, due to trying to write g_debug.txt. I have a branch for 
> that...)

I still kinda think that putting g_debug.txt in the game directory 
instead of some other fixed location was probably more trouble than it 
was worth.

---
James
___
Ohrrpgce mailing list
ohrrpgce@lists.motherhamster.org
http://lists.motherhamster.org/listinfo.cgi/ohrrpgce-motherhamster.org


Re: [Ohrrpgce] SVN: teeemcee/4101 diriswriteable wasn't really working properly on Windows when a director

2011-01-12 Thread Mike Caron

On 1/12/2011 11:55, subvers...@hamsterrepublic.com wrote:

teeemcee
2011-01-12 08:55:46 -0800 (Wed, 12 Jan 2011)
371
diriswriteable wasn't really working properly on Windows when a directory on 
writeable media is made read-only, so I added a kludge for that.

Doesn't Windows have a proper concept of unwriteable directories?


Not really. The best way to check is to try writing to a file, and see 
if it fails.


You could try explicitly checking security, media, etc., but that would 
be a lot of code and you'd definitely miss stuff.



(Also, I'm aware that Game will immediately crash if trying to play a game from 
read-only media, due to trying to write g_debug.txt. I have a branch for 
that...)

>

---
U   wip/util.bas
___
Ohrrpgce mailing list
ohrrpgce@lists.motherhamster.org
http://lists.motherhamster.org/listinfo.cgi/ohrrpgce-motherhamster.org


___
Ohrrpgce mailing list
ohrrpgce@lists.motherhamster.org
http://lists.motherhamster.org/listinfo.cgi/ohrrpgce-motherhamster.org


[Ohrrpgce] SVN: teeemcee/4101 diriswriteable wasn't really working properly on Windows when a director

2011-01-12 Thread subversion
teeemcee
2011-01-12 08:55:46 -0800 (Wed, 12 Jan 2011)
371
diriswriteable wasn't really working properly on Windows when a directory on 
writeable media is made read-only, so I added a kludge for that.

Doesn't Windows have a proper concept of unwriteable directories?

(Also, I'm aware that Game will immediately crash if trying to play a game from 
read-only media, due to trying to write g_debug.txt. I have a branch for 
that...)
---
U   wip/util.bas
___
Ohrrpgce mailing list
ohrrpgce@lists.motherhamster.org
http://lists.motherhamster.org/listinfo.cgi/ohrrpgce-motherhamster.org