upse_bios_manager.c 738 B

1234567891011121314151617181920212223242526272829303132333435363738
  1. /*
  2. * UPSE: the unix playstation sound emulator.
  3. *
  4. * Filename: upse_bios_manager.c
  5. * Purpose: libupse: BIOS management functions.
  6. *
  7. * Copyright (c) 2008 William Pitcock <nenolod@sacredspiral.co.uk>
  8. *
  9. * UPSE is free software, released under the GNU General Public License,
  10. * version 2.
  11. *
  12. * A copy of the GNU General Public License, version 2, is included in
  13. * the UPSE source kit as COPYING.
  14. *
  15. * UPSE is offered without any warranty of any kind, explicit or implicit.
  16. */
  17. #include "upse-internal.h"
  18. static const char *bios_ = NULL;
  19. int
  20. upse_has_custom_bios(void)
  21. {
  22. return bios_ != NULL;
  23. }
  24. const char *
  25. upse_get_custom_bios(void)
  26. {
  27. return bios_;
  28. }
  29. void
  30. upse_set_custom_bios(const char *bios)
  31. {
  32. bios_ = bios;
  33. }