Hacking SneekyCompiler

  • Thread starter Thread starter scooby74029
  • Start date Start date
  • Views Views 43,773
  • Replies Replies 307
SifJar said:
you have the line "#include env.ahk" at the start of your code right?

something like this should work fine:

Code:
Env_Append("Path", ";C:\test\")

EDIT: If it still doesn't work, there is a sort of workaround to do it in AHK without extra libs by writing the registry. That is basically all my library does anyway, so you could look at the source of Env_Append() in env.ahk if you want to see how to do it that way.


sifjar i am using a 64bit system will this affect your env.ahk

i was reading at the autohotkeys site and someone there said to do this on a 64bit machine i would have to use regread64() or regwrite64()

from here: http://www.autohotkey.com/forum/topic39560.html

is this the problem you think?
 
scooby74029 said:
SifJar said:
you have the line "#include env.ahk" at the start of your code right?

something like this should work fine:

Code:
Env_Append("Path", ";C:\test\")

EDIT: If it still doesn't work, there is a sort of workaround to do it in AHK without extra libs by writing the registry. That is basically all my library does anyway, so you could look at the source of Env_Append() in env.ahk if you want to see how to do it that way.


sifjar i am using a 64bit system will this affect your env.ahk

i was reading at the autohotkeys site and someone there said to do this on a 64bit machine i would have to use regread64() or regwrite64()

from here: http://www.autohotkey.com/forum/topic39560.html

is this the problem you think?

Probably, yeah. I have never used AHK on a 64bit system.
 
It should just be a case of changing the registry reading/writing functions. You only really need to update Env_Append and copy that function into your .AHK file somewhere.
 
ok so now i know i am doing something wrong

i tried this on my 32bit machine and it still doesnt write to the path in system variables

would it be ok if i upload my complete source somewhere and you check it out and see if you can get it to write to your machine correctly?
 
It would be, but I am going to bed now and won't be back online for about a month and a half. Sorry
frown.gif
 
ok yeah i redid it again but this time it should work for everyone

new version on first post change log there

please someone try this out and let me know if it works for you i tried it several times and it works everytime

choose what you want then hit build and let it run

warning: this new version takes control of the mouse so just set back and watch!!

scooby74029
 
I was just checking to see if anyone who downloaded this new version had any feedback for me

did it work? or not?

did you like the fact that the mouse is taken over and does most everything with crediars installer for you?

like i said was just looking for some feedback

scooby74029
 
Hey man, I downloaded this, and used it to install python and devkit (devkit was already installed, but I let it update anyways). Then I told it to build rev 151 of uneek+di, it opened a command window and did nothing. I think the problem was that I needed to restart after installing python, but I didn't have time to do that last night before going to bed, so I'll try to test it again today after work after having restarted. But if it is the case that users are required to restart after installing the programs before using sneeky compiler, perhaps you should have a msg box after the installation is completed stating that.

running windows 7 - 64 bit

keep up the good work, and I'll try to report back with more info as soon as I can
 
yeah you do and ill add that in the first post and in the next release ill fix it

also i am going to add

-ability to use custom es and di modules

like if user wants to turn on sd access for sneek(sd) or adding hacks to the menu before compiling

but first i want to see if this works for anyone but me

scooby74029
 
Hey just tried it and so far it works great.. compiled sneek and it works..
and if you make your app to make it possible to enable SD access for sneek, that will just be really awesome (using that already r151 with SD access enable, but got that from one i know)
btw what do you mean by your app will take control over the mouse? it dont here!
and Phyton should i uninstall that first, before running this ?

Thanks and cheers
 
Fox888 said:
Hey just tried it and so far it works great.. compiled sneek and it works..
and if you make your app to make it possible to enable SD access for sneek, that will just be really awesome (using that already r151 with SD access enable, but got that from one i know)
btw what do you mean by your app will take control over the mouse? it dont here!
and Phyton should i uninstall that first, before running this ?

Thanks and cheers


hmmm it should take control of the mouse and then click on install sneek for you and then click the ok button after that and then exit the SNEEKInstaller

you can leave it but you no longer need it with my app but if you want to compile your own armboot.bin then you need it

thanks for the feedback!!!

scooby74029
 
@fox88

did you have any other windows open when you ran sneeky?

if so minimize all windows before you hit the build button and let me know what happens and dont touch the mouse or anything else until it is done

please try it again and let me know what happens

thanks

scooby74029
 
@walker

just uncheck the psp thing you dont need it then it should work for you thats a problem with devkitpro installer

alot of people had that same problem so just uncheck that box then continue with install

scooby74029
 
scooby74029 said:
@fox88

did you have any other windows open when you ran sneeky?

if so minimize all windows before you hit the build button and let me know what happens and dont touch the mouse or anything else until it is done

please try it again and let me know what happens

thanks

scooby74029


Thats it, i did have other windows open, so i closed all windows and tried it again, oh spooky but great i really like it
Thanks a lot..
yaywii.gif
 
scooby74029 said:
@walker

just uncheck the psp thing you dont need it then it should work for you thats a problem with devkitpro installer

alot of people had that same problem so just uncheck that box then continue with install

scooby74029

Thanx. That fixed it.

I'm installing Sneek+DI as we speak, and I see a lot of warnings. Are these normal ?
Also, I didn't read the part about not touching the mouse and went on using my laptop.
Could this have interfered with anything ?

[edit]
Just read the above comment
smile.gif
I'll try again.
[/edit]

Building..
make: Entering directory `/c/Users/Rob/Desktop/Wii/SneekyCompiler/SneekyCompiler
_SSE/es'
DEP string.d
DEP vsprintf.d
DEP syscalls.d
DEP main.d
DEP NAND.d
DEP ES.d
DEP utils_asm.d
DEP FS.d
DEP SMenu.d
DEP SDI.d
DEP DI.d
DEP gecko.d
DEP alloc.d
DEP common.d
DEP font.d
DEP image.d
DEP start.d
make: Leaving directory `/c/Users/Rob/Desktop/Wii/SneekyCompiler/SneekyCompiler_
SSE/es'
make: Entering directory `/c/Users/Rob/Desktop/Wii/SneekyCompiler/SneekyCompiler
_SSE/es'
rm -f *.elf *.o *.bin *.d *.map
AS start.o
CC image.o
CC font.o
CC common.o
CC alloc.o
CC gecko.o
CC DI.o
CC SDI.o
CC SMenu.o
SMenu.c: In function 'SMenuDraw':
SMenu.c:786:5: warning: passing argument 1 of 'memcpy' makes pointer from intege
r without a cast
string.h:20:13: note: expected 'void *' but argument is of type 'u32'
CC FS.o
AS utils_asm.o
CC ES.o
ES.c: In function 'ES_BootSystem':
ES.c:194:4: warning: implicit declaration of function 'PanicBlink'
ES.c: In function 'ES_DIVerify':
ES.c:916:2: warning: pointer targets in passing argument 1 of 'iES_GetTicketView
' differ in signedness
ES.c:575:6: note: expected 'u8 *' but argument is of type 'char *'
CC NAND.o
CC main.o
AS syscalls.o
CC vsprintf.o
CC string.o
LD esmodule.elf
make: Leaving directory `/c/Users/Rob/Desktop/Wii/SneekyCompiler/SneekyCompiler_
SSE/es'
make: Entering directory `/c/Users/Rob/Desktop/Wii/SneekyCompiler/SneekyCompiler
_SSE/fs'
make: Leaving directory `/c/Users/Rob/Desktop/Wii/SneekyCompiler/SneekyCompiler_
SSE/fs'
make: Entering directory `/c/Users/Rob/Desktop/Wii/SneekyCompiler/SneekyCompiler
_SSE/fs'
rm -f *.elf *.o *.bin *.d *.map
sdhc.c: In function 'sdhc_transfer_data':
sdhc.c:611:5: warning: implicit declaration of function 'dbgprintf'
ff.c: In function 'sync':
ff.c:271:4: warning: implicit declaration of function 'memset8'
ff.c: At top level:
ff.c:632:13: warning: conflicting types for built-in function 'toupper'
ff.c: In function 'gen_numname':
ff.c:750:2: warning: implicit declaration of function 'memcpy'
sdmmc.c: In function 'sdmmc_needs_discover':
sdmmc.c:173:3: warning: implicit declaration of function 'dbgprintf'
diskio.c: In function 'disk_read':
diskio.c:45:2: warning: implicit declaration of function 'memcpy'
diskio.c: In function 'disk_write':
diskio.c:60:2: warning: implicit declaration of function 'sdmmc_write'
FS.c: In function 'FFS_Ioctlv':
FS.c:102:4: warning: implicit declaration of function 'disk_read'
FS.c:109:4: warning: implicit declaration of function 'disk_write'
main.c: In function '_main':
main.c:97:2: warning: implicit declaration of function 'sdhc_init'
string.c: In function 'strlcpy':
string.c:59:2: warning: implicit declaration of function 'memcpy'
make: Leaving directory `/c/Users/Rob/Desktop/Wii/SneekyCompiler/SneekyCompiler_
SSE/fs'
make: Entering directory `/c/Users/Rob/Desktop/Wii/SneekyCompiler/SneekyCompiler
_SSE/fs-usb'
DEP usb_os.d
DEP tiny_ehci_glue.d
DEP string.d
DEP vsprintf.d
DEP main.d
DEP FS.d
DEP gecko.d
DEP utils_asm.d
DEP syscalls.d
DEP ff.d
DEP diskio.d
DEP alloc.d
DEP start.d
make: Leaving directory `/c/Users/Rob/Desktop/Wii/SneekyCompiler/SneekyCompiler_
SSE/fs-usb'
make: Entering directory `/c/Users/Rob/Desktop/Wii/SneekyCompiler/SneekyCompiler
_SSE/fs-usb'
rm -f *.elf *.o *.bin *.d *.map
AS start.o
CC alloc.o
CC diskio.o
diskio.c: In function 'disk_initialize':
diskio.c:35:2: warning: implicit declaration of function 'tiny_ehci_init'
diskio.c: In function 'disk_write':
diskio.c:80:2: warning: passing argument 2 of 'memcpy' discards qualifiers from
pointer target type
string.h:15:13: note: expected 'void *' but argument is of type 'const BYTE *'
diskio.c:78:6: warning: unused variable 'i'
CC ff.o
ff.c:632:13: warning: conflicting types for built-in function 'toupper'
ff.c: In function 'gen_numname':
ff.c:750:2: warning: passing argument 2 of 'memcpy' discards qualifiers from poi
nter target type
string.h:15:13: note: expected 'void *' but argument is of type 'const BYTE *'
ff.c: In function 'f_write':
ff.c:1862:3: warning: passing argument 2 of 'memcpy' discards qualifiers from po
inter target type
string.h:15:13: note: expected 'void *' but argument is of type 'const BYTE *'
AS syscalls.o
AS utils_asm.o
CC gecko.o
CC FS.o
FS.c: In function 'FFS_Ioctlv':
FS.c:73:5: warning: implicit declaration of function 'memset32'
FS.c: In function 'FFS_Ioctl':
FS.c:254:6: warning: implicit declaration of function 'hexdump'
CC main.o
CC vsprintf.o
CC string.o
CC tiny_ehci_glue.o
In file included from ehci.c:766:0,
from tiny_ehci_glue.c:91:
usbstorage.c: In function '__send_cbw':
usbstorage.c:100:2: warning: passing argument 2 of 'memcpy' discards qualifiers
from pointer target type
string.h:15:13: note: expected 'void *' but argument is of type 'const u8 *'
CC usb_os.o
usb_os.c: In function 'ehci_maligned':
usb_os.c:22:13: warning: initialization makes integer from pointer without a cas
t
LD iosmodule.elf
@/c/devkitPro/devkitARM/bin/arm-eabi-strip iosmodule.elf
make: Leaving directory `/c/Users/Rob/Desktop/Wii/SneekyCompiler/SneekyCompiler_
SSE/fs-usb'
make: Entering directory `/c/Users/Rob/Desktop/Wii/SneekyCompiler/SneekyCompiler
_SSE/di'
DEP usb_os.d
DEP tiny_ehci_glue.d
DEP string.d
DEP vsprintf.d
DEP gecko.d
DEP utils_asm.d
DEP syscalls.d
DEP main.d
DEP DIGlue.d
DEP FS.d
DEP dip.d
DEP alloc.d
DEP ff.d
DEP diskio.d
DEP start.d
make: Leaving directory `/c/Users/Rob/Desktop/Wii/SneekyCompiler/SneekyCompiler_
SSE/di'
make: Entering directory `/c/Users/Rob/Desktop/Wii/SneekyCompiler/SneekyCompiler
_SSE/di'
rm -f *.elf *.o *.bin *.d *.map
AS start.o
CC diskio.o
diskio.c: In function 'disk_initialize':
diskio.c:35:6: warning: unused variable 's_cnt'
CC ff.o
ff.c:632:13: warning: conflicting types for built-in function 'toupper'
CC alloc.o
CC dip.o
dip.c: In function 'DIP_Ioctl':
dip.c:1017:4: warning: implicit declaration of function 'memset32'
CC FS.o
FS.c: In function 'ISFS_CreateFile':
FS.c:28:2: warning: implicit declaration of function 'memset32'
FS.c: In function 'ISFS_ReadDir':
FS.c:67:13: warning: assignment makes pointer from integer without a cast
FS.c:69:13: warning: assignment makes pointer from integer without a cast
FS.c:81:13: warning: assignment makes pointer from integer without a cast
FS.c:83:13: warning: assignment makes pointer from integer without a cast
FS.c:86:13: warning: assignment makes pointer from integer without a cast
FS.c:88:13: warning: assignment makes pointer from integer without a cast
CC DIGlue.o
DIGlue.c: In function 'DVDOpen':
DIGlue.c:182:15: warning: pointer targets in assignment differ in signedness
DIGlue.c:184:15: warning: assignment makes pointer from integer without a cast
CC main.o
main.c: In function '_main':
main.c:104:6: warning: unused variable 'fres'
AS syscalls.o
AS utils_asm.o
CC gecko.o
CC vsprintf.o
CC string.o
CC tiny_ehci_glue.o
CC usb_os.o
LD dimodule.elf
@/c/devkitPro/devkitARM/bin/arm-eabi-strip dimodule.elf
make: Leaving directory `/c/Users/Rob/Desktop/Wii/SneekyCompiler/SneekyCompiler_
SSE/di'
make: Entering directory `/c/Users/Rob/Desktop/Wii/SneekyCompiler/SneekyCompiler
_SSE/mini-tree-mod'
rm -f armboot.bin git_version.h
make -C elfloader clean
make[1]: Entering directory `/c/Users/Rob/Desktop/Wii/SneekyCompiler/SneekyCompi
ler_SSE/mini-tree-mod/elfloader'
rm -f elfloader.bin
rm -rf .deps
rm -f elfloader.elf elfloader.elf.map start.o stub.o string.o utils.o
make[1]: Leaving directory `/c/Users/Rob/Desktop/Wii/SneekyCompiler/SneekyCompil
er_SSE/mini-tree-mod/elfloader'
rm -rf .deps
rm -f armboot.elf armboot.elf.map start.o main.o ipc.o vsprintf.o string.o gecko
.o memory.o memory_asm.o utils_asm.o utils.o ff.o diskio.o sdhc.o powerpc_elf.o
powerpc.o panic.o irq.o irq_asm.o exception.o exception_asm.o seeprom.o crypto.o
nand.o boot2.o ldhack.o sdmmc.o
ASSEMBLE start.S
GITVER git_version.h
COMPILE main.c
main.c: In function '_main':
main.c:109:1: warning: label 'shutdown' defined but not used
main.c:40:6: warning: unused variable 'res'
COMPILE ipc.c
COMPILE vsprintf.c
COMPILE string.c
COMPILE gecko.c
COMPILE memory.c
ASSEMBLE memory_asm.S
ASSEMBLE utils_asm.S
COMPILE utils.c
COMPILE ff.c
ff.c:841:9: warning: 'dir_read' defined but not used
 

Site & Scene News

Popular threads in this forum