HaikuPorts
  • Login
  • Preferences
  • Help/Guide
  • Wiki
  • Timeline
  • Roadmap
  • View Tickets
  • Search
  • Port Log
  • Blog

Context Navigation

  • Back to games-engines/freesci/0.6.4

games-engines/freesci/0.6.4: freesci-0.6.4_beos.patch

File freesci-0.6.4_beos.patch, 6.7 KB (added by begasus, 6 years ago)

boes patch working for haiku also

  • src/config.l

    diff -Nur freesci-0.6.4/src/config.l freesci-0.6.4_beos/src/config.l
    old new  
    5959        void *(*check_driver)(char *name); 
    6060} freesci_subsystems[FREESCI_DRIVER_SUBSYSTEMS_NR] = { 
    6161        {"gfx", NULL}, 
    62 #ifdef __GNUC__ 
    63 #warning "sound" 
    64 #endif 
    6562#if 0 
    6663        {"pcm", parse_pcmout_driver}, 
    6764        {"midiout", parse_midiout_driver} 
    … …  
    261258        OPT_INT("alpha_threshold", alpha_threshold, 0, 255), 
    262259        OPT_INT("animation_delay", animation_delay, 0, 1000000), 
    263260        OPT_INT("animation_granularity", animation_granularity, 1, 160), 
    264 #ifdef __GNUC__ 
    265 #warning "Re-enable sound server config" 
    266 #endif 
    267261#if 0 
    268262        OPT_STATICREF("midiout_driver", midiout_driver, parse_midiout_driver), 
    269263        OPT_STATICREF("midi_device", midi_device, parse_midi_device), 
    … …  
    613607 
    614608        conf->gfx_driver_name = NULL; 
    615609 
    616 #ifdef __GNUC__ 
    617 #warning "Re-enable sound stuff" 
    618 #endif 
    619610#if 0 
    620611        conf->pcmout_driver = pcmout_find_driver(NULL); 
    621612        conf->pcmout_rate = 22050; 
    … …  
    809800} 
    810801 
    811802 
    812 #ifdef __GNUC__ 
    813 #warning "Re-enable sound stuff" 
    814 #endif 
    815803#if 0 
    816804void * 
    817805parse_sound_server(char *driver_name) 
  • src/engine/game.c

    diff -Nur freesci-0.6.4/src/engine/game.c freesci-0.6.4_beos/src/engine/game.c
    old new  
    666666int 
    667667game_init(state_t *s) 
    668668{ 
    669 #ifdef __GNUC__ 
    670 #  warning "Fixme: Use new VM instantiation code all over the place" 
    671 #endif 
    672669        reg_t game_obj; /* Address of the game object */ 
    673670        dstack_t *stack; 
    674671 
    … …  
    769766 
    770767        sciprintf("Freeing miscellaneous data...\n"); 
    771768 
    772 #ifdef __GNUC__ 
    773 #warning "Free parser segment here" 
    774 #endif 
    775769        if (send_calls_allocated) { 
    776770                sci_free(send_calls); 
    777771                send_calls_allocated = 0; 
    778772        } 
    779773 
    780 #ifdef __GNUC__ 
    781 #warning "Free scripts here" 
    782 #endif 
    783774 
    784775        menubar_free(s->menubar); 
    785776 
  • src/engine/scriptdebug.c

    diff -Nur freesci-0.6.4/src/engine/scriptdebug.c freesci-0.6.4_beos/src/engine/scriptdebug.c
    old new  
    799799        return 0; 
    800800} 
    801801 
    802 #ifdef __GNUC__ 
    803 #warning "Re-implement con:so" 
    804 #endif 
    805802#if 0 
    806803int 
    807804c_stepover(state_t *s) 
    … …  
    22792276static int 
    22802277c_gfx_draw_viewobj(state_t *s) 
    22812278{ 
    2282 #ifdef __GNUC__ 
    2283 #warning "Re-implement con:gfx_draw_viewobj" 
    2284 #endif 
    22852279#if 0 
    22862280        heap_ptr pos = (heap_ptr) (cmd_params[0].val); 
    22872281        int is_view; 
    … …  
    29182912bb = GET_SELECTOR(pos, bb); 
    29192913 
    29202914#if 0 
    2921 #ifdef __GNUC__ 
    2922 #warning "Re-implement viewobjinfo" 
    2923 #endif 
    29242915static void 
    29252916viewobjinfo(state_t *s, heap_ptr pos) 
    29262917{ 
    … …  
    35243515                        con_hook_command(c_vmvarlist, "vmvarlist", "!", "Displays the addresses of variables in the VM"); 
    35253516                        con_hook_command(c_step, "s", "i*", "Executes one or several operations\n\nEXAMPLES\n\n" 
    35263517                                         "    s 4\n\n  Execute 4 commands\n\n    s\n\n  Execute next command"); 
    3527 #ifdef __GNUC__ 
    3528 #warning "Re-enable con:so hook" 
    3529 #endif 
    35303518#if 0 
    35313519                        con_hook_command(c_stepover, "so", "", "Executes one operation skipping over sends"); 
    35323520#endif 
    … …  
    36693657                        con_hook_command(c_gfx_update_zone, "gfx_update_zone", "iiii", "Propagates a rectangular area from\n  the back buffer to the front buffer" 
    36703658                                         "\n\nUSAGE\n\n" 
    36713659                                         "  gfx_update_zone <x> <y> <xl> <yl>"); 
    3672 #ifdef __GNUC__ 
    3673 #warning "Re-enable con:draw_viewobj" 
    3674 #endif 
    36753660#if 0 
    36763661                        con_hook_command(c_gfx_draw_viewobj, "draw_viewobj", "i", "Draws the nsRect and brRect of a\n  dynview object.\n\n  nsRect is green, brRect\n" 
    36773662                                         "  is blue.\n"); 
  • src/include/kernel_compat.h

    diff -Nur freesci-0.6.4/src/include/kernel_compat.h freesci-0.6.4_beos/src/include/kernel_compat.h
    old new  
    2929#ifndef _SCI_KERNEL_COMPAT_ 
    3030#define _SCI_KERNEL_COMPAT_ 
    3131 
    32 #ifdef __GNUC__ 
    33 #warning "Old kernel compatibility crap" 
    34 #endif 
    3532 
    3633/* Minimal heap position */ 
    3734#define HEAP_MIN 800 
  • src/include/sci_conf.h

    diff -Nur freesci-0.6.4/src/include/sci_conf.h freesci-0.6.4_beos/src/include/sci_conf.h
    old new  
    8585        int reverse_stereo; 
    8686        int res_version; 
    8787         
    88 #ifdef __GNUC__ 
    89 #  warning "Re-enable sound stuff" 
    90 #endif 
    9188#if 0 
    9289        midiout_driver_t *midiout_driver; /* the midiout method to use */ 
    9390        midi_device_t *midi_device; /* the midi device to use */ 
  • freesci-0.6.

    diff -Nur freesci-0.6.4/src/main.c freesci-0.6.4_beos/src/main.c
    old new  
    308308        printf("\n"); 
    309309} 
    310310 
    311 #ifdef __GNUC__ 
    312 #warning "Re-enable sound stuff" 
    313 #endif 
    314311#if 0 
    315312static void 
    316313list_pcmout_drivers() 
    … …  
    549546                        printf("Supported graphics drivers: "); 
    550547                        list_graphics_drivers(); 
    551548 
    552 #ifdef __GNUC__ 
    553 #warning "Re-enable sound stuff" 
    554 #endif 
    555549#if 0 
    556550                        printf("Supported sound servers: "); 
    557551                        list_sound_servers(); 
    … …  
    11151109 
    11161110        chdir(startdir); 
    11171111 
    1118 #ifdef __GNUC__ 
    1119 #warning "sound" 
    1120 #endif 
    11211112#if 0 
    11221113        printf("Mapping instruments to General Midi\n"); 
    11231114 
    … …  
    11711162                free(cl_options.gfx_driver_name); 
    11721163        } /* else it's still NULL */ 
    11731164 
    1174 #ifdef __GNUC__ 
    1175 #warning "sound" 
    1176 #endif 
    11771165#if 0 
    11781166        if (cl_options.pcmout_driver_name) 
    11791167                pcmout_driver = old_lookup_driver((old_lookup_funct_t *)pcmout_find_driver, 
    … …  
    12091197                memcpy(gfx_options, &(active_conf->gfx_options), sizeof(gfx_options_t)); /* memcpy so that console works */ 
    12101198                if (!gfx_driver_name) 
    12111199                        gfx_driver_name = active_conf->gfx_driver_name; 
    1212 #ifdef __GNUC__ 
    1213 #warning "sound" 
    1214 #endif 
    12151200#if 0 
    12161201                if (!sound_server) 
    12171202                        sound_server = active_conf->sound_server; 
    … …  
    12971282                } 
    12981283        } 
    12991284 
    1300 #ifdef __GNUC__ 
    1301 #warning "sound" 
    1302 #endif 
    13031285#if 0 
    13041286        /* Configure the pcmout driver */ 
    13051287        { 
    … …  
    13491331                exit(1); 
    13501332        } 
    13511333 
    1352 #ifdef __GNUC__ 
    1353 #warning "sound" 
    1354 #endif 
    13551334#if 0 
    13561335        if (!sound_server) 
    13571336                sound_server = sound_server_find_driver(NULL); 
    … …  
    13601339        if (cl_options.show_rooms) 
    13611340          set_debug_mode(gamestate, 1, "r"); 
    13621341 
    1363 #ifdef __GNUC__ 
    1364 #warning "sound" 
    1365 #endif 
    13661342#if 0 
    13671343        gamestate->sound_server = sound_server; 
    13681344 
    … …  
    14051381 
    14061382        printf("Graphics: Using the %s driver %s\n", 
    14071383               gfx_driver->name, gfx_driver->version); 
    1408 #ifdef __GNUC__ 
    1409 #warning "sound" 
    1410 #endif 
    14111384#if 0 
    14121385        printf("MIDI-out: Using the %s driver %s\n", 
    14131386               midiout_driver->name, midiout_driver->version); 
    … …  
    14301403                game_restore(&gamestate, savegame_name); 
    14311404        else 
    14321405                game_run(&gamestate); /* Run the game */ 
    1433 #ifdef __GNUC__ 
    1434 #warning "sound" 
    1435 #endif 
    14361406#if 0 
    14371407        if (gamestate->sound_server) 
    14381408                gamestate->sound_server->exit(gamestate); /* Shutdown sound daemon first */ 

Download in other formats:

  • Original Format

Trac Powered

Powered by Trac 0.13dev-r10686
By Edgewall Software.

Visit the Trac open source project at
http://trac.edgewall.org/