• This is a read only backup of the old Emudevs forum. If you want to have anything removed, please message me on Discord: KittyKaev

[SOLVED] ACE

Status
Not open for further replies.

Visa

Sexy Member
Since trinitycore no longer supports the use of ACE libraries is there any simple way to remove the reference this older script is using with it. It's the Anticheat System. I would post the code but its literally 3 different .cpp files and 3 different .h files, I can fix most of the errors due to simple ai change, but what I'm specifically talking about is:

Code:
IntelliSense: identifier "ACE_Singleton" is undefined	
IntelliSense: identifier "ACE_Singleton" is undefined	
IntelliSense: identifier "ACE_Null_Mutex" is undefined	
IntelliSense: cannot open source file "ace/Singleton.h"	
IntelliSense: ACE_Singleton is not a template

In one of the header files it uses #include <ace/Singleton.h> and a few other references, just not sure how to omit these

Any help is appreciated,
Thanks in advance!
 

Tommy

Founder
Accessing a class instance is pretty simple. You can look at existing examples in TC's source:

(Don't forget to remove ace includes and traces of ace code regarding this subject)
instance function
instance define directive

Simple example:

Code:
#ifndef TEST_H
#define TEST_H

class Test
{
public:
    static Test* instance()
    {
        static Test instance;
        return &instance;
    }
};

#define sTest Test::instance()

#endif
 

Kaev

Super Moderator
If you want to learn more about it: This programming pattern is called Singleton.
 
Status
Not open for further replies.
Top