aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAdam <adamdharrison@gmail.com>2022-10-14 15:29:53 -0400
committerAdam <adamdharrison@gmail.com>2022-10-14 15:29:53 -0400
commit7a4896c3b3d2f41cda46959c25c1c7e13e79e116 (patch)
tree82d2d8b739dc1a82901bb53119646a0f9c6c9af6
parent8ce76353963a58e5ca0758f240ccb62056126ceb (diff)
downloadlite-xl-plugin-manager-7a4896c3b3d2f41cda46959c25c1c7e13e79e116.tar.gz
lite-xl-plugin-manager-7a4896c3b3d2f41cda46959c25c1c7e13e79e116.zip
Updated references.
-rw-r--r--src/lpm.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/lpm.c b/src/lpm.c
index 760c372..ee8afa4 100644
--- a/src/lpm.c
+++ b/src/lpm.c
@@ -529,8 +529,8 @@ static const luaL_Reg system_lib[] = {
#endif
-extern const char lpm_lua[];
-extern unsigned int lpm_lua_len;
+extern const char src_lpm_lua[];
+extern unsigned int src_lpm_lua_len;
int main(int argc, char* argv[]) {
curl = curl_easy_init();
if (!curl)
@@ -560,9 +560,9 @@ int main(int argc, char* argv[]) {
lua_pushliteral(L, LITE_ARCH_TUPLE);
lua_setglobal(L, "ARCH");
#if LPM_LIVE
- if (luaL_loadfile(L, "lpm.lua") || lua_pcall(L, 0, 1, 0)) {
+ if (luaL_loadfile(L, "src/lpm.lua") || lua_pcall(L, 0, 1, 0)) {
#else
- if (luaL_loadbuffer(L, lpm_lua, lpm_lua_len, "lpm.lua") || lua_pcall(L, 0, 1, 0)) {
+ if (luaL_loadbuffer(L, src_lpm_lua, src_lpm_lua_len, "lpm.lua") || lua_pcall(L, 0, 1, 0)) {
#endif
fprintf(stderr, "internal error when starting the application: %s\n", lua_tostring(L, -1));
return -1;