[Scummvm-cvs-logs] SF.net SVN: scummvm: [24876] scummvm/trunk/common
darkfiber at users.sourceforge.net
darkfiber at users.sourceforge.net
Tue Dec 19 02:06:48 CET 2006
Revision: 24876
http://scummvm.svn.sourceforge.net/scummvm/?rev=24876&view=rev
Author: darkfiber
Date: 2006-12-18 17:06:45 -0800 (Mon, 18 Dec 2006)
Log Message:
-----------
Added Apple IIgs as machine type for AGI engine
Modified Paths:
--------------
scummvm/trunk/common/util.cpp
scummvm/trunk/common/util.h
Modified: scummvm/trunk/common/util.cpp
===================================================================
--- scummvm/trunk/common/util.cpp 2006-12-18 20:38:31 UTC (rev 24875)
+++ scummvm/trunk/common/util.cpp 2006-12-19 01:06:45 UTC (rev 24876)
@@ -193,6 +193,8 @@
{"segacd", "segacd", "SegaCD", kPlatformSegaCD},
{"windows", "win", "Windows", kPlatformWindows},
+ {"2GS", "2gs", "Apple IIgs", kPlatformApple2GS },
+
{0, 0, "Default", kPlatformUnknown}
};
@@ -320,7 +322,7 @@
void enableSpecialDebugLevelList(const String &option) {
uint start = 0;
uint end = 0;
-
+
const char *str = option.c_str();
for (end = start + 1; end <= option.size(); ++end) {
if (str[end] == ',' || end == option.size()) {
Modified: scummvm/trunk/common/util.h
===================================================================
--- scummvm/trunk/common/util.h 2006-12-18 20:38:31 UTC (rev 24875)
+++ scummvm/trunk/common/util.h 2006-12-19 01:06:45 UTC (rev 24876)
@@ -37,7 +37,7 @@
template<typename T> inline T ABS (T x) { return (x>=0) ? x : -x; }
template<typename T> inline T MIN (T a, T b) { return (a<b) ? a : b; }
template<typename T> inline T MAX (T a, T b) { return (a>b) ? a : b; }
-template<typename T> inline T CLIP (T v, T amin, T amax)
+template<typename T> inline T CLIP (T v, T amin, T amax)
{ if (v < amin) return amin; else if (v > amax) return amax; else return v; }
/**
@@ -147,6 +147,8 @@
kPlatform3DO,
// kPlatformPCEngine,
+ kPlatformApple2GS,
+
kPlatformUnknown = -1
};
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
More information about the Scummvm-git-logs
mailing list