Changeset 893 for Daodan/src/Daodan.c


Ignore:
Timestamp:
Jul 26, 2013, 12:42:31 PM (11 years ago)
Author:
alloc
Message:

Daodan 3.4:

  • Fixes #66 by only allowing landscape resolutions
  • Fixes #64, adds patch "showalllasersights" defaulting to false
  • Fixes #67, also printing Daodan version
File:
1 edited

Legend:

Unmodified
Added
Removed
  • Daodan/src/Daodan.c

    r839 r893  
    22#include <string.h>
    33#include <stdio.h>
     4#include <time.h>
    45
    56#include "Daodan.h"
     
    1112#include "Daodan_Config.h"
    1213#include "patches/Patches.h"
     14#include "_Version.h"
    1315
    1416#include "Oni.h"
     
    2224void __cdecl DDrMain(int argc, char* argv[])
    2325{
    24         DDrStartupMessage("Daodan: Daodan attached!");
     26        time_t rawtime;
     27        struct tm* timeinfo;
     28        char buffer[80];
     29        time(&rawtime);
     30        timeinfo = localtime(&rawtime);
     31        strftime(buffer, 80, "Daodan: %Y-%m-%d %H:%M:%S", timeinfo);
     32
     33        DDrStartupMessage("Daodan: Daodan v."DAODAN_VERSION_STRING" attached!");
     34        DDrStartupMessage(buffer);
    2535       
    2636        DDrConfig(argc, argv);
Note: See TracChangeset for help on using the changeset viewer.