Ticket #3258: t3258_rename_autostart_visualreplay_v1.patch

File t3258_rename_autostart_visualreplay_v1.patch, 1.6 KB (added by elexis, 9 years ago)

Renames GameSetup::VisualReplay() to GameSetup::AutostartVisualReplay().

  • source/ps/GameSetup/GameSetup.cpp

    void EarlyInit()  
    879879    srand(time(NULL));  // NOTE: this rand should *not* be used for simulation!
    880880}
    881881
    882882bool Autostart(const CmdLineArgs& args);
    883883
    884 // Returns true if and only if the user has intended to replay a file
    885 bool VisualReplay(const std::string replayFile);
     884/**
     885 * Returns true if the user has intended to start a visual replay from command line.
     886 */
     887bool AutostartVisualReplay(const std::string replayFile);
    886888
    887889bool Init(const CmdLineArgs& args, int flags)
    888890{
    889891    h_mgr_init();
    890892
    void InitGraphics(const CmdLineArgs& arg  
    10721074    if (VfsDirectoryExists(L"maps/"))
    10731075        CXeromyces::AddValidator(g_VFS, "map", "maps/scenario.rng");
    10741076
    10751077    try
    10761078    {
    1077         if (!VisualReplay(args.Get("replay-visual")) && !Autostart(args))
     1079        if (!AutostartVisualReplay(args.Get("replay-visual")) && !Autostart(args))
    10781080        {
    10791081            const bool setup_gui = ((flags & INIT_NO_GUI) == 0);
    10801082            // We only want to display the splash screen at startup
    10811083            shared_ptr<ScriptInterface> scriptInterface = g_GUI->GetScriptInterface();
    10821084            JSContext* cx = scriptInterface->GetContext();
    bool Autostart(const CmdLineArgs& args)  
    14691471    }
    14701472
    14711473    return true;
    14721474}
    14731475
    1474 bool VisualReplay(const std::string replayFile)
     1476bool AutostartVisualReplay(const std::string replayFile)
    14751477{
    14761478    if (!FileExists(OsPath(replayFile)))
    14771479        return false;
    14781480
    14791481    g_Game = new CGame(false, false);