Skip to content

Commit

Permalink
Use ndless_resources.tns in installer-3.6 as well
Browse files Browse the repository at this point in the history
  • Loading branch information
Vogtinator committed Jan 2, 2016
1 parent a0fe675 commit 890c52d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
1 change: 0 additions & 1 deletion ndless/calcbin/ndless_resources_3.6.tns

This file was deleted.

4 changes: 2 additions & 2 deletions ndless/src/installer-3.6/stage2.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -84,14 +84,14 @@ static unsigned const ndless_inst_resident_hook_addrs[] = {0x10012598, 0x1001251
// Install the resident part
HOOK_DEFINE(s1_startup_hook) {
struct nuc_stat res_stat;
const char *res_path = "/documents/ndless/ndless_resources_3.6.tns";
const char *res_path = "/documents/ndless/ndless_resources.tns";
NUC_FILE *res_file;
char *core;
char *res_params = NULL;

if (!(res_file = syscall_local<e_fopen, NUC_FILE*>(res_path, "rb"))) {
int x = 0;
syscall_local<e_disp_str, void>("Oops, you've forgotten to transfer 'ndless_resources_3.6'! Ndless won't be installed.", &x, 10);
syscall_local<e_disp_str, void>("Oops, you've forgotten to transfer 'ndless_resources.tns'! Ndless won't be installed.", &x, 10);
volatile int i;
for (i = 0; i < 100000000; i++) // libndls's sleep() requires is_classic, not available here
;
Expand Down

0 comments on commit 890c52d

Please sign in to comment.