pastebin v0.1.7
nasty batch file hah
Jun 26 2010 5:34 AM
hits: 49
shit
May 19 2010 6:58 PM
hits: 84
shit
May 19 2010 6:48 PM
hits: 71
shit
May 19 2010 6:42 PM
hits: 70
Anonymous
May 9 2010 12:29 PM
hits: 81
Anonymous
Apr 28 2010 11:06 PM
hits: 79
RedHate
Apr 28 2010 10:10 PM
hits: 79
RedHate
Apr 28 2010 10:08 PM
hits: 81
JustHost support
Apr 13 2010 8:28 PM
hits: 174
rsc chatlog 2
Apr 8 2010 7:26 AM
hits: 91
rsc chatlog
Apr 8 2010 7:07 AM
hits: 110
Zones
Feb 28 2010 11:44 AM
hits: 112

Valid HTML 4.01 Strict

Valid CSS!


  1
  2
  3
  4
  5
  6
  7
  8
  9
 10
 11
 12
 13
 14
 15
 16
 17
 18
 19
 20
 21
 22
 23
 24
 25
 26
 27
 28
 29
 30
 31
 32
 33
 34
 35
 36
 37
 38
 39
 40
 41
 42
 43
 44
 45
 46
 47
 48
 49
 50
 51
 52
 53
 54
 55
 56
 57
 58
 59
 60
 61
 62
 63
 64
 65
 66
 67
 68
 69
 70
 71
 72
 73
 74
 75
 76
 77
 78
 79
 80
 81
 82
 83
 84
 85
 86
 87
 88
 89
 90
 91
 92
 93
 94
 95
 96
 97
 98
 99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
/* red's plugin proggy */
#include <pspkernel.h>
#include <pspkerneltypes.h>
#include <pspsdk.h>
#include <pspmoduleinfo.h>
#include <pspiofilemgr.h>
#include <pspiofilemgr_kernel.h>
#include <pspmodulemgr.h>
#include <pspthreadman.h>
#include <pspwlan.h>
#include <stdio.h>
#include <stdlib.h>
#include <pspchnnlsv.h>
#include <pspctrl.h>
#include <string.h>
#include <pspctrl_kernel.h>
#include <pspdisplay.h>
#include <pspdisplay_kernel.h>
#include <pspthreadman_kernel.h>
#include <psppower.h> //for battery options
#include <pspumd.h>
 
PSP_MODULE_INFO("PRXLOADER", 0x1000, 1, 1);
PSP_MAIN_THREAD_ATTR(0); 
 
u32 state;
SceUID module;
SceUID thid;
 
int module_start(SceSize args, void *argp) __attribute__((alias("_start")));
int module_stop(SceSize args, void *argp) __attribute__((alias("_stop")));
 
#define SelectorColor pspDebugScreenSetTextColor(0xFFCCCCCC);
#define HiLite1 pspDebugScreenSetTextColor(0xFF0000FF - (counter * 0x00000008));
#define HiLite2 pspDebugScreenSetTextColor(0xFF0000FF - (counter * 0x00000004));
#define bgcolor pspDebugScreenSetBackColor(0xFF000000);
 
int running=0;
int OverAllSelector=0;
int installed[2];
 
char *lables[]={"  Disable Updates", "  Enable Updates", "  Exit"};
char *inst_lables[]={"  Finished  ", "  Finished  "};
 
void OverAllGui()
{
 
	bgcolor;
	SelectorColor;
	pspDebugScreenSetXY(0, 1);
 
	pspDebugScreenPuts("  Update disabler by SnubSix \n\n");
 
	int counter=0;
	while(counter < 3)
	{
 
		if(counter == OverAllSelector)
		{	
			SelectorColor;
		}
		else
		{
			HiLite1;
		}
 
		pspDebugScreenPuts(lables[counter]);
 
		if(installed[counter])
			pspDebugScreenPuts(inst_lables[counter]);
 
		pspDebugScreenPuts("\n");
 
		counter++;
 
	}
 
	pspDebugScreenSetXY(0, 32);
	SelectorColor;
 
}
 
void setupFlash()
{
 
	int uas1 = sceIoUnassign("flash0:");
	if(uas1 < 0)
	{
		pspDebugScreenSetXY(0, 33);
		pspDebugScreenPuts("  Failed to unassign flash0 \n\n");
		return 0;
	} 
 
	int as1  = sceIoAssign("flash0:", "lflash0:0,0", "flashfat0:", 0, IOASSIGN_RDWR, 0);
	if(as1 < 0)
	{
		pspDebugScreenSetXY(0, 33);
		pspDebugScreenPuts("  Failed to assign flash0 \n\n");
		return 0;
	}
 
}
 
unsigned int getfilesize(char buffer[])
{
	unsigned int offset=0;
	int fd=sceIoOpen(buffer, PSP_O_RDONLY, 0777);
	if(fd > 0)
	{
		offset=sceIoLseek(fd, 0, SEEK_END);
	}
	sceIoLseek(fd, 0, SEEK_SET);
	return offset;
}
 
int writeFile(char path[], unsigned char buffer[], unsigned int size_buffer)
{
	signed int fd;
 
	fd = sceIoOpen(path, PSP_O_CREAT | PSP_O_WRONLY | PSP_O_TRUNC, 0777);
	sceIoWrite(fd, buffer, size_buffer);
	sceIoClose(fd);
 
	fd=sceIoOpen(path, PSP_O_RDONLY, 0777);
	if(fd > 0)
	{
		sceIoClose(fd);
		sceKernelDelayThread(150000);
		return 1;
	}
	else
	{
		sceIoClose(fd);
		sceKernelDelayThread(150000);
		return 0;
	}
 
}
 
 
int OverAllControls()
{
	int fd;
	OverAllGui();
	setupFlash();
 
	SceCtrlData pad;
	sceCtrlSetSamplingCycle(0);
 
	unsigned char **buffer;
	int filesize;
 
	while(running)
	{
 
		sceCtrlReadBufferPositive(&pad, 1); 
 
		if (pad.Buttons != 0)
		{
 
			if (pad.Buttons & PSP_CTRL_UP)
			{
				if(OverAllSelector > 0) OverAllSelector--;
				OverAllGui();
				sceKernelDelayThread(150000);
			}
 
			if (pad.Buttons & PSP_CTRL_DOWN)
			{
				if(OverAllSelector < 2) OverAllSelector++;
				OverAllGui();
				sceKernelDelayThread(150000);
			}
 
			if (pad.Buttons & PSP_CTRL_CROSS)
			{
				switch(OverAllSelector)
				{
					case 0:
						filesize=0;
						fd=sceIoOpen("flash0:/vsh/module/update_plugin.prx", PSP_O_RDONLY, 0777);
						if(fd > 0)
						{
							filesize=getfilesize("flash0:/vsh/module/update_plugin.prx");
							sceIoRead(fd, buffer, filesize);
							writeFile("flash0:/vsh/module/update_plugin.old", buffer, filesize);
							sceIoRemove("flash0:/vsh/module/update_plugin.prx");
							installed[0]=1;
						}
					break;
					case 1:
						filesize=0;
						fd=sceIoOpen("flash0:/vsh/module/update_plugin.old", PSP_O_RDONLY, 0777);
						if(fd > 0)
						{
							filesize=getfilesize("flash0:/vsh/module/update_plugin.old");
							sceIoRead(fd, buffer, filesize);
							writeFile("flash0:/vsh/module/update_plugin.prx", buffer, filesize);
							sceIoRemove("flash0:/vsh/module/update_plugin.old");
							installed[0]=1;
						}
					break;
					case 2:
						running = 0;
						sceKernelExitGame();
					break;
				}
				OverAllGui();
				sceKernelDelayThread(150000);
			}
 
			if (pad.Buttons & PSP_CTRL_START)
			{
				running = 0;
				sceKernelExitGame();
			}
 
		}
 
	}
	return;
}
 
 
int main(int argc, char *argv[])
{
	running=1;
	pspDebugScreenInit();
    OverAllControls();
	return 0;
}
 
int _start(SceSize args, void *argp)
{
	thid=sceKernelCreateThread("psnPSPThread", main, 0x18, 0x500, 0, NULL);
	if(thid >= 0) sceKernelStartThread(thid, 0, NULL);
	return 0;
}
 
int _stop(SceSize args, void *argp)
{
	sceKernelTerminateThread(thid);
	sceKernelExitGame();
	return 0;
}
 

paste below
title
language
description/question
action