diff options
| author | XTra.KrazzY <XTra.KrazzY@gmail.com> | 2008-08-26 23:40:18 +0000 |
|---|---|---|
| committer | XTra.KrazzY <XTra.KrazzY@gmail.com> | 2008-08-26 23:40:18 +0000 |
| commit | 7a2cdef9124864fe5ca3a09ceb89883f26d3c5d1 (patch) | |
| tree | 42be78f304174c3205fa9aed1b8f75f0a7f0282a /Source/Core/VideoCommon | |
| parent | 734586a0ab77927cc20851d60f5f5324920b6c6a (diff) | |
Preliminary video save state support. More work is necessary, this is just some infrastructure for inter-project communication.
git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@332 8ced0084-cf51-0410-be5f-012b33b47a6e
Diffstat (limited to 'Source/Core/VideoCommon')
| -rw-r--r-- | Source/Core/VideoCommon/Src/SConscript | 1 | ||||
| -rw-r--r-- | Source/Core/VideoCommon/Src/VideoState.cpp | 31 | ||||
| -rw-r--r-- | Source/Core/VideoCommon/Src/VideoState.h | 26 |
3 files changed, 58 insertions, 0 deletions
diff --git a/Source/Core/VideoCommon/Src/SConscript b/Source/Core/VideoCommon/Src/SConscript index 2596e7db13..cab758ea50 100644 --- a/Source/Core/VideoCommon/Src/SConscript +++ b/Source/Core/VideoCommon/Src/SConscript @@ -8,6 +8,7 @@ files = [ "XFMemory.cpp", "XFBConvert.cpp", "Fifo.cpp", + "VideoState.cpp", ] env_common = env.Copy() diff --git a/Source/Core/VideoCommon/Src/VideoState.cpp b/Source/Core/VideoCommon/Src/VideoState.cpp new file mode 100644 index 0000000000..ab41047b44 --- /dev/null +++ b/Source/Core/VideoCommon/Src/VideoState.cpp @@ -0,0 +1,31 @@ +// Copyright (C) 2003-2008 Dolphin Project.
+
+// This program is free software: you can redistribute it and/or modify
+// it under the terms of the GNU General Public License as published by
+// the Free Software Foundation, version 2.0.
+
+// This program is distributed in the hope that it will be useful,
+// but WITHOUT ANY WARRANTY; without even the implied warranty of
+// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+// GNU General Public License 2.0 for more details.
+
+// A copy of the GPL 2.0 should have been included with the program.
+// If not, see http://www.gnu.org/licenses/
+
+// Official SVN repository and contact information can be found at
+// http://code.google.com/p/dolphin-emu/
+
+#include "VideoState.h"
+#include "TextureDecoder.h"
+
+void VideoCommon_SaveState() {
+#ifdef WIN32
+ MessageBoxA(NULL, "SAVING STATE", "From Common Video Library", NULL);
+#endif
+}
+
+void VideoCommon_LoadState() {
+#ifdef WIN32
+ MessageBoxA(NULL, "LOADING STATE", "From Common Video Library", NULL);
+#endif
+}
\ No newline at end of file diff --git a/Source/Core/VideoCommon/Src/VideoState.h b/Source/Core/VideoCommon/Src/VideoState.h new file mode 100644 index 0000000000..cccf542849 --- /dev/null +++ b/Source/Core/VideoCommon/Src/VideoState.h @@ -0,0 +1,26 @@ +// Copyright (C) 2003-2008 Dolphin Project.
+
+// This program is free software: you can redistribute it and/or modify
+// it under the terms of the GNU General Public License as published by
+// the Free Software Foundation, version 2.0.
+
+// This program is distributed in the hope that it will be useful,
+// but WITHOUT ANY WARRANTY; without even the implied warranty of
+// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+// GNU General Public License 2.0 for more details.
+
+// A copy of the GPL 2.0 should have been included with the program.
+// If not, see http://www.gnu.org/licenses/
+
+// Official SVN repository and contact information can be found at
+// http://code.google.com/p/dolphin-emu/
+
+#ifndef __VIDEOSTATE_H
+#define __VIDEOSTATE_H
+
+#include "Common.h"
+
+void VideoCommon_SaveState();
+void VideoCommon_LoadState();
+
+#endif
\ No newline at end of file |
