/programs/cmm/diff/diff.c |
---|
2,10 → 2,9 |
//by den po - jdp@bk.ru |
#define MEMSIZE 4096 * 60 |
#include "../lib/io.h" |
#include "../lib/fs.h" |
#include "../lib/strings.h" |
#include "../lib/obj/console.h" |
IO io1, io2; |
#define MAX_PATH 260 |
92,12 → 91,9 |
char s1; |
int s2; |
srcfile = io1.read(srcfilename); |
dstfile = io2.read(dstfilename); |
read_file(srcfilename, #srcfile, #srcfilesize); |
read_file(dstfilename, #dstfile, #dstfilesize); |
srcfilesize = io1.FILES_SIZE; |
dstfilesize = io2.FILES_SIZE; |
if (!srcfile) die("'First file not found' -E"); |
if (!dstfile) die("'Second file not found' -E"); |
/programs/cmm/lib/fs.h |
---|
198,6 → 198,16 |
$int 0x40 |
} |
void read_file(dword path1, buf, size) |
{ |
EAX = 68; |
EBX = 27; |
ECX = path1; |
$int 0x40; |
ESDWORD[size] = EDX; |
ESDWORD[buf] = EAX; |
} |
//===================================================// |
// // |
// Misc // |
/programs/cmm/lib/kfont.h |
---|
21,7 → 21,7 |
#endif |
#ifndef INCLUDE_IO_H |
#include "../lib/io.h" |
#include "../lib/fs.h" |
#endif |
#include "../lib/patterns/rgb.h" |
69,14 → 69,13 |
:bool KFONT::init(dword font_path) |
{ |
IO label_io; |
dword fsize_notused; |
if(font)free(font); |
label_io.read(font_path); |
read_file(font_path, #font_begin, #fsize_notused); |
if(!EAX) { |
label_io.run("/sys/@notify", "'Error: KFONT is not loaded.' -E"); |
RunProgram("/sys/@notify", "'Error: KFONT is not loaded.' -E"); |
return false; |
} |
font_begin = label_io.buffer_data; |
changeSIZE(); |
smooth = true; |
return true; |
/programs/cmm/menu/menu.c |
---|
1,7 → 1,6 |
#define MEMSIZE 4096*40 |
#include "../lib/gui.h" |
#include "../lib/io.h" |
#include "../lib/collection.h" |
#include "../lib/list_box.h" |
#include "../lib/fs.h" |
/programs/cmm/misc/software_widget.c |
---|
5,7 → 5,6 |
#define MEMSIZE 4096 * 15 |
#include "..\lib\strings.h" |
#include "..\lib\mem.h" |
#include "..\lib\io.h" |
#include "..\lib\gui.h" |
#include "..\lib\obj\libio.h" |
266,7 → 265,7 |
// }end |
if (file_exists(#run_app_path)) { |
io.run(#run_app_path, param_pos); //0 or offset |
RunProgram(#run_app_path, param_pos); //0 or offset |
if (param_pos) ESBYTE[param_pos - 1] = '|'; |
} else { |
notify("'Application not found' -E"); |
/programs/cmm/sysmon/sysmon.c |
---|
16,7 → 16,6 |
// // |
//===================================================// |
#include "../lib/io.h" |
#include "../lib/gui.h" |
#include "../lib/fs.h" |
#include "../lib/list_box.h" |
134,7 → 133,7 |
EventKillCurrentProcess(); |
} |
if (BTN_ID_PROC_INFO == btn) { |
io.run("/sys/tinfo", itoa(GetProcessSlot(current_process_id))); |
RunProgram("/sys/tinfo", itoa(GetProcessSlot(current_process_id))); |
} |
break; |
case evReDraw: |