Renamed megaglest_runtime_error to game_runtime_error

This commit is contained in:
mathusummut
2018-11-02 12:15:57 +01:00
parent 4eb7dc204e
commit 69ab9716da
116 changed files with 1244 additions and 1244 deletions

View File

@@ -579,7 +579,7 @@ int mainSetup(int argc, char **argv) {
if (knownArgCount != GAME_ARG_END) {
char szBuf[8096] = "";
snprintf(szBuf, 8096, "Internal arg count mismatch knownArgCount = %d, GAME_ARG_END = %d", knownArgCount, GAME_ARG_END);
throw megaglest_runtime_error(szBuf);
throw game_runtime_error(szBuf);
}
SystemFlags::VERBOSE_MODE_ENABLED = false;
@@ -649,7 +649,7 @@ int mainSetup(int argc, char **argv) {
has_SSE4a == false) {
char szBuf[8096] = "";
snprintf(szBuf, 8096, "Error detected, your CPU does not seem to support SSE: [%d]\n", has_SSE);
throw megaglest_runtime_error(szBuf);
throw game_runtime_error(szBuf);
}
#elif defined (__GNUC__) && !defined(__APPLE__)
@@ -670,7 +670,7 @@ int mainSetup(int argc, char **argv) {
if (!CHECK_BIT(dx, 25) && !CHECK_BIT(dx, 26) && !CHECK_BIT(cx, 0)) {
char szBuf[8096] = "";
snprintf(szBuf, 8096, "Error detected, your CPU does not seem to support SSE: [%d]\n", CHECK_BIT(dx, 25));
throw megaglest_runtime_error(szBuf);
throw game_runtime_error(szBuf);
}
#endif

View File

@@ -37,11 +37,11 @@ using std::exception;
namespace Shared { namespace Platform {
class megaglest_runtime_error : public runtime_error {
class game_runtime_error : public runtime_error {
protected:
bool noStackTrace;
public:
megaglest_runtime_error(const string& __arg,bool noStackTrace=false);
game_runtime_error(const string& __arg,bool noStackTrace=false);
bool wantStackTrace() const { return !noStackTrace; }
};