Updated Windows port with latest core changes. Except now, the thing

compiles in Visual Studio and not MingW.

Words can't express how much I hate Windows development, and I'm
_THIS CLOSE_ to just making Visual C++ .Net an absolute requirement
and be done with it.  End of rant :_


git-svn-id: svn://svn.code.sf.net/p/stella/code/trunk@455 8b62c5a3-ac7e-4cc8-8f21-d9a121418aba
This commit is contained in:
stephena 2005-05-29 18:54:28 +00:00
parent 1dc74f75e9
commit 298c6f2456
4 changed files with 41 additions and 47 deletions

View File

@ -13,7 +13,7 @@
// See the file "license" for information on usage and redistribution of
// this file, and for a DISCLAIMER OF ALL WARRANTIES.
//
// $Id: FSNodeWin32.cxx,v 1.2 2005-05-19 18:42:38 stephena Exp $
// $Id: FSNodeWin32.cxx,v 1.3 2005-05-29 18:54:28 stephena Exp $
//
// Based on code from ScummVM - Scumm Interpreter
// Copyright (C) 2002-2004 The ScummVM project
@ -23,6 +23,7 @@
#include <stdlib.h>
#include <windows.h>
#include <tchar.h>
#include <direct.h>
#include "FSNode.hxx"
@ -243,3 +244,32 @@ AbstractFilesystemNode* WindowsFilesystemNode::parent() const
return p;
}
// - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
bool AbstractFilesystemNode::fileExists(const string& path)
{
// FIXME
return true;
}
// - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
bool AbstractFilesystemNode::dirExists(const string& path)
{
// FIXME
return true;
}
// - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
bool AbstractFilesystemNode::makeDir(const string& path)
{
_mkdir(path.c_str());
return true;
}
// - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
string AbstractFilesystemNode::modTime(const string& path)
{
// FIXME - use GetFileAttributesEx
return "";
}

View File

@ -13,12 +13,11 @@
// See the file "license" for information on usage and redistribution of
// this file, and for a DISCLAIMER OF ALL WARRANTIES.
//
// $Id: OSystemWin32.cxx,v 1.3 2005-05-26 18:56:58 stephena Exp $
// $Id: OSystemWin32.cxx,v 1.4 2005-05-29 18:54:28 stephena Exp $
//============================================================================
#include <sstream>
#include <fstream>
#include <direct.h>
#include "bspf.hxx"
#include "OSystem.hxx"
@ -96,7 +95,7 @@ void OSystemWin32::mainLoop()
break;
startTime = getTicks();
myEventHandler->poll();
myEventHandler->poll(startTime);
myFrameBuffer->update();
currentTime = getTicks();
@ -133,26 +132,3 @@ uInt32 OSystemWin32::getTicks()
{
return (uInt32) SDL_GetTicks() * 1000;
}
// - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
bool OSystemWin32::fileExists(const string& filename)
{
// FIXME - Since I don't have time to figure out the correct
// and fast 'Win32' way of doing this, I'll cheat a bit
ifstream in(filename.c_str());
if(in)
{
in.close();
return true;
}
return false;
}
// - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
bool OSystemWin32::makeDir(const string& path)
{
// FIXME
_mkdir(path.c_str());
return true;
}

View File

@ -13,7 +13,7 @@
// See the file "license" for information on usage and redistribution of
// this file, and for a DISCLAIMER OF ALL WARRANTIES.
//
// $Id: OSystemWin32.hxx,v 1.2 2005-05-25 17:17:38 stephena Exp $
// $Id: OSystemWin32.hxx,v 1.3 2005-05-29 18:54:28 stephena Exp $
//============================================================================
#ifndef OSYSTEM_WIN32_HXX
@ -26,7 +26,7 @@
This class defines Windows system specific settings.
@author Stephen Anthony
@version $Id: OSystemWin32.hxx,v 1.2 2005-05-25 17:17:38 stephena Exp $
@version $Id: OSystemWin32.hxx,v 1.3 2005-05-29 18:54:28 stephena Exp $
*/
class OSystemWin32 : public OSystem
{
@ -55,24 +55,6 @@ class OSystemWin32 : public OSystem
@return Current time in microseconds.
*/
virtual uInt32 getTicks();
/**
This method should be called to test whether the given file exists.
@param filename The filename to test for existence.
@return boolean representing whether or not the file exists
*/
virtual bool fileExists(const string& filename);
/**
This method should be called to create the specified directory.
@param path The directory to create
@return boolean representing whether or not the directory was created
*/
virtual bool makeDir(const string& path);
};
#endif

View File

@ -206,6 +206,9 @@ opengl32.lib"
<File
RelativePath="..\..\emucore\m6502\src\D6502.cxx">
</File>
<File
RelativePath="..\..\gui\Debugger.cxx">
</File>
<File
RelativePath="..\..\emucore\Deserializer.cxx">
</File>
@ -469,6 +472,9 @@ opengl32.lib"
<File
RelativePath="..\..\emucore\m6502\src\D6502.hxx">
</File>
<File
RelativePath="..\..\gui\Debugger.hxx">
</File>
<File
RelativePath="..\..\emucore\Deserializer.hxx">
</File>