rtoss

Subversion Repositories:
Compare Path: Rev
With Path: Rev
/ @ 333  →  / @ 334
/PokemonHackSourceCode/PokemonMemHack/MemMiscPage2.cpp
@@ -128,6 +128,7 @@
BOOL bMaxAP;
BOOL bMaxInti;
BOOL bUseNumber;
BOOL bAllPkmn;
DWORD dwLang;
BYTE bGameVersion;
BYTE bSex;
@@ -147,6 +148,7 @@
bMaxAP = (IsDlgButtonChecked(IDC_MAX_AP) == BST_CHECKED) ? TRUE : FALSE;
bMaxInti = (IsDlgButtonChecked(IDC_MAX_INTI) == BST_CHECKED) ? TRUE : FALSE;
bUseNumber = (IsDlgButtonChecked(IDC_PC_NAME_NUMBER) == BST_CHECKED) ? TRUE : FALSE;
bAllPkmn = (IsDlgButtonChecked(IDC_ALLPKMN) == BST_CHECKED) ? TRUE : FALSE;
 
if(IsDlgButtonChecked(IDC_PC_NAME_JP) == BST_CHECKED)
dwLang = lang_jp;
@@ -166,7 +168,7 @@
 
BOOL bResult = TRUE;
BOOL bTrainerNameOk;
WORD wIndex, wBreed;
WORD wIndex, wBreed, wAllCount;
DWORD dwPlayerId = 0;
CString szName;
CPokemonCodec * ppc = NULL;
@@ -183,12 +185,16 @@
if(bResult)
{
bTrainerNameOk = g_MemHack.GetPlayerName(bTrainerName);
wAllCount = bAllPkmn ? 411 : 386;
 
for(wIndex = 0; wIndex < 386; ++wIndex)
for(wIndex = 0; wIndex < wAllCount; ++wIndex)
{
ppc = &(g_MemHack.m_pStoredPokeCodec[wIndex]);
 
wBreed = ConvertBreed(wIndex + 1, TRUE);
if(!bAllPkmn)
wBreed = ConvertBreed(wIndex + 1, TRUE);
else
wBreed = wIndex + 1;
pBreed = g_MemRom.GetBreedListEntry(wBreed);
ppc->CreatePokemon(wBreed, dwLang, bGameVersion);
 
/PokemonHackSourceCode/PokemonMemHack/resource.h
@@ -211,6 +211,7 @@
#define IDC_BREED_ABL_SUM 1516
#define IDC_NO_NAME 1900
#define IDC_ENABLE_TEXT 1901
#define IDC_ALLPKMN 1911
#define IDC_SECRET 2490
#define IDC_DECODE 2491
#define IDC_ENCODE 2492
@@ -234,7 +235,7 @@
#ifndef APSTUDIO_READONLY_SYMBOLS
#define _APS_NEXT_RESOURCE_VALUE 148
#define _APS_NEXT_COMMAND_VALUE 32771
#define _APS_NEXT_CONTROL_VALUE 1911
#define _APS_NEXT_CONTROL_VALUE 1912
#define _APS_NEXT_SYMED_VALUE 104
#endif
#endif
/PokemonHackSourceCode/PokemonMemHack/PokemonMemHack.rc
@@ -357,6 +357,7 @@
PUSHBUTTON "ÒÀÉÏÑ¡ÔñÉ趨¸öÌåÖµ",IDC_SET_INDV,144,150,114,14
PUSHBUTTON "×Ô¶¯É趨¡°Éñ³èÌý»°¡±",IDC_SET_OBEDIENCE,144,168,114,14
PUSHBUTTON "È«²¿ÉèΪºÀ»ªÇò",IDC_SET_POKEBALL,144,186,114,14
CONTROL "All",IDC_ALLPKMN,"Button",BS_AUTOCHECKBOX | WS_TABSTOP,266,130,23,10
END
 
IDD_MEM_MISC1 DIALOGEX 0, 0, 370, 219