Browse Source

Correcting the comments

master
MisterCyb 3 weeks ago
parent
commit
d3077eeee5
1 changed files with 5 additions and 2 deletions
  1. 5
    2
      CHIP8.c

+ 5
- 2
CHIP8.c View File

@@ -37,7 +37,7 @@ int AddIn_main(int isAppli, unsigned short OptionNum)
nb_programs = 0;
names = (FONTCHARACTER*) malloc(FILENAME_SIZE * sizeof(FONTCHARACTER));

// Search for every available ROMs
// Put every available ROMs into the list
do{

nb_programs ++;
@@ -49,7 +49,7 @@ int AddIn_main(int isAppli, unsigned short OptionNum)

// Main loop
while(key != KEY_CTRL_MENU){
// The key part
/* The key part */
if(key == KEY_CTRL_EXE)
Run_Program(names + selected_program * FILENAME_SIZE);
@@ -121,6 +121,7 @@ void Run_Program(const FONTCHARACTER *fileName){
Machine_State state;
FONTCHARACTER fn[FILENAME_SIZE + 9];

// Make the complete path
fn[0] = '\\';
fn[1] = '\\';
fn[2] = 'f';
@@ -133,6 +134,7 @@ void Run_Program(const FONTCHARACTER *fileName){
for(i = 0; i < FILENAME_SIZE; i ++)
fn[7 + i] = fileName[i];

/* File's part */
file = Bfile_OpenFile(fn, _OPENMODE_READ);
// If we can't load the file
@@ -148,6 +150,7 @@ void Run_Program(const FONTCHARACTER *fileName){
ML_display_vram();
while(!IsKeyDown(KEY_CTRL_EXIT)){
// The emulator's speed control
if(time_to_wait > 0)
time_to_wait -= IsKeyDown(KEY_CTRL_UP);
time_to_wait += IsKeyDown(KEY_CTRL_DOWN);

Loading…
Cancel
Save