From 6c46f3ba26b5cbfe2aa00b9de345ee360dd1af82 Mon Sep 17 00:00:00 2001 From: Stuart George Date: Tue, 19 Dec 2006 01:06:45 +0000 Subject: Added Apple IIgs as machine type for AGI engine svn-id: r24876 --- common/util.cpp | 4 +++- common/util.h | 4 +++- 2 files changed, 6 insertions(+), 2 deletions(-) (limited to 'common') diff --git a/common/util.cpp b/common/util.cpp index e238abe05f..d67027b873 100644 --- a/common/util.cpp +++ b/common/util.cpp @@ -193,6 +193,8 @@ const PlatformDescription g_platforms[] = { {"segacd", "segacd", "SegaCD", kPlatformSegaCD}, {"windows", "win", "Windows", kPlatformWindows}, + {"2GS", "2gs", "Apple IIgs", kPlatformApple2GS }, + {0, 0, "Default", kPlatformUnknown} }; @@ -320,7 +322,7 @@ bool enableSpecialDebugLevel(const String &option) { 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()) { diff --git a/common/util.h b/common/util.h index 6fb0e68a90..d7299101f8 100644 --- a/common/util.h +++ b/common/util.h @@ -37,7 +37,7 @@ template inline T ABS (T x) { return (x>=0) ? x : -x; } template inline T MIN (T a, T b) { return (a inline T MAX (T a, T b) { return (a>b) ? a : b; } -template inline T CLIP (T v, T amin, T amax) +template 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 @@ enum Platform { kPlatform3DO, // kPlatformPCEngine, + kPlatformApple2GS, + kPlatformUnknown = -1 }; -- cgit v1.2.3