In the SD Card library that you gave me, the library fatfs only supports the 8.3 format. I now have a new fatfs library, which supports long file names, I just have to implement it
![Smile :)](./images/smilies/icon_e_smile.gif)
Code: Select all
function openFile(fn, wname)
local ext = string.lower(string.sub(fn, -3));
local win = getWin(wname);
local file = parsePath(win.path) .. "/" .. fn;
-- print("Open file with extension - " .. ext);
if ext == "bin" then
if DS.dsystem("exec -bin " .. file) ~= DS.CMD_OK then
DS.ToggleConsole();
end
Code: Select all
elseif ext == "mp3" then
if DS.dsystem("exec \modules\audio\mp3.klf " .. file) ~= DS.CMD_OK then
DS.ToggleConsole();
end
Code: Select all
<module src="../../modules/audio/mp3.klf" />
Code: Select all
elseif ext == "mp3" then
if DS.dsystem("mp3 -flags" .. file) ~= DS.CMD_OK then
DS.ToggleConsole();
end
EDIT:SWAT wrote:Hmm this is strange, file manager work for me on "DreamShell on PC Loader v1.2".
Right. That solved the problem!SWAT wrote:The character '-' works on numpad.
Code: Select all
-- local width = 768
-- local height = 576
Code: Select all
local bpp = 16
Mouse normal work on DC, nullDC badly emulate mouse.OVERRiDE_DC wrote: I changed the controller plug-in on nullDC and now I can access file manager okay! ( Mouse still behaves strangely though... )
You can use all resolutions supported by DC SDL: 800x600, 768x576, 768x480, 640x480, 320x240, 256x256OVERRiDE_DC wrote: And, Im currently making some tests with this current beta.
In startup.lua, initializing the screen:Have you gotten such a resolution to work on DC? Ive tested, and it just crashes nullDC when set higher than 640x480.Code: Select all
-- local width = 768 -- local height = 576
And, would there be a decrease in CPU usage to use a "Widescreen" mode, say at 640x360?
If it does decrease CPU usage to decrease screen resolution, maybe it coulde be implemented in your video player module to automatically adjust the output screen size depending on the video resolution.
For example, if the video resolution is (640x272) or (320x136) the output screen will be set to 640x272.
Just a thought, Also:
Set to 24 runs horribly slow.Code: Select all
local bpp = 16
Set to 32 runs okay to desktop, but seems to freeze when loading "File Manager"
So, why does 32bit mode run better than 24bit mode?
I just found out that numpad 2,4,6,8 work best for mouse using nullDCSWAT wrote:Mouse normal work on DC, nullDC badly emulate mouse.
Code: Select all
DS.SDL_DC_ShowAskHz(DS.SDL_FALSE);
DS.SDL_DC_Default60Hz(DS.SDL_FALSE);
DS.SDL_DC_VerticalWait(DS.SDL_FALSE);
DS.SDL_DC_SetVideoDriver(DS.SDL_DC_DIRECT_VIDEO);
Code: Select all
DS.SDL_DC_ShowAskHz(DS.SDL_FALSE);
DS.SDL_DC_Default60Hz(DS.SDL_TRUE);
DS.SDL_DC_VerticalWait(DS.SDL_FALSE);
DS.SDL_DC_SetVideoDriver(DS.SDL_DC_DMA_VIDEO);
Yes, so much better. I just forgot to change. In nullDC does not work DMA video mode.OVERRiDE_DC wrote:
Another thing, for NTSC Dreamcast, is it best to change:to:Code: Select all
DS.SDL_DC_ShowAskHz(DS.SDL_FALSE); DS.SDL_DC_Default60Hz(DS.SDL_FALSE); DS.SDL_DC_VerticalWait(DS.SDL_FALSE); DS.SDL_DC_SetVideoDriver(DS.SDL_DC_DIRECT_VIDEO);
Code: Select all
DS.SDL_DC_ShowAskHz(DS.SDL_FALSE); DS.SDL_DC_Default60Hz(DS.SDL_TRUE); DS.SDL_DC_VerticalWait(DS.SDL_FALSE); DS.SDL_DC_SetVideoDriver(DS.SDL_DC_DMA_VIDEO);
I include vcdc 0.2 in beta 3, but no promise that will work wellOVERRiDE_DC wrote: And I tested vfdc vplay in DS3.8x, and video plays great on mpeg2 but audio is only garbage sounds.
And when I use command "vplay -vcd" with a vcd in the drive, it crashes DC.
Will this be fixed in vfdc2.0 in DS4 beta3? No VCD not a big deal, but Mpeg2 needs audio!
Okay, but I assume you mean vFdc 0.2, not vCdc 0.2, right?SWAT wrote:I include vcdc 0.2 in beta 3, but no promise that will work well
Nice! I'm glad to hear that it'll be used in other projects! I don't think there have been significant changes to libmpeg2 since I downloaded the version I used for VC/DC, but if you want to use the latest svn version of libmpeg2 it should probably work without changes as long as you don't overwrite anything in the libvo folder that comes with vc/dc.SWAT wrote:No, i mean VC/DC 0.2 - http://www.dcemu.co.uk/vbulletin/showth ... p?t=205946
VC/DC use updated vfdc library.
OK just had to clarify about VC/DCSWAT wrote:No, i mean VC/DC 0.2 - http://www.dcemu.co.uk/vbulletin/showth ... p?t=205946
VC/DC use updated vfdc library.
In the future I will try to implement the ffmpeg plugin. But not in Beta 3. Who Can it do for me before?
OVERRiDE_DC wrote:OK just had to clarify about VC/DCSWAT wrote:No, i mean VC/DC 0.2 - http://www.dcemu.co.uk/vbulletin/showth ... p?t=205946
VC/DC use updated vfdc library.
In the future I will try to implement the ffmpeg plugin. But not in Beta 3. Who Can it do for me before?So, SMPEG is not going to be utilized, at all?
If it helps, here is FFMpeg port from DCPlaya2Beta2, compiled elf format:
http://www.mediafire.com/download.php?2dnorcywjkn
And souce code they provided, some has been updated since beta2 was released...
http://dcplaya.cvs.sourceforge.net/view ... np/ffmpeg/
Ok, thanks.OneThirty8 wrote:Nice! I'm glad to hear that it'll be used in other projects! I don't think there have been significant changes to libmpeg2 since I downloaded the version I used for VC/DC, but if you want to use the latest svn version of libmpeg2 it should probably work without changes as long as you don't overwrite anything in the libvo folder that comes with vc/dc.SWAT wrote:No, i mean VC/DC 0.2 - http://www.dcemu.co.uk/vbulletin/showth ... p?t=205946
VC/DC use updated vfdc library.
Too bad news about SMPEG! But it will be nice for vcdc.0.2 to have SD support.SWAT wrote:I think that smpeg too slow, yet nothing is going to do with it.
I need the source ffmpeg. The module of DC Playa did not come to DreamShell.
At DC Playa cvs no source library of ffmpeg, there is only a part of the module.