Skip to content

Commit

Permalink
Remove debug pritns.
Browse files Browse the repository at this point in the history
  • Loading branch information
Y-Less committed May 14, 2021
1 parent 4f0025b commit 73b851e
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 41 deletions.
6 changes: 0 additions & 6 deletions YSI_Core/y_core/y_scriptinit_impl.inc
Original file line number Diff line number Diff line change
Expand Up @@ -372,22 +372,16 @@ static bool:ScriptInit_CallOnCodeInit(bool:jit, bool:fs)
YSI_Print(" ");
#endif
#if defined ScriptInit_OnCodeInit
new s0 = tickcount();
printf("Generation Time:");
ScriptInit_OnCodeInit();
printf("%d", tickcount() - s0);
#endif
#if !defined YSI_NO_MODE_CACHE
new
E_SCRIPTINIT_STATE:tmp = YSI_g_sScriptInitState & (E_SCRIPTINIT_STATE_JITING | E_SCRIPTINIT_STATE_JITED);
// Set the variable to something unique for next load. This will be written out, thus
// loaded in next time.
YSI_g_sScriptInitState = E_SCRIPTINIT_STATE_RELOAD;
new s1 = tickcount();
printf("Dump Time:");
if (DumpAMX_Write(name))
{
printf("%d", tickcount() - s1);
// Clear this flag after dumping. This is so we can tell when a mode is cached.
YSI_g_sScriptInitState = tmp | E_SCRIPTINIT_STATE_DUMPED;
#if !defined YSI_NO_CACHE_MESSAGE
Expand Down
35 changes: 0 additions & 35 deletions YSI_Extra/y_inline_bcrypt.inc
Original file line number Diff line number Diff line change
Expand Up @@ -153,23 +153,8 @@ Optional plugins:

public _Inline_BCryptHashDone(Func:cb<s>, hashid)
{
printf("cb: %d", cb);
printf("hashid: %d", hashid);
new hash[61];
_YSI_bcrypt_get_hash_unconst(hash);
printf("hash: %s", hash);
printf("hash: %d", hash[0]);
printf("hash: %d", hash[1]);
printf("hash: %d", hash[2]);
new Alloc:a = Malloc_Reconcile(Indirect_DeRef2(cb));
printf("%08x", mget(a, 0));
printf("%08x", mget(a, 1));
printf("%08x", mget(a, 2));
printf("%08x", mget(a, 3));
printf("%08x", mget(a, 4));
printf("%08x", mget(a, 5));
printf("%08x", mget(a, 6));
printf("%08x", mget(a, 7));
new ret = @.cb(hash);
Indirect_Release(cb);
return ret;
Expand All @@ -190,27 +175,7 @@ Optional plugins:

stock BCrypt_HashInline(const text[], cost = 12, Func:cb<s>)
{
printf("cc: %d", cb);
printf("%d", Indirect_DeRef2(cb));
printf("%d", Malloc_Reconcile(Indirect_DeRef2(cb)));
new test = malloc(100);
printf("%d", test);
printf("%d", Malloc_Resolve(test));
printf("%d", Malloc_Reconcile(Malloc_Resolve(test)));
printf("%d", Indirect_Ptr(Malloc_Resolve(test)));
printf("%d", Indirect_DeRef2(Indirect_Ptr(Malloc_Resolve(test))));
printf("%d", Malloc_Reconcile(Indirect_DeRef2(Indirect_Ptr(Malloc_Resolve(test)))));
new Alloc:a = Malloc_Reconcile(Indirect_DeRef2(cb));
printf("%08x", mget(a, 0));
printf("%08x", mget(a, 1));
printf("%08x", mget(a, 2));
printf("%08x", mget(a, 3));
printf("%08x", mget(a, 4));
printf("%08x", mget(a, 5));
printf("%08x", mget(a, 6));
printf("%08x", mget(a, 7));
new ret = _YSI_bcrypt_hash_const(cb, "_Inline_BCryptHashDone", text, cost);
printf("ret: %d", ret);
if (ret)
{
Indirect_Claim(cb);
Expand Down

0 comments on commit 73b851e

Please sign in to comment.