Browse Source

Added setup for the rename command (NOT TESTED)

pull/5077/head
lpow100 3 months ago
parent
commit
58e3c8604a
1 changed files with 10 additions and 4 deletions
  1. +10
    -4
      examples/rexm.c

+ 10
- 4
examples/rexm.c View File

@ -141,12 +141,18 @@ int main(int argc, char *argv[])
else if (strcmp(argv[1], "rename") == 0) else if (strcmp(argv[1], "rename") == 0)
{ {
if (argc == 2) LOG("WARNING: No filename provided to create\n"); if (argc == 2) LOG("WARNING: No filename provided to create\n");
k">else if (argc == 3) LOG("WARNING: No enough arguments provided\n");
else if (argc > 4) LOG("WARNING: Too many arguments provided\n");
o">//else if (argc == 3) LOG("WARNING: No enough arguments provided\n"); All the documentation says 3 args but I don't mind being wrong
else if (argc > 3) LOG("WARNING: Too many arguments provided\n");
else else
{ {
// TODO: Register exName, exCategory and exRename
strcpy(exName, argv[2]);
for (int index = 0; index < 32; index++)
{
if (exName[index] == '_') break;
exCategory[index] = exName[index];
}
strcpy(exRename, argv[3]);
opCode = 3; opCode = 3;
} }
} }

Loading…
Cancel
Save