91av视频/亚洲h视频/操亚洲美女/外国一级黄色毛片 - 国产三级三级三级三级

  • 大小: 1.32MB
    文件類型: .rar
    金幣: 2
    下載: 0 次
    發(fā)布日期: 2023-10-03
  • 語(yǔ)言: 其他
  • 標(biāo)簽: 程序??

資源簡(jiǎn)介

一款完整的游戲源代碼,大家可以學(xué)習(xí)學(xué)習(xí)!

資源截圖

代碼片段和文件信息

//?Arminius‘?protocol?utilities?ver?0.1
//
//?Any?questions?and?bugs?mailto:?arminius@mail.hwaei.com.tw

//?-------------------------------------------------------------------
//?The?following?definitions?is?to?define?game-dependent?codes.
//?Before?compiling?remove?the?“//“.
#define?__STONEAGE
#include?“version.h“
#include?
#include?
#include?“autil.h“
#include?“char.h“
#ifdef?__STONEAGE
#include?“l(fā)ssproto_util.h“
#include?“common.h“
#endif


//?Nuke?0701?fix
char?*MesgSlice[SLICE_MAX];
int?SliceCount;

char?PersonalKey[4096];

//?-------------------------------------------------------------------
//?Initialize?utilities
//
BOOL?util_Init(?void)
{
??int?i;

??for?(i=0;?i????MesgSlice[i]?=?(char?*)?calloc(?1SLICE_SIZE);
????if(MesgSlice[i]==NULL)?return?FALSE;
??}

??SliceCount?=?0;
??strcpy(PersonalKey?_DEFAULT_PKEY);

return?TRUE;
}

//?-------------------------------------------------------------------
//?Split?up?a?message?into?slices?by?spearator.??Store?those?slices
//?into?a?global?buffer?“char?**MesgSlice“
//
//?arg:?source=message?string;??separator=message?separator?(1?byte)
//?ret:?(none)

//?WON?ADD
//void?util_SplitMessage(char?*source?char?*separator)
BOOL?util_SplitMessage(char?*source?char?*separator)
{
??if?(source?&&?separator)?{ //?NULL?input?is?invalid.
????char?*ptr;
????char?*head?=?source;
????
????//?Nuke?1006?:?Bug?fix
????while?((ptr?=?(char?*)?strstr(head?separator))?&&?(SliceCount=0))?{
??????ptr[0]?=?‘\0‘;
??????if?(strlen(head)
//?Nuke?0701
// if?(*MesgSlice?!=?*dumb)?{
//print(“Warning!?Mem?may?be?broken\n“);
//}
/*
????????if?(MesgSlice[SliceCount]==0xffffffff)?{
????????????????print(“MesgSlice[%d]?broken\n“SliceCount);
????????????????return?FALSE;
????????}?else?{
*/
????????????????strcpy(MesgSlice[SliceCount]?head);
????????????????SliceCount++;
????????//}

??????}
??????head?=?ptr+1;
????}
????strcpy(source?head); //?remove?splited?slices
??}
??return?TRUE;
}

//?-------------------------------------------------------------------
//?Encode?the?message
//
//?arg:?dst=output??src=input
//?ret:?(none)
void?util_EncodeMessage(char?*dst?char?*src)
{
//??strcpy(dst?src);
//??util_xorstring(dst?src);

??int?rn?=?rand()?%?99;
??int?t1?t2;
??char?t3[65500]?tz[65500];



??//?encode?seed
#ifdef?_BACK_VERSION
??util_swapint(&t1?&rn?“3421“);
#else
??util_swapint(&t1?&rn?“2413“);
#endif
??t2?=?t1?^?0xffffffff;
??util_256to64(tz?(char?*)?&t2?sizeof(int)?DEFAULTTABLE);

??util_shlstring(t3?src?rn);
??strcat(tz?t3);
??util_xorstring(dst?tz);
}

//?-------------------------------------------------------------------
//?Decode?the?message
//
//?arg:?dst=output??src=input
//?ret:?(none)
void?util_DecodeMessage(char?*dst?char?*src)
{
//??strcpy(dst?src);
//??util_x

?屬性????????????大小?????日期????時(shí)間???名稱
-----------?---------??----------?-----??----

?????文件??????14872??2004-08-10?10:34??石器時(shí)代\gmsv\autil.c

?????文件?????285652??2004-12-20?15:30??石器時(shí)代\gmsv\battle\battle.c

?????文件??????17680??2004-08-10?10:34??石器時(shí)代\gmsv\battle\battle_ai.c

?????文件??????32586??2004-12-16?13:56??石器時(shí)代\gmsv\battle\battle_command.c

?????文件?????305841??2004-12-21?11:22??石器時(shí)代\gmsv\battle\battle_event.c

?????文件??????31543??2004-12-08?09:58??石器時(shí)代\gmsv\battle\battle_item.c

?????文件?????170153??2004-12-21?10:00??石器時(shí)代\gmsv\battle\battle_magic.c

?????文件??????14823??2004-08-10?10:34??石器時(shí)代\gmsv\battle\Makefile

?????文件??????76054??2004-12-16?15:45??石器時(shí)代\gmsv\battle\pet_skill.c

?????文件??????40308??2004-08-11?16:45??石器時(shí)代\gmsv\battle\profession_skill.c

?????文件????????176??2004-12-21?11:22??石器時(shí)代\gmsv\battle\vssver.scc

?????文件???????4823??2004-08-10?10:34??石器時(shí)代\gmsv\buf.c

?????文件??????58501??2004-11-24?09:59??石器時(shí)代\gmsv\callfromac.c

?????文件??????67261??2004-10-01?11:33??石器時(shí)代\gmsv\callfromcli.c

?????文件??????26782??2004-08-10?10:34??石器時(shí)代\gmsv\char\addressbook.c

?????文件?????268196??2004-12-16?14:37??石器時(shí)代\gmsv\char\char.c

?????文件??????22050??2004-09-10?11:46??石器時(shí)代\gmsv\char\char_angel.c

?????文件?????113876??2004-12-08?09:58??石器時(shí)代\gmsv\char\char_base.c

?????文件??????57965??2004-10-08?15:28??石器時(shí)代\gmsv\char\char_data.c

?????文件??????19067??2004-09-29?09:38??石器時(shí)代\gmsv\char\char_event.c

?????文件??????75269??2004-11-25?21:02??石器時(shí)代\gmsv\char\char_item.c

?????文件??????20563??2004-09-01?09:37??石器時(shí)代\gmsv\char\char_party.c

?????文件??????42116??2004-12-08?11:07??石器時(shí)代\gmsv\char\char_talk.c

?????文件??????44624??2004-08-10?10:34??石器時(shí)代\gmsv\char\char_walk.c

?????文件?????152500??2004-12-08?11:13??石器時(shí)代\gmsv\char\chatmagic.c

?????文件??????32151??2004-08-10?10:34??石器時(shí)代\gmsv\char\chatroom.c

?????文件??????60772??2004-09-02?14:20??石器時(shí)代\gmsv\char\deathcontend.c

?????文件???????4602??2004-08-10?10:34??石器時(shí)代\gmsv\char\defaultGroundEnemy.h

?????文件??????11380??2004-11-24?09:59??石器時(shí)代\gmsv\char\defaultPlayer.h

?????文件????????520??2004-08-10?10:34??石器時(shí)代\gmsv\char\defend.c

............此處省略363個(gè)文件信息

評(píng)論

共有 條評(píng)論

相關(guān)資源