Skip to content
This repository has been archived by the owner on Feb 4, 2021. It is now read-only.

Commit

Permalink
Merge pull request #124 from goodwinxp/dev
Browse files Browse the repository at this point in the history
Release 1.4
  • Loading branch information
goodwinxp authored Jan 6, 2018
2 parents d81d7dd + 344758f commit aef3ff5
Show file tree
Hide file tree
Showing 18 changed files with 44 additions and 17 deletions.
2 changes: 1 addition & 1 deletion Addons/AccuracyEffect/Common/version.h
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
#define STRINGIZE(s) STRINGIZE2(s)

#define VERSION_MAJOR 1
#define VERSION_MINOR 3
#define VERSION_MINOR 4
#define VERSION_REVISION 0
#define VERSION_BUILD 0

Expand Down
2 changes: 1 addition & 1 deletion Addons/Advert/Common/version.h
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
#define STRINGIZE(s) STRINGIZE2(s)

#define VERSION_MAJOR 1
#define VERSION_MINOR 3
#define VERSION_MINOR 4
#define VERSION_REVISION 0
#define VERSION_BUILD 0

Expand Down
2 changes: 1 addition & 1 deletion Addons/BonusStart/Common/version.h
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
#define STRINGIZE(s) STRINGIZE2(s)

#define VERSION_MAJOR 1
#define VERSION_MINOR 3
#define VERSION_MINOR 4
#define VERSION_REVISION 0
#define VERSION_BUILD 0

Expand Down
2 changes: 1 addition & 1 deletion Addons/ChatLog/Common/version.h
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
#define STRINGIZE(s) STRINGIZE2(s)

#define VERSION_MAJOR 1
#define VERSION_MINOR 3
#define VERSION_MINOR 4
#define VERSION_REVISION 0
#define VERSION_BUILD 0

Expand Down
4 changes: 2 additions & 2 deletions Addons/DefenceFormula/Common/version.h
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
#define STRINGIZE(s) STRINGIZE2(s)

#define VERSION_MAJOR 1
#define VERSION_MINOR 3
#define VERSION_MINOR 4
#define VERSION_REVISION 0
#define VERSION_BUILD 0

Expand All @@ -15,7 +15,7 @@
"." STRINGIZE(VERSION_REVISION) \
"." STRINGIZE(VERSION_BUILD) \

#define VER_PRODUCTNAME_STR "<TODO>"
#define VER_PRODUCTNAME_STR "DefenceFormula"
#define VER_PRODUCT_VERSION VER_FILE_VERSION
#define VER_PRODUCT_VERSION_STR VER_FILE_VERSION_STR
#define VER_ORIGINAL_FILENAME_STR VER_PRODUCTNAME_STR ".dll"
Expand Down
2 changes: 1 addition & 1 deletion Addons/EnchantChance/Common/version.h
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
#define STRINGIZE(s) STRINGIZE2(s)

#define VERSION_MAJOR 1
#define VERSION_MINOR 3
#define VERSION_MINOR 4
#define VERSION_REVISION 0
#define VERSION_BUILD 0

Expand Down
2 changes: 1 addition & 1 deletion Addons/GMCommands/Common/version.h
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
#define STRINGIZE(s) STRINGIZE2(s)

#define VERSION_MAJOR 1
#define VERSION_MINOR 3
#define VERSION_MINOR 4
#define VERSION_REVISION 0
#define VERSION_BUILD 0

Expand Down
2 changes: 1 addition & 1 deletion Addons/LootExchange/Common/version.h
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
#define STRINGIZE(s) STRINGIZE2(s)

#define VERSION_MAJOR 1
#define VERSION_MINOR 3
#define VERSION_MINOR 4
#define VERSION_REVISION 0
#define VERSION_BUILD 0

Expand Down
2 changes: 1 addition & 1 deletion Addons/MauExp/Common/version.h
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
#define STRINGIZE(s) STRINGIZE2(s)

#define VERSION_MAJOR 1
#define VERSION_MINOR 3
#define VERSION_MINOR 4
#define VERSION_REVISION 0
#define VERSION_BUILD 0

Expand Down
2 changes: 1 addition & 1 deletion Addons/PvpPotion/Common/version.h
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
#define STRINGIZE(s) STRINGIZE2(s)

#define VERSION_MAJOR 1
#define VERSION_MINOR 3
#define VERSION_MINOR 4
#define VERSION_REVISION 0
#define VERSION_BUILD 0

Expand Down
2 changes: 1 addition & 1 deletion Addons/RadiusDropLoot/Common/version.h
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
#define STRINGIZE(s) STRINGIZE2(s)

#define VERSION_MAJOR 1
#define VERSION_MINOR 3
#define VERSION_MINOR 4
#define VERSION_REVISION 0
#define VERSION_BUILD 0

Expand Down
2 changes: 1 addition & 1 deletion Addons/ReplaceLootName/Common/version.h
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
#define STRINGIZE(s) STRINGIZE2(s)

#define VERSION_MAJOR 1
#define VERSION_MINOR 3
#define VERSION_MINOR 4
#define VERSION_REVISION 0
#define VERSION_BUILD 0

Expand Down
2 changes: 1 addition & 1 deletion Addons/ServerMemoryPatch/Common/version.h
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
#define STRINGIZE(s) STRINGIZE2(s)

#define VERSION_MAJOR 1
#define VERSION_MINOR 3
#define VERSION_MINOR 4
#define VERSION_REVISION 0
#define VERSION_BUILD 0

Expand Down
2 changes: 1 addition & 1 deletion Addons/StoneHP/Common/version.h
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
#define STRINGIZE(s) STRINGIZE2(s)

#define VERSION_MAJOR 1
#define VERSION_MINOR 3
#define VERSION_MINOR 4
#define VERSION_REVISION 0
#define VERSION_BUILD 0

Expand Down
2 changes: 1 addition & 1 deletion Addons/VariousSettings/Common/version.h
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
#define STRINGIZE(s) STRINGIZE2(s)

#define VERSION_MAJOR 1
#define VERSION_MINOR 3
#define VERSION_MINOR 4
#define VERSION_REVISION 0
#define VERSION_BUILD 0

Expand Down
21 changes: 21 additions & 0 deletions YorozuyaGS/CheatCommand/CheatCommand.cpp
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
#include "stdafx.h"

#include <sstream>
#include "CheatCommand.h"

namespace GameServer
Expand All @@ -9,6 +10,7 @@ namespace GameServer
void CCheatCommand::load()
{
enable_hook(&ATF::Global::AuthorityFilter, &CCheatCommand::AuthorityFilter);
enable_hook(&ATF::CMainThread::Init, &CCheatCommand::Init);
}

void CCheatCommand::unload()
Expand Down Expand Up @@ -50,5 +52,24 @@ namespace GameServer
}
return true;
}

bool WINAPIV CCheatCommand::Init(
ATF::CMainThread * pObj,
ATF::Info::CMainThreadInit88_ptr next)
{
bool result = next(pObj);
if (result)
{
ATF::CLogFile* s_logCheat = (ATF::CLogFile *)0x1849ACC70L;

std::stringstream ss;
ss << "..\\ZoneServerLog\\ServiceLog\\Cheat" << ATF::Global::GetKorLocalTime();
ss << ".log";

s_logCheat->SetWriteLogFile((char *)ss.str().c_str(), TRUE, false, true, true);
}

return result;
}
}
}
6 changes: 6 additions & 0 deletions YorozuyaGS/CheatCommand/CheatCommand.h
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
#include "../../Common/Interfaces/ModuleInterface.h"

#include <ATF/Global__GlobalInfo.hpp>
#include <ATF/CMainThreadInfo.hpp>

namespace GameServer
{
Expand All @@ -21,11 +22,16 @@ namespace GameServer
virtual void unload() override;

virtual Yorozuya::Module::ModuleName_t get_name() override;

private:
static bool WINAPIV AuthorityFilter(
ATF::CHEAT_COMMAND* pCmd,
ATF::CPlayer* pOne,
ATF::Global::Info::AuthorityFilter25_ptr next);

static bool WINAPIV Init(
ATF::CMainThread* pObj,
ATF::Info::CMainThreadInit88_ptr next);
};
};
};
2 changes: 1 addition & 1 deletion YorozuyaGS/Common/version.h
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
#define STRINGIZE(s) STRINGIZE2(s)

#define VERSION_MAJOR 1
#define VERSION_MINOR 3
#define VERSION_MINOR 4
#define VERSION_REVISION 0
#define VERSION_BUILD 0

Expand Down

0 comments on commit aef3ff5

Please sign in to comment.