Subversion Repositories Games.Carmageddon

Rev

Blame | Last modification | View Log | Download | RSS feed

  1. #include "devsetup.h"
  2. #include "harness/hooks.h"
  3. #include "harness/trace.h"
  4.  
  5. #include <stdarg.h>
  6.  
  7. br_pixelmap* last_begin_screen;
  8.  
  9. // IDA: br_pixelmap* __cdecl BrDevLastBeginQuery()
  10. br_pixelmap* BrDevLastBeginQuery(void) {
  11.  
  12.     return last_begin_screen;
  13. }
  14.  
  15. // IDA: void __usercall BrDevLastBeginSet(br_pixelmap *pm@<EAX>)
  16. void BrDevLastBeginSet(br_pixelmap* pm) {
  17.     LOG_TRACE("(%p)", pm);
  18.  
  19.     last_begin_screen = pm;
  20. }
  21.  
  22. // IDA: br_error __cdecl BrDevBeginVar(br_pixelmap **ppm, char *setup_string, ...)
  23. br_error BrDevBeginVar(br_pixelmap** ppm, char* setup_string, ...) {
  24.     //va_list vl; // Pierre-Marie Baty -- unused variable
  25.     //br_uint_32 i; // Pierre-Marie Baty -- unused variable
  26.     //br_uint_32 n; // Pierre-Marie Baty -- unused variable
  27.     //br_token_value tv[64]; // Pierre-Marie Baty -- unused variable
  28.     LOG_TRACE("(%p, \"%s\")", ppm, setup_string);
  29.     NOT_IMPLEMENTED();
  30. }
  31.  
  32. // IDA: br_error __cdecl BrDevBegin(br_pixelmap **ppm, char *setup_string)
  33. br_error BrDevBegin(br_pixelmap** ppm, char* setup_string) {
  34.     LOG_TRACE("(%p, \"%s\")", ppm, setup_string);
  35.     NOT_IMPLEMENTED();
  36. }
  37.  
  38. // IDA: br_error __cdecl BrDevBeginTV(br_pixelmap **ppm, char *setup_string, br_token_value *setup_tv)
  39. br_error BrDevBeginTV(br_pixelmap** ppm, char* setup_string, br_token_value* setup_tv) {
  40.     //char str[512];
  41.     //char* args;
  42.     //char* devname;
  43.     //char* devargs;
  44.     //char devices_str[512];
  45.     //char* device_name;
  46.     //char* device_args;
  47.     //char* next_device;
  48.     //br_token_value args_tv[64];
  49.     //br_token_value* tv;
  50.     //br_output_facility* output_facility;
  51.     //br_device* device;
  52.     //br_pixelmap* screen;
  53.     //int i;
  54.     //int n;
  55.     //br_error r; // Pierre-Marie Baty -- unused variable
  56.     LOG_TRACE("(%p, \"%s\", %p)", ppm, setup_string, setup_tv);
  57.     NOT_IMPLEMENTED();
  58. }
  59.  
  60. // IDA: br_pixelmap* __cdecl BrDevBeginOld(char *setup_string)
  61. br_pixelmap* BrDevBeginOld(char* setup_string) {
  62.     //br_pixelmap* s; // Pierre-Marie Baty -- unused variable
  63.     LOG_TRACE("(\"%s\")", setup_string);
  64.     NOT_IMPLEMENTED();
  65. }
  66.  
  67. // IDA: void __cdecl BrDevEndOld()
  68. void BrDevEndOld(void) {
  69.     LOG_TRACE("()");
  70.     NOT_IMPLEMENTED();
  71. }
  72.  
  73. // IDA: void __cdecl BrDevPaletteSetOld(br_pixelmap *pm)
  74. void BrDevPaletteSetOld(br_pixelmap* pm) {
  75.     NOT_IMPLEMENTED();
  76. }
  77.  
  78. // IDA: void __cdecl BrDevPaletteSetEntryOld(int i, br_colour colour)
  79. void BrDevPaletteSetEntryOld(int i, br_colour colour) {
  80.     NOT_IMPLEMENTED();
  81. }
  82.  
  83. // IDA: br_error __cdecl BrRendererFacilityFind(br_renderer_facility **prf, br_device_pixelmap *destination, br_token scalar_type)
  84. br_error BrRendererFacilityFind(br_renderer_facility** prf, br_device_pixelmap* destination, br_token scalar_type) {
  85.     //br_renderer_facility* renderer_facility; // Pierre-Marie Baty -- unused variable
  86.     //br_error r; // Pierre-Marie Baty -- unused variable
  87.     //br_output_facility* ot; // Pierre-Marie Baty -- unused variable
  88.     //char object_name[23]; // Pierre-Marie Baty -- unused variable
  89.     //char image_name[9]; // Pierre-Marie Baty -- unused variable
  90.     //br_boolean scalar_is_valid; // Pierre-Marie Baty -- unused variable
  91.     LOG_TRACE("(%p, %p, %d)", prf, destination, scalar_type);
  92.     NOT_IMPLEMENTED();
  93. }
  94.  
  95. // IDA: br_error __cdecl BrPrimitiveLibraryFind(br_primitive_library **ppl, br_device_pixelmap *destination, br_token scalar_type)
  96. br_error BrPrimitiveLibraryFind(br_primitive_library** ppl, br_device_pixelmap* destination, br_token scalar_type) {
  97.     //br_primitive_library* primitive_library; // Pierre-Marie Baty -- unused variable
  98.     //br_error r; // Pierre-Marie Baty -- unused variable
  99.     //br_output_facility* ot; // Pierre-Marie Baty -- unused variable
  100.     //char object_name[25]; // Pierre-Marie Baty -- unused variable
  101.     //char image_name[9]; // Pierre-Marie Baty -- unused variable
  102.     //br_boolean scalar_is_valid; // Pierre-Marie Baty -- unused variable
  103.     LOG_TRACE("(%p, %p, %d)", ppl, destination, scalar_type);
  104.     NOT_IMPLEMENTED();
  105. }
  106.  
  107. // IDA: br_error __cdecl BrGeometryFormatFind(br_geometry **pgf, br_renderer *renderer, br_renderer_facility *renderer_facility, br_token scalar_type, br_token format_type)
  108. br_error BrGeometryFormatFind(br_geometry** pgf, br_renderer* renderer, br_renderer_facility* renderer_facility, br_token scalar_type, br_token format_type) {
  109.     //br_error r; // Pierre-Marie Baty -- unused variable
  110.     //br_geometry* gf; // Pierre-Marie Baty -- unused variable
  111.     //char object_name[21]; // Pierre-Marie Baty -- unused variable
  112.     //char image_name[9]; // Pierre-Marie Baty -- unused variable
  113.     //br_boolean scalar_is_valid; // Pierre-Marie Baty -- unused variable
  114.     LOG_TRACE("(%p, %p, %p, %d, %d)", pgf, renderer, renderer_facility, scalar_type, format_type);
  115.     NOT_IMPLEMENTED();
  116. }
  117.