For direct access use https://forums.oldunreal.com
It's been quite a while since oldunreal had an overhaul, but we are moving to another server which require some updates and changes. The biggest change is the migration of our old reliable YaBB forum to phpBB. This system expects you to login with your username and old password known from YaBB.
If you experience any problems there is also the usual "password forgotten" function. Don't forget to clear your browser cache!
If you have any further concerns feel free to contact me: Smirftsch@oldunreal.com

[Snippet] Exec interface.

Post Reply
User avatar
han
Global Moderator
Posts: 686
Joined: Wed Dec 10, 2014 12:38 am

[Snippet] Exec interface.

Post by han »

When you have some special class (like a renderdevice, engine, etc.) you receive commands over the Exec interface. And basically it works like this. You create another pointer (Str) to the original command passed in. ParseCommand will change the position Str points to, so you loose parts of your Cmd, but if needed you can always use Cmd again. The second argument is where the output goes. For example if you type a command in the ingame console and log to Ar, it will show up there. Or you get it as return value when using the ConsoleCommand() function in UnrealScript.

Code: Select all

// FExec interface.
UBOOL URevisionContent::Exec( const TCHAR* Cmd, FOutputDevice& Ar )
{
      guard(URevisionContent::Exec);
      const TCHAR* Str = Cmd;
      if ( ParseCommand(&Str,TEXT("Content")) )
      {
            if ( ParseCommand(&Str,TEXT("List")) )
            {
                  Ar.Logf( TEXT("Contents:") );
                  {for ( INT i=0; i
HX on Mod DB. Revision on Steam. Löffels on Patreon.
Post Reply
  • Similar Topics
    Replies
    Views
    Last post

Return to “C++ Native Mods for UE1”