os_type(3alleg4)

πŸ’– os_type β€” the vibe check for ur whole operating system πŸ’–

okay so bestie, this is a page straight out of the Allegro manual (3alleg4), and it's about one tiny little global that knows exactly what machine it's running on. no cap. πŸ¦‹


✨ NAME ✨

os_type β€” stores the detected type of the OS. Allegro game programming library, babes. πŸŽ€


✨ SYNOPSIS ✨

#include <allegro.h>

extern int os_type;

✨ DESCRIPTION ✨

so here's the tea β˜• β€” allegro_init() sets this thing, and it gets set to one of these values. that's it. that's the whole plot. πŸ‘‘

  • OSTYPE_UNKNOWN β€” unknown, or regular MSDOS πŸ«₯
  • OSTYPE_WIN3 β€” Windows 3.1 or earlier (ancient, but iconic) 🏺
  • OSTYPE_WIN95 β€” Windows 95
  • OSTYPE_WIN98 β€” Windows 98
  • OSTYPE_WINME β€” Windows ME
  • OSTYPE_WINNT β€” Windows NT
  • OSTYPE_WIN2000 β€” Windows 2000
  • OSTYPE_WINXP β€” Windows XP
  • OSTYPE_WIN2003 β€” Windows 2003
  • OSTYPE_WINVISTA β€” Windows Vista
  • OSTYPE_OS2 β€” OS/2
  • OSTYPE_WARP β€” OS/2 Warp 3
  • OSTYPE_DOSEMU β€” Linux DOSEMU
  • OSTYPE_OPENDOS β€” Caldera OpenDOS
  • OSTYPE_LINUX β€” Linux 🐧 (yes queen)
  • OSTYPE_SUNOS β€” SunOS/Solaris β˜€οΈ
  • OSTYPE_FREEBSD β€” FreeBSD
  • OSTYPE_NETBSD β€” NetBSD
  • OSTYPE_IRIX β€” IRIX
  • OSTYPE_DARWIN β€” Darwin
  • OSTYPE_QNX β€” QNX
  • OSTYPE_UNIX β€” Unknown Unix variant 🫢
  • OSTYPE_BEOS β€” BeOS
  • OSTYPE_MACOS β€” MacOS
  • OSTYPE_MACOSX β€” MacOS X
fr fr, that's the entire list. if ur OS isn't on here, it's giving OSTYPE_UNKNOWN or OSTYPE_UNIX energy. πŸ’€

✨ SEE ALSO ✨


okay that's the whole page, no notes. this was Allegro, version 4.4.3, and honestly? slay. go check ur os_type, bestie, and tell me what u got. πŸ’…βœ¨πŸŒˆ