mirror of
https://github.com/kevinbentley/Descent3.git
synced 2026-05-20 12:00:07 -04:00
Remove MacOS (Classic) code and all references (1/3)
The MACINTOSH define refers to MacOS Classic (not OS X) which we do not
plan to support. Rather than carry the cruft forever, let's delete it.
NOTE: legacy/ is unused but we're keeping it around, so MACINTOSH uses
there are left alone.
Process used for this commit:
```
git rm -r mac
find . \( -iname "*.c" -or -iname "*.cpp" -or -iname "*.h" \) \
-exec unifdef -UMACINTOSH -o {} {} \;
git restore legacy
git add .
```
Test Plan:
On Mac, build both Debug and Release
```
cmake --build --preset mac --config Debug
cmake --build --preset mac --config Release
```
This commit is contained in:
@@ -121,22 +121,14 @@ void Error(char *fmt, ...) {
|
||||
va_list arglist;
|
||||
int exit_msg_len;
|
||||
|
||||
#ifdef MACINTOSH
|
||||
strcpy(Exit_message, "");
|
||||
#else
|
||||
strcpy(Exit_message, "Error: ");
|
||||
#endif
|
||||
|
||||
va_start(arglist, fmt);
|
||||
exit_msg_len = strlen(Exit_message);
|
||||
Pvsprintf(Exit_message + exit_msg_len, MAX_MSG_LEN - exit_msg_len, fmt, arglist);
|
||||
va_end(arglist);
|
||||
|
||||
#ifdef MACINTOSH
|
||||
Debug_ErrorBox(OSMBOX_OK, "Fatal Error", Exit_message, "");
|
||||
#else
|
||||
snprintf(Exit_title_str, sizeof(Exit_title_str), "%s Error", App_title);
|
||||
#endif
|
||||
mprintf((0, "%s\n", Exit_message));
|
||||
|
||||
#ifdef _DEBUG
|
||||
|
||||
Reference in New Issue
Block a user