Ignore:
Timestamp:
Apr 28, 2011, 1:07:39 AM (10 years ago)
Author:
Sam Hocevar
Message:

imlib: get rid of fast path loading, it was no longer used. We also
delete the old cache file we put in the user's directory.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • abuse/trunk/src/game.cpp

    r541 r544  
    13391339}
    13401340
    1341 extern void fast_load_start_recording(char *name);
    1342 extern void fast_load_stop_recording();
    1343 extern void fast_load_start_reloading(char *name);
    1344 extern void fast_load_stop_reloading();
    1345 
    13461341Game::Game(int argc, char **argv)
    13471342{
     
    13841379  else has_joystick = 0;
    13851380
     1381    // Clean up that old crap
     1382    char *fastpath = (char *)malloc(strlen(get_save_filename_prefix()) + 13);
     1383    sprintf(fastpath, "%sfastload.dat", get_save_filename_prefix());
     1384    unlink(fastpath);
     1385    free(fastpath);
     1386
    13861387//    ProfilerInit(collectDetailed, bestTimeBase, 2000, 200); //prof
    1387     char *fastpath;
    1388     fastpath = (char *)malloc(strlen(get_save_filename_prefix()) + 12 + 1);
    1389     sprintf(fastpath, "%sfastload.dat", get_save_filename_prefix());
    1390     fast_load_start_recording(fastpath);
    13911388    load_data(argc, argv);
    1392     fast_load_stop_recording();
    1393     free(fastpath);
    13941389//    ProfilerDump("\pabuse.prof");  //prof
    13951390//    ProfilerTerm();
Note: See TracChangeset for help on using the changeset viewer.